From 2472e40358489cc25bf283009acc47f195f250e4 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Thu, 3 Mar 2022 15:07:00 -0800 Subject: [PATCH] Better keybinding to address a long-standing bug --- ha-config.org | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/ha-config.org b/ha-config.org index b5b9357..d36c5bf 100644 --- a/ha-config.org +++ b/ha-config.org @@ -368,11 +368,10 @@ Using the key-chord project allows me to make Escape be on two key combo presses Dropping into Emacs state is better than pure Evil state for applications, however, [[https://github.com/emacs-evil/evil-collection][the evil-collection package]] creates a hybrid between the two, that I like. #+BEGIN_SRC emacs-lisp -(ignore-errors (use-package evil-collection - :after evil - :config - (evil-collection-init))) + :after evil + :config + (evil-collection-init)) #+END_SRC Do I want to specify the list of modes to change for =evil-collection-init=, e.g. @@ -951,6 +950,7 @@ Build the hydra as well as configure the =perspective= project. :config (persp-mode +1) + (defhydra hydra-workspace-leader (:color blue :hint nil) " Workspaces- %s(ha-persp-labels) _n_: new project _r_: rename _a_: add buffer _l_: load worksp @@ -985,7 +985,8 @@ Build the hydra as well as configure the =perspective= project. ("q" nil) ("C-g" nil)) - (ha-leader "TAB" '("workspaces" . hydra-workspace-leader/body))) + (ha-leader "TAB" '("workspaces" . hydra-workspace-leader/body)) + :bind ("C-" . hydra-workspace-leader/body)) #+END_SRC *** Predefined Workspaces #+END_SRC @@ -1300,9 +1301,9 @@ Use these special keywords when searching: 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 - :bind (:neotree-mode-map ; Let evil-collection do its thing - ("j" . 'neotree-next-line) - ("k" . 'neotree-previous-line)) + ;; :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)