Permalink
Browse files

whitespace-line-column 120 for go-mode

  • Loading branch information...
1 parent dd1eca6 commit 77204d96e501a5869b82e9603d748f3ca14ce498 @dougm committed Nov 30, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 dougm/init.el
View
@@ -1,7 +1,7 @@
(setq-default indent-tabs-mode nil)
(setq c-default-style "bsd")
-(setq whitespace-line-column 80
- whitespace-style '(face trailing lines-tail))
+(setq whitespace-style '(face trailing lines-tail))
+(setq-default whitespace-line-column 80)
(setq-default show-trailing-whitespace t)
(put 'downcase-region 'disabled nil)
(column-number-mode t)
@@ -22,6 +22,8 @@
(require 'go-mode)
(add-hook 'before-save-hook #'gofmt-before-save)
(add-hook 'go-mode-hook 'run-coding-hook)
+(add-hook 'go-mode-hook (lambda ()
+ (setq whitespace-line-column 120)))
(require 'go-autocomplete)
(require 'auto-complete-config)

0 comments on commit 77204d9

Please sign in to comment.