Sunday, November 20, 2011

black emacs .emacs


;; ========== Line by line scrolling ==========

;; This makes the buffer scroll by only a single line when the up or
;; down cursor keys push the cursor (tool-bar-mode) outside the
;; buffer. The standard emacs behaviour is to reposition the cursor in
;; the center of the screen, but this can make the scrolling confusing

(setq scroll-step 1)

;; ========== Enable Line and Column Numbering ==========

;; Show line-number in the mode line
(line-number-mode 1)

;; Show column-number in the mode line
(column-number-mode 1)

;; Set region background colour
(set-face-background 'region "blue")

;; Set emacs background colour
(set-background-color "black")
(set-foreground-color "white")


(setq default-frame-alist
      (append default-frame-alist
       '((foreground-color . "white")
 (background-color . "black")
 (cursor-color . "SkyBlue")
 )))


(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))

No comments:

Post a Comment