some docs string

This commit is contained in:
amirrezaask 2020-02-23 21:57:41 +03:30
parent 3569062d02
commit ddffdf6c21
1 changed files with 8 additions and 4 deletions

View File

@ -3,7 +3,7 @@
;;; Code:
(defun fg42-go-hook ()
"Setup emacs hooks and turn necessary modes on. "
"Set's up emacs hooks and turn necessary modes on."
(lsp)
(with-ability yas
(yas-minor-mode-on))
@ -15,11 +15,15 @@
(defun go-path () (exec-path-from-shell-copy-env "GOPATH"))
(defun go-path-binary () (concat (go-path) "/bin"))
(defun go-path ()
"Gets gopath from OS env."
(exec-path-from-shell-copy-env "GOPATH"))
(defun go-path-binary ()
"Gets Go binaries path."
(concat (go-path) "/bin"))
(defun extensions/go-initialize ()
"""Initialize Golang extension ."""
"Initialize Golang extension."
(exec-path-from-shell-initialize)
(add-to-list 'exec-path (go-path-binary))
(add-hook 'go-mode-hook 'fg42-go-hook))