diff options
author | Guangxiong Lin <[email protected]> | 2022-04-22 00:20:05 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-04-22 00:20:05 +0800 |
commit | 811b18bdbd6002f3a8aaa1b85cc25eea70a05934 (patch) | |
tree | 8e0e9979b92f10bda30a214024b1b5ff5bba3a0d /.emacs.d/lisp/init-go.el | |
parent | 49aa78b8d2e01b275038eb3869660fde3a077423 (diff) | |
download | dotfiles-811b18bdbd6002f3a8aaa1b85cc25eea70a05934.tar.gz dotfiles-811b18bdbd6002f3a8aaa1b85cc25eea70a05934.tar.bz2 dotfiles-811b18bdbd6002f3a8aaa1b85cc25eea70a05934.zip |
Add config of python (emacs)
Diffstat (limited to '.emacs.d/lisp/init-go.el')
-rw-r--r-- | .emacs.d/lisp/init-go.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.emacs.d/lisp/init-go.el b/.emacs.d/lisp/init-go.el index f0a6b84..3a224fb 100644 --- a/.emacs.d/lisp/init-go.el +++ b/.emacs.d/lisp/init-go.el @@ -1,4 +1,5 @@ (when (gx/maybe-require-package 'go-mode) + (autoload #'go-mode "go-mode" nil t) (add-to-list 'auto-mode-alist '("\\.go\\'" . go-mode))) (add-hook 'go-mode-hook (lambda () (setq tab-width 4))) @@ -6,8 +7,8 @@ (gx/maybe-require-package 'go-dlv) (when (gx/maybe-require-package 'eglot) - (add-hook 'go-mode-hook #'eglot-ensure) (add-hook 'go-mode-hook #'gx/eglot-format-before-save) - (add-hook 'go-mode-hook #'gx/eglot-code-action-organize-imports-before-save)) + (add-hook 'go-mode-hook #'gx/eglot-code-action-organize-imports-before-save) + (add-hook 'go-mode-hook #'eglot-ensure)) (provide 'init-go) |