From 0097d1f3e22565ffb6db689c06ee2f9610cd45d0 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 12 Mar 2022 23:11:30 +0800 Subject: Refactor evil config (emacs) --- .emacs.d/lisp/init-lang.el | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to '.emacs.d/lisp/init-lang.el') diff --git a/.emacs.d/lisp/init-lang.el b/.emacs.d/lisp/init-lang.el index dc76b90..f281ac9 100644 --- a/.emacs.d/lisp/init-lang.el +++ b/.emacs.d/lisp/init-lang.el @@ -10,10 +10,12 @@ ("\\.md\\'" . markdown-mode) ("\\.markdown\\'" . markdown-mode)) :init - (evil-define-key 'normal markdown-mode-map - (kbd "") 'markdown-follow-link-at-point) (setq markdown-command '("pandoc" "--from=markdown" "--to=html5"))) +(with-eval-after-load 'evil + (evil-define-key 'normal markdown-mode-map + (kbd "") 'markdown-follow-link-at-point)) + (use-package go-mode :ensure t :commands (go-mode) @@ -34,9 +36,12 @@ :ensure t :commands (magit magit-status) :init - (setq magit-refresh-status-buffer nil) + (setq magit-refresh-status-buffer nil)) + +(with-eval-after-load 'evil (evil-define-key 'normal 'global (kbd "gs") 'magit)) + (use-package realgud :defer t -- cgit v1.2.3