fix(emacs): lost Go somewhere

This commit is contained in:
Pavel Korytov 2021-04-03 22:13:29 +03:00
parent 718014f5db
commit 9197605658
2 changed files with 19 additions and 1 deletions

View file

@ -1264,7 +1264,8 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
"s" 'langtool-server-stop
"d" 'langtool-check-done
"n" 'langtool-goto-next-error
"p" 'langtool-goto-previous-error)
"p" 'langtool-goto-previous-error
"l" 'langtool-correct-buffer)
(add-hook 'lisp-interaction-mode-hook #'smartparens-mode)
(add-hook 'emacs-lisp-mode-hook #'smartparens-strict-mode)
@ -1297,6 +1298,14 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
:mode "\\.clj[sc]?\\'"
:straight t)
(use-package go-mode
:straight t
:mode "\\.go\\'"
:config
(my/set-smartparens-indent 'go-mode)
(add-hook 'go-mode-hook #'smartparens-mode)
(add-hook 'go-mode-hook #'hs-minor-mode))
(use-package fish-mode
:straight t
:mode "\\.fish\\'"

View file

@ -2237,6 +2237,15 @@ References:
:straight t)
#+end_src
** Go
#+begin_src emacs-lisp
(use-package go-mode
:straight t
:mode "\\.go\\'"
:config
(my/set-smartparens-indent 'go-mode)
(add-hook 'go-mode-hook #'smartparens-mode)
(add-hook 'go-mode-hook #'hs-minor-mode))
#+end_src
** fish
#+begin_src emacs-lisp
(use-package fish-mode