Browse files

use coding-hook

  • Loading branch information...
1 parent 5439854 commit dd1eca68831764f4e8a3059dcaf18f4b52e5925d @dougm committed Nov 5, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 dougm/init.el
View
5 dougm/init.el
@@ -17,10 +17,11 @@
(setq c-basic-offset 4)
(setq indent-tabs-mode nil)))
+(add-hook 'coding-hook 'whitespace-mode)
+
(require 'go-mode)
(add-hook 'before-save-hook #'gofmt-before-save)
-(add-hook 'go-mode-hook 'whitespace-mode)
-(add-hook 'ruby-mode-hook 'whitespace-mode)
+(add-hook 'go-mode-hook 'run-coding-hook)
(require 'go-autocomplete)
(require 'auto-complete-config)

0 comments on commit dd1eca6

Please sign in to comment.