comparison .elisp/settings/40.modes.el @ 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 863f1503616f
children 884f7f932a83
comparison
equal deleted inserted replaced
262:3350b219b653 268:8109c1d949c8
29 29
30 30
31 (defun af-go-hook () 31 (defun af-go-hook ()
32 ;; enable tabs 32 ;; enable tabs
33 (setq tab-width 2) 33 (setq tab-width 2)
34 (setq-default indent-tabs-mode t)) 34 (setq-default indent-tabs-mode t)
35 (make-variable-buffer-local 'whitespace-style)
36 (setq whitespace-style '(trailing lines-tail indentation trailing empty))
37 (message "Fixed whitespace style")
38 )
35 39
36 40
37 (let ((go-emacs (concat (getenv "GOROOT") "/misc/emacs"))) 41 (let ((go-emacs (concat (getenv "GOROOT") "/misc/emacs")))
38 (message (concat go-emacs "/go-mode.el")) 42 (message (concat go-emacs "/go-mode.el"))
39 (if (file-exists-p (concat go-emacs "/go-mode.el")) 43 (if (file-exists-p (concat go-emacs "/go-mode.el"))