From 77d4aa352070926699f8f2f5990753a8820e790f Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Tue, 15 Mar 2022 23:01:48 +0800 Subject: Use jk to visual move line (vim) (emacs) --- .emacs.d/lisp/init-evil.el | 5 +++++ .emacs.d/lisp/init-org.el | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to '.emacs.d/lisp') diff --git a/.emacs.d/lisp/init-evil.el b/.emacs.d/lisp/init-evil.el index 5402cd9..55a42c8 100644 --- a/.emacs.d/lisp/init-evil.el +++ b/.emacs.d/lisp/init-evil.el @@ -15,6 +15,11 @@ (evil-define-key 'normal 'global (kbd "gj") 'evil-next-visual-line (kbd "gk") 'evil-previous-visual-line) + (evil-define-key 'normal text-mode-map + (kbd "j") 'evil-next-visual-line + (kbd "k") 'evil-previous-visual-line + (kbd "gj") 'evil-next-line + (kbd "gk") 'evil-previous-line) (gx/diminish 'evil-mode)) ;; evil-collection diff --git a/.emacs.d/lisp/init-org.el b/.emacs.d/lisp/init-org.el index 0ead7cf..c9cd221 100644 --- a/.emacs.d/lisp/init-org.el +++ b/.emacs.d/lisp/init-org.el @@ -29,8 +29,6 @@ (kbd "TAB") 'org-cycle (kbd "RET") 'org-open-at-point (kbd "H") 'org-toggle-heading - (kbd "j") 'evil-next-visual-line - (kbd "k") 'evil-previous-visual-line (kbd "r") 'org-refile -- cgit v1.2.3