From ad117e053ac537d079797c330d84589f1e9f7412 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Thu, 17 Mar 2022 23:27:03 +0800 Subject: Rearrange go env in emacs --- .emacs.d/lisp/init-lang.el | 11 ----------- 1 file changed, 11 deletions(-) (limited to '.emacs.d/lisp/init-lang.el') diff --git a/.emacs.d/lisp/init-lang.el b/.emacs.d/lisp/init-lang.el index 2d818a4..b96fd92 100644 --- a/.emacs.d/lisp/init-lang.el +++ b/.emacs.d/lisp/init-lang.el @@ -3,15 +3,6 @@ (with-eval-after-load 'ledger-mode (setq ledger-default-date-format ledger-iso-date-format)) -(when (gx/maybe-require-package 'go-mode) - (add-to-list 'auto-mode-alist '("\\.go\\'" . go-mode)) - (add-hook 'go-mode-hook (lambda () (setq tab-width 4)))) - -(gx/maybe-require-package 'go-dlv) - -(when (gx/maybe-require-package 'eglot) - (add-hook 'go-mode-hook 'eglot-ensure)) - (gx/maybe-require-package 'realgud) (setq plantuml-jar-path "~/.local/bin/plantuml.jar" @@ -25,6 +16,4 @@ (with-eval-after-load 'org (add-to-list 'org-src-lang-modes '("plantuml" . plantuml)))) -(gx/diminish 'eldoc-mode) - (provide 'init-lang) -- cgit v1.2.3