dotfiles/editors/emacs/bjeanes/programming.el

26 lines
730 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)
(add-hook 'before-save-hook
2013-03-10 16:42:11 +11:00
(lambda ()
(gofmt-before-save)
(delete-trailing-whitespace)))
(require 'auto-complete-config)
(ac-config-default)))
;;;;;;;; misc
;; Auto-compile is really annoying if you have an existing
;; compilation process that puts the output elsewhere or names it
;; differently (e.g. Rails asset pipeline, Middleman, etc)
(setq scss-compile-at-save nil)