changeset 268:8109c1d949c8

go-mode-hook: disable tabs highlighting, enable tab indentation
author Augie Fackler <durin42@gmail.com>
date Tue, 02 Aug 2011 17:27:53 -0500
parents 3350b219b653
children 546ac96796da
files .elisp/settings/40.modes.el
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.elisp/settings/40.modes.el
+++ b/.elisp/settings/40.modes.el
@@ -31,7 +31,11 @@ point."
 (defun af-go-hook ()
   ;; enable tabs
   (setq tab-width 2)
-  (setq-default indent-tabs-mode t))
+  (setq-default indent-tabs-mode t)
+  (make-variable-buffer-local 'whitespace-style)
+  (setq whitespace-style '(trailing lines-tail indentation trailing empty))
+  (message "Fixed whitespace style")
+  )
 
 
 (let ((go-emacs (concat (getenv "GOROOT") "/misc/emacs")))