diff options
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -356,6 +356,21 @@ no effect." (define-key global-map (vector ?\C-\s-r) #'rotate-frame-clockwise) (define-key global-map (vector ?\C-\s-t) #'transpose-frame)) +;;; Go-mode + +(load-after-function + go-mode "go-conf.el" + "Load Go-mode configurations and lauch it." nil + (go-mode)) + +(cond + ((assoc "\\.go$" auto-mode-alist #'string=) + (setcdr + (assoc "\\.go$" auto-mode-alist #'string=) + #'go-mode)) + ((add-to-list 'auto-mode-alist + (cons "\\.go$" #'go-mode)))) + ;;; server ;; (cond @@ -365,5 +380,4 @@ no effect." (setq gc-cons-threshold (* 2 1024 1024)) (provide 'init) - ;;; init.el ends here |