emacs dotfiles 2007-01-20
It’s time for another dotfile release. This release includes some fixes for emacs 22, and a significant improvement in abtags. Download the dotfiles here:
From the changelog:
2007-01-20
- completion fixes for emacs 22 compat
- changed nxml indent to 2
- mapped html/sgml to nxml mode
- *.rake => ruby mode
- abtags auto-reloads TAGS files now
- finally tracked down and fixed pesky loaddefs issue
Tuesday, January 30th 2007 at 9:52 pm
Since I’ve moved into management, I’ve been using an extremely minimalistic .emacs file. The following makes GNU emacs way more tolerable for me without needing a bunch of external dependencies:
(setq-default fill-column 72) ;; Set wrapping to some sane value
(add-hook ‘text-mode-hook ‘turn-on-auto-fill)
(setq visible-bell t) ;; turn off audio bell. I like the screen to flash instead.
(setq line-number-mode t)
(setq delete-auto-save-files t)
(setq require-final-newline ‘ask)
(setq file-name-handler-alist nil) ;; don’t use ange-ftp
(setq default-tab-width 8)
;; Use font-lock regardless of windowing system
(setq font-lock-maximum-decoration t)
(global-font-lock-mode t)
(auto-compression-mode t) ;; decompress .tgz files on-the-fly
(load “complete” t t) ;; do regex filename completion on C-x C-f (find-file)
(partial-completion-mode t)
;;; beg: c and c++
(defun one-true-style ()
(c-set-style “bsd”)
(setq tab-width 8)
(setq c-basic-offset 4)
(setq indent-tabs-mode t))
(add-hook ‘c-mode-hook ‘one-true-style)
(add-hook ‘objc-mode-hook ‘one-true-style)
(add-hook ‘c++-mode-hook ‘one-true-style)
(add-hook ‘php-mode-hook ‘one-true-style)
;;; end: c and c++
(setq default-major-mode ‘fundamental-mode)