From 380c67cb28a093d87f054421214e31ca68ce22cf Mon Sep 17 00:00:00 2001 From: larstvei Date: Mon, 12 Jun 2023 19:45:41 +0200 Subject: [PATCH] use-package go-mode --- init.org | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/init.org b/init.org index 77d81f3..53fe98f 100644 --- a/init.org +++ b/init.org @@ -207,8 +207,7 @@ (let* ((package--builtins nil) (packages - '(go-mode ; Major mode for the Go programming language - haskell-mode ; A Haskell editing mode + '(haskell-mode ; A Haskell editing mode lua-mode ; a major-mode for editing Lua scripts markdown-mode ; Emacs Major mode for Markdown-formatted files maude-mode ; Emacs mode for the programming language Maude @@ -1615,8 +1614,11 @@ #+begin_src emacs-lisp - (add-to-list 'auto-mode-alist '("\\.go\\'" . go-mode)) - (add-hook 'go-mode-hook 'eglot-ensure) + ;; Major mode for the Go programming language + (use-package go-mode + :defer t + :mode "\\.go\\'" + :hook (go-mode . eglot-ensure)) #+end_src