Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keybindings: use leader key instead of launch prefix #235

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 8 additions & 22 deletions init.org
Original file line number Diff line number Diff line change
Expand Up @@ -820,9 +820,6 @@ keybindings in case I would forget them.

** Prefixes
#+begin_src emacs-lisp :tangle yes
(defvar launch-prefix "C-c l"
"Key prefix for commands related to launching.")

(defvar toggle-prefix "C-'"
"Key prefix for commands related to toggling.")
(defvar window-prefix "C-x w"
Expand Down Expand Up @@ -970,6 +967,7 @@ Display available keybindings in a popup as you press keys.
"c" '(highlight-changes-mode :wk "Changes")
"d" '(toggle-debug-on-error :wk "Debug on error")
"f" '(hs-minor-mode :wk "Code folding")
"F" '(follow-mode :wk "Follow")
"g" '(glasses-mode :wk "Readable camelCase")
"h" '(hl-line-mode :wk "Line highlight")
"l" '(global-display-line-numbers-mode :wk "Line numbers")
Expand All @@ -983,7 +981,7 @@ Display available keybindings in a popup as you press keys.
** Launch
#+begin_src emacs-lisp :tangle yes
(general-define-key
:prefix launch-prefix
:prefix leader-key
"m" 'gnus
"p" 'list-processes
"s" 'screenshot-svg
Expand Down Expand Up @@ -1874,9 +1872,7 @@ Management tool for a library of PDFs.
(use-package bibliothek
:ensure t
:general
(:prefix
launch-prefix
"b" 'bibliothek)
(:prefix leader-key "b" 'bibliothek)
:init
(setq bibliothek-path '("~/books" "~/documents/research/papers"))
(setq bibliothek-recursive t))
Expand Down Expand Up @@ -4212,9 +4208,7 @@ Dim out the surrounding text except the current focused paragraph or expression.
(use-package redtick
:ensure t
:general
(:prefix
launch-prefix
"r" 'redtick))
(:prefix leader-key "r" 'redtick))
#+end_src

** Session
Expand Down Expand Up @@ -4242,9 +4236,7 @@ it really useful.
(use-package spray
:ensure t
:general
(:prefix
launch-prefix
"s" 'spray-mode)
(:prefix leader-key "s" 'spray-mode)
:init
(setq spray-height 500)
(setq spray-margin-left 2)
Expand Down Expand Up @@ -4307,9 +4299,7 @@ Avoid color when possible.
(eshell-mode-hook . init-eshell-set-visual-commands)
:general
("C-!" 'eshell)
(:prefix
launch-prefix
"t" 'eshell)
(:prefix leader-key "t" 'eshell)
:init
(setq eshell-buffer-maximum-lines 20000)
(setq eshell-history-size 1000)
Expand Down Expand Up @@ -4389,9 +4379,7 @@ Fast terminal emulator utilizing =libvterm=.
(use-package vterm
:ensure t
:general
(:prefix
launch-prefix
"T" 'vterm)
(:prefix leader-key "T" 'vterm)
:init
(setq vterm-max-scrollback 100000)
(setq vterm-shell "fish"))
Expand All @@ -4416,9 +4404,7 @@ Visual undo history navigation.
(use-package vundo
:ensure t
:general
(:prefix
launch-prefix
"u" 'vundo))
(:prefix leader-key "u" 'vundo))
#+end_src

* Testing
Expand Down