From bebc16c29bb184beaaf06fe8a24f5ac13bac080b Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Fri, 25 Feb 2022 17:14:50 -0800 Subject: [PATCH] Better keybindings of Neotree --- ha-config.org | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/ha-config.org b/ha-config.org index 83f3000..b5b9357 100644 --- a/ha-config.org +++ b/ha-config.org @@ -1299,13 +1299,15 @@ Use these special keywords when searching: ** Neotree I primarily use [[https://github.com/jaypei/emacs-neotree][Neotree]] when I am screen-sharing my Emacs session with collegues as it shows a /project/ like an IDE. #+BEGIN_SRC emacs-lisp -(use-package neotree - :config - (evil-define-key 'normal neotree-mode-map (kbd "TAB") 'neotree-enter) - (evil-define-key 'normal neotree-mode-map (kbd "SPC") 'neotree-quick-look) - (evil-define-key 'normal neotree-mode-map (kbd "RET") 'neotree-enter) - (evil-define-key 'normal neotree-mode-map (kbd "g") 'neotree-refresh) - (evil-define-key 'normal neotree-mode-map (kbd "H") 'neotree-hidden-file-toggle)) + (use-package neotree + :bind (:neotree-mode-map ; Let evil-collection do its thing + ("j" . 'neotree-next-line) + ("k" . 'neotree-previous-line)) + :config ; evil-collection forget a couple: + (evil-define-key 'normal neotree-mode-map (kbd "TAB") 'neotree-enter) + (evil-define-key 'normal neotree-mode-map (kbd "SPC") 'neotree-quick-look) + (evil-define-key 'normal neotree-mode-map (kbd "RET") 'neotree-enter) + (evil-define-key 'normal neotree-mode-map (kbd "H") 'neotree-hidden-file-toggle)) #+END_SRC ** Annotations Let's try [[https://github.com/bastibe/annotate.el][annotate-mode]], which allows you to drop "notes" and then move to them (yes, serious overlap with bookmarks, which we will return to).