dotfiles/editors/emacs/bjeanes/programming.el

14 lines
398 B
EmacsLisp
Raw Normal View History

(add-hook 'prog-mode-hook
(lambda ()
(flyspell-prog-mode)
(whitespace-mode +1)
2012-10-24 01:17:57 +11:00
(require 'autopair)
(autopair-mode 1)
2012-10-29 06:04:26 +11:00
(define-key global-map (kbd "RET") 'newline-and-indent)
;; TODO: Look into whitespace-cleanup instead?
(add-hook 'before-save-hook
'delete-trailing-whitespace)))