Browse Source

moved imenu-list keybindings to a :general-block

master
Marc 1 year ago
parent
commit
9f077c4442
1 changed files with 31 additions and 34 deletions
  1. 65
      config.org

65
config.org

@ -461,26 +461,6 @@ Exclude some dirs from spamming recentf
("C-x o" . ace-window)))
#+end_src
* imenu-list
A minor mode to show imenu in a sidebar.
Call imenu-list-smart-toggle.
[[https://github.com/bmag/imenu-list][Source]]
#+BEGIN_SRC emacs-lisp
(use-package imenu-list
:ensure t
:demand t ; otherwise mode loads too late and won't work on first file it's being activated on
:config
(setq imenu-list-focus-after-activation t
imenu-list-auto-resize t
imenu-list-position 'right)
:bind
(:map global-map
([f9] . imenu-list-smart-toggle))
:custom
(org-imenu-depth 4))
#+END_SRC
* which-key
#+BEGIN_SRC emacs-lisp
(use-package which-key
@ -508,6 +488,37 @@ 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.
[[https://github.com/bmag/imenu-list][Source]]
#+BEGIN_SRC emacs-lisp
(use-package imenu-list
:ensure t
:demand t ; otherwise mode loads too late and won't work on first file it's being activated on
:config
(setq imenu-list-focus-after-activation t
imenu-list-auto-resize t
imenu-list-position 'right)
:general
([f9] 'imenu-list-smart-toggle)
(:states 'normal
: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")
"q" '(imenu-list-quit-window :which-key "quit"))
:custom
(org-imenu-depth 4))
#+END_SRC
* Evil
See also
https://github.com/noctuid/evil-guide
@ -621,20 +632,6 @@ in case evil is messing something up.
(meow-global-mode t))
#+end_src
* General (key mapper)
#+BEGIN_SRC emacs-lisp
(use-package general
:ensure t
:config
(general-define-key
:states 'normal
: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")
"q" '(imenu-list-quit-window :which-key "quit")))
#+END_SRC
* avy
Search, move, copy, delete text within all visible buffers.
Also replaces ace-window for buffer switching.

Loading…
Cancel
Save