diff options
-rw-r--r-- | .aliases | 1 | ||||
-rw-r--r-- | .emacs.d/lisp/init-lang.el | 23 |
2 files changed, 4 insertions, 20 deletions
@@ -2,4 +2,5 @@ alias emacs='emacs -nw' alias mu4e='emacs -nw -f mu4e' +alias magit='emacs -nw -f magit' alias todo='emacs -nw ~/journals/todo.org' diff --git a/.emacs.d/lisp/init-lang.el b/.emacs.d/lisp/init-lang.el index fc99967..563ebf4 100644 --- a/.emacs.d/lisp/init-lang.el +++ b/.emacs.d/lisp/init-lang.el @@ -20,28 +20,11 @@ :mode (("\\.go$" . go-mode)) :hook ((go-mode . (lambda () (setq tab-width 4))))) -(use-package lsp-mode +(use-package eglot :ensure t - :commands (lsp lsp-deferred) + :commands (eglot) :hook - ((go-mode . lsp-deferred) - (lsp-mode . lsp-enable-which-key-integration)) - :config - (evil-define-key 'normal lsp-mode-map - (kbd "gd") 'lsp-find-definition - (kbd "gr") 'lsp-find-references) - (add-to-list 'lsp-file-watch-ignored-directories "[/\\\\]\\.git\\'")) - -(use-package dap-mode - :defer - :commands (dap-mode) - :ensure t - :hook - ((lsp-mode . dap-mode)) - ((go-mode . (lambda () (require 'dap-go)))) - :config - (dap-auto-configure-mode t) - (setq dap-auto-configure-features '(sessions locals controls tooltip))) + ((go-mode . eglot-ensure))) (use-package magit :ensure t) |