better code style

This commit is contained in:
amirrezaask 2020-02-23 19:57:37 +03:30
parent b066b0de2c
commit 0e7ced8f9a
2 changed files with 1 additions and 2 deletions

View File

@ -20,5 +20,4 @@
:on-initialize extensions/go-initialize
:docs "lib/extensions/go/readme.org")
(provide 'extensions/go)
;;; go.el ends here

View File

@ -17,11 +17,11 @@
(defun go-path () (concat (getenv "HOME") "/go"))
(defun go-path-binary () (concat (go-path) "/bin"))
(defun extensions/go-initialize ()
"""Initialize Golang extension ."""
(add-to-list 'exec-path (go-path-binary))
(add-hook 'go-mode-hook 'fg42-go-hook))
(provide 'extensions/go/init)
;;; init ends here.