From 31c96bca47df592896b203b62378b1e81c440966 Mon Sep 17 00:00:00 2001 From: Marc Date: Tue, 7 Mar 2023 08:47:17 +0100 Subject: [PATCH] moved general higher up in loading order --- config.org | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/config.org b/config.org index 8e54fd3..ba4549f 100644 --- a/config.org +++ b/config.org @@ -382,6 +382,14 @@ e.g. python-mode with just "π ". (prog-mode . rainbow-delimiters-mode)) #+END_SRC +* General (key mapper) +Needs to be loaded before any other package which uses the :general keyword + +#+BEGIN_SRC emacs-lisp +(use-package general + :ensure t) +#+END_SRC + * Bookmarks Usage: - C-x r m (bookmark-set): add bookmark @@ -488,12 +496,6 @@ Exclude some dirs from spamming recentf (setq save-abbrevs 'silently)) ;; don't bother me with asking for abbrev saving #+end_src -* General (key mapper) -#+BEGIN_SRC emacs-lisp -(use-package general - :ensure t) -#+END_SRC - * imenu-list A minor mode to show imenu in a sidebar. Call imenu-list-smart-toggle. @@ -509,11 +511,11 @@ Exclude some dirs from spamming recentf imenu-list-position 'right) :general ([f9] 'imenu-list-smart-toggle) - (:states 'normal + (:states '(normal insert) :keymaps 'imenu-list-major-mode-map "RET" '(imenu-list-goto-entry :which-key "goto") "TAB" '(hs-toggle-hiding :which-key "collapse") - "d" '(imenu-list-display-entry :which-key "show") + "v" '(imenu-list-display-entry :which-key "show") ; also prevents visual mode "q" '(imenu-list-quit-window :which-key "quit")) :custom (org-imenu-depth 4)) @@ -525,6 +527,7 @@ https://github.com/noctuid/evil-guide Use C-z (evil-toggle-key) to switch between evil and emacs keybindings, in case evil is messing something up. + #+BEGIN_SRC emacs-lisp (use-package evil :ensure t