summary refs log tree commit diff
path: root/emacs.d/custom
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.d/custom')
-rw-r--r--emacs.d/custom/fcuny-prog.el9
1 files changed, 9 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)