mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 07:28:31 +00:00
use-package go-mode
This commit is contained in:
parent
9d752baaa6
commit
380c67cb28
10
init.org
10
init.org
@ -207,8 +207,7 @@
|
|||||||
|
|
||||||
(let* ((package--builtins nil)
|
(let* ((package--builtins nil)
|
||||||
(packages
|
(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
|
lua-mode ; a major-mode for editing Lua scripts
|
||||||
markdown-mode ; Emacs Major mode for Markdown-formatted files
|
markdown-mode ; Emacs Major mode for Markdown-formatted files
|
||||||
maude-mode ; Emacs mode for the programming language Maude
|
maude-mode ; Emacs mode for the programming language Maude
|
||||||
@ -1615,8 +1614,11 @@
|
|||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|
||||||
(add-to-list 'auto-mode-alist '("\\.go\\'" . go-mode))
|
;; Major mode for the Go programming language
|
||||||
(add-hook 'go-mode-hook 'eglot-ensure)
|
(use-package go-mode
|
||||||
|
:defer t
|
||||||
|
:mode "\\.go\\'"
|
||||||
|
:hook (go-mode . eglot-ensure))
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user