From b899cd53ce108c5c70aad31124a8fe1ee004a0ff Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Tue, 24 Aug 2021 22:26:29 +0800 Subject: Replace lsp-mode by eglot, alias magit --- .aliases | 1 + .emacs.d/lisp/init-lang.el | 23 +++-------------------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/.aliases b/.aliases index 85772e4..79edb52 100644 --- a/.aliases +++ b/.aliases @@ -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) -- cgit v1.2.3