;; auto complete
(ac-config-default)
(ac-linum-workaround)
+
+;; highlight todo
+(add-hook 'prog-mode-hook 'highlight-todos)
+
+;; Ledger
+(setq ledger-binary-path "~/.cabal/bin/hledger")
+
+;; golang
+(setq exec-path (cons "/usr/local/go/bin" exec-path))
+(add-to-list 'exec-path (concat (getenv "GOPATH") "/bin"))
+
+(defun go-mode-setup ()
+ (go-eldoc-setup)
+ (setq gofmt-command "goimports")
+ (add-hook 'before-save-hook 'gofmt-before-save))
+
+(add-hook 'go-mode-hook 'go-mode-setup)