diff options
author | Guangxiong Lin <[email protected]> | 2021-08-24 22:26:29 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2021-08-24 22:26:29 +0800 |
commit | b899cd53ce108c5c70aad31124a8fe1ee004a0ff (patch) | |
tree | adad59f22efd80c96d2ca56797028047f5186231 | |
parent | 9267d2e21da866cd8b2e12f2c977423af9a7c36a (diff) | |
download | dotfiles-b899cd53ce108c5c70aad31124a8fe1ee004a0ff.tar.gz dotfiles-b899cd53ce108c5c70aad31124a8fe1ee004a0ff.tar.bz2 dotfiles-b899cd53ce108c5c70aad31124a8fe1ee004a0ff.zip |
Replace lsp-mode by eglot, alias magit
-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) |