fix path problem

This commit is contained in:
amirrezaask 2020-02-23 17:41:32 +03:30
parent 186deee91c
commit b066b0de2c
1 changed files with 5 additions and 1 deletions

View File

@ -14,8 +14,12 @@
(local-set-key (kbd "M-*") 'pop-tag-mark))
(defun go-path () (concat (getenv "HOME") "/go"))
(defun go-path-binary () (concat (go-path) "/bin"))
(defun extensions/go-initialize ()
"""Initialize Golang extension."""
"""Initialize Golang extension ."""
(add-to-list 'exec-path (go-path-binary))
(add-hook 'go-mode-hook 'fg42-go-hook))
(provide 'extensions/go/init)