forked from FG42/FG42
add ability check
This commit is contained in:
parent
ff702e6144
commit
b36ee47048
|
@ -3,9 +3,10 @@
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(defun fg42-go-hook ()
|
(defun fg42-go-hook ()
|
||||||
"""Setup emacs hooks and turn necessary modes on."""
|
"""Setup emacs hooks and turn necessary modes on. """
|
||||||
(lsp)
|
(lsp)
|
||||||
(yas-minor-mode-on)
|
(with-ability yas
|
||||||
|
(yas-minor-mode-on))
|
||||||
(add-hook 'before-save-hook #'lsp-format-buffer t t)
|
(add-hook 'before-save-hook #'lsp-format-buffer t t)
|
||||||
(add-hook 'before-save-hook #'lsp-organize-imports t t)
|
(add-hook 'before-save-hook #'lsp-organize-imports t t)
|
||||||
(add-hook 'go-mode-hook 'go-eldoc-setup)
|
(add-hook 'go-mode-hook 'go-eldoc-setup)
|
||||||
|
|
Loading…
Reference in New Issue