Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add go-flymake and whitespace-mode

  • Loading branch information...
commit a65411a190b0085613b03187526763573a7bed1e 1 parent 981f817
@dougm authored
Showing with 9 additions and 10 deletions.
  1. +9 −10 dougm/init.el
View
19 dougm/init.el
@@ -1,5 +1,8 @@
(setq-default indent-tabs-mode nil)
(setq c-default-style "bsd")
+(setq whitespace-line-column 80
+ whitespace-style '(face trailing lines-tail))
+
(add-hook 'c-mode-common-hook
(lambda ()
(setq c-basic-offset 4)
@@ -7,22 +10,18 @@
(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)
+
(require 'go-autocomplete)
(require 'auto-complete-config)
(require 'flymake)
+(require 'flymake-cursor)
-(defun flymake-go-init ()
- (let* ((temp-file (flymake-init-create-temp-buffer-copy
- 'flymake-create-temp-inplace))
- (local-file (file-relative-name
- temp-file
- (file-name-directory buffer-file-name))))
- (list "go" (list "build" "-o" "/dev/null" temp-file))))
-
-(push '(".+\\.go$" flymake-go-init) flymake-allowed-file-name-masks)
+(add-to-list 'load-path "~/gocode/src/github.com/dougm/goflymake")
-(add-hook 'go-mode-hook 'flymake-mode)
+(require 'go-flymake)
(defun go-build ()
"compile project"
Please sign in to comment.
Something went wrong with that request. Please try again.