some docs string
This commit is contained in:
parent
3569062d02
commit
ddffdf6c21
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue