My .emacs file

Since I often need a copy of my emacs file somewhere where it’s not worth pulling my whole sysadmin git repository, I’m a gonna put my .emacs file here.  Maybe someone else will find it useful.  It basically does the following:

  • makes my background color a little less harsh.
  • enables syntax highlighting by default.
  • makes the selected region highlighted (this behavior will be default in the next version of emacs, but I’m using 22.x at the moment).
  • modify the tab width to 3.
  • enable org mode
  • make line numbering available (this is sometimes useful).

I’ll be keeping this up to date as my make changes…

;; Some preferences:
(set-background-color "antique white")
;; I want syntax highlighting by default.
(global-font-lock-mode 1)
;; I want to see the selected region (this will be default in v23).
(transient-mark-mode 1)
;; I like small indents.
(setq standard-indent 3);
(setq default-tab-width 3);
;; I don't want to see the splash screen.
(setq inhibit-startup-message t);

;; org mode setup
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))

;;(global-set-key "\C-o" ctl-x-map)
(global-set-key [?\C-c ?l] 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)

;; For special packages:
;; Add local lisp folder to load-path
;;(setq load-path (append load-path (list "~/.emacs.d/elisp")))
;; sometimes line numbering is useful.
(require 'linum)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.