Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

whitespace-line-column 120 for go-mode

  • Loading branch information...
commit 77204d96e501a5869b82e9603d748f3ca14ce498 1 parent dd1eca6
Doug MacEachern authored November 30, 2012

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. 6  dougm/init.el
6  dougm/init.el
... ...
@@ -1,7 +1,7 @@
1 1
 (setq-default indent-tabs-mode nil)
2 2
 (setq c-default-style "bsd")
3  
-(setq whitespace-line-column 80
4  
-      whitespace-style '(face trailing lines-tail))
  3
+(setq whitespace-style '(face trailing lines-tail))
  4
+(setq-default whitespace-line-column 80)
5 5
 (setq-default show-trailing-whitespace t)
6 6
 (put 'downcase-region 'disabled nil)
7 7
 (column-number-mode t)
@@ -22,6 +22,8 @@
22 22
 (require 'go-mode)
23 23
 (add-hook 'before-save-hook #'gofmt-before-save)
24 24
 (add-hook 'go-mode-hook 'run-coding-hook)
  25
+(add-hook 'go-mode-hook (lambda ()
  26
+            (setq whitespace-line-column 120)))
25 27
 
26 28
 (require 'go-autocomplete)
27 29
 (require 'auto-complete-config)

0 notes on commit 77204d9

Please sign in to comment.
Something went wrong with that request. Please try again.