diff options
author | JSDurand <mmemmew@gmail.com> | 2022-01-21 18:20:34 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2022-01-21 18:20:34 +0800 |
commit | cb3eef4d198a5b38481f1b114e227539240e291c (patch) | |
tree | 69a6af1366143757c635d8c567ec94445fa460d3 /init.el | |
parent | ed850a8ac2d6b705f1b6e9469fa6d596b8c80732 (diff) |
go-conf: configure go-mode
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 |