diff options
-rw-r--r-- | emacs.d/custom/fcuny-prog.el | 9 | ||||
-rw-r--r-- | emacs.d/init.el | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/emacs.d/custom/fcuny-prog.el b/emacs.d/custom/fcuny-prog.el new file mode 100644 index 0000000..ab7cc05 --- /dev/null +++ b/emacs.d/custom/fcuny-prog.el @@ -0,0 +1,9 @@ +(use-package eglot + :ensure t + :config + (define-key eglot-mode-map (kbd "C-c ; g .") 'xref-find-definitions) + (define-key eglot-mode-map (kbd "C-c ; g ,") 'pop-tag-mark) + (add-to-list 'eglot-server-programs '(go-mode . ("gopls"))) + (add-hook 'go-mode-hook 'eglot-ensure)) + +(provide 'fcuny-prog) diff --git a/emacs.d/init.el b/emacs.d/init.el index 4c3cd59..64b464a 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -34,6 +34,8 @@ (require 'fcuny-org) +(require 'fcuny-prog) + (require 'fcuny-docker) (require 'fcuny-json) (require 'fcuny-protobuf) |