add ability check

This commit is contained in:
amirrezaask 2020-02-23 21:26:58 +03:30
parent ff702e6144
commit b36ee47048
1 changed files with 3 additions and 2 deletions

View File

@ -3,9 +3,10 @@
;;; Code:
(defun fg42-go-hook ()
"""Setup emacs hooks and turn necessary modes on."""
"""Setup emacs hooks and turn necessary modes on. """
(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-organize-imports t t)
(add-hook 'go-mode-hook 'go-eldoc-setup)