diff options
author | William Carroll <wpcarro@gmail.com> | 2020-08-19T11·27+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-08-20T10·26+0100 |
commit | 23cf5d43d8fdd913eec46af1b4f08499ec13bfc0 (patch) | |
tree | 4cc97aae770d5149a9021688540ea0463c36bc50 /emacs/.emacs.d | |
parent | 108da34dd99bf4a2986a05e54c98f514966b38fe (diff) |
Centralize <SPC> in normal mode KBDs
Merging keybinding and wpc-keybindings step-by-step...
Diffstat (limited to 'emacs/.emacs.d')
-rw-r--r-- | emacs/.emacs.d/wpc/keybindings.el | 43 | ||||
-rw-r--r-- | emacs/.emacs.d/wpc/wpc-keybindings.el | 30 |
2 files changed, 28 insertions, 45 deletions
diff --git a/emacs/.emacs.d/wpc/keybindings.el b/emacs/.emacs.d/wpc/keybindings.el index cdc99af557ca..7a1805ac5594 100644 --- a/emacs/.emacs.d/wpc/keybindings.el +++ b/emacs/.emacs.d/wpc/keybindings.el @@ -32,25 +32,46 @@ `(exwm-input-set-key (kbd ,c) ,fn)) (keybinding/exwm "C-M-v" #'ivy-clipmenu/copy) - (keybinding/exwm "<XF86MonBrightnessUp>" #'screen-brightness/increase) (keybinding/exwm "<XF86MonBrightnessDown>" #'screen-brightness/decrease) - (keybinding/exwm "<XF86AudioMute>" #'pulse-audio/toggle-mute) (keybinding/exwm "<XF86AudioLowerVolume>" #'pulse-audio/decrease-volume) (keybinding/exwm "<XF86AudioRaiseVolume>" #'pulse-audio/increase-volume) (keybinding/exwm "<XF86AudioMicMute>" #'pulse-audio/toggle-microphone) - (keybinding/exwm "C-M-c" #'chrome/browse) - (keybinding/exwm (kbd/raw 'x11 "s") #'scrot/select) - (keybinding/exwm "<C-M-tab>" #'exwm/switch-to-exwm-buffer) (general-define-key :prefix "<SPC>" :states '(normal) - "." #'ffap) + "." #'ffap + "gn" #'notmuch + "i" #'counsel-semantic-or-imenu + "I" #'ibuffer + "hk" #'helpful-callable + "hf" #'helpful-function + "hm" #'helpful-macro + "hc" #'helpful-command + "hk" #'helpful-key + "hv" #'helpful-variable + "hp" #'helpful-at-point + "s" #'flyspell-mode + "S" #'sort-lines + "=" #'align + "p" #'flycheck-previous-error + "f" #'project-find-file + "n" #'flycheck-next-error + "N" #'smerge-next + "W" #'balance-windows + "gs" #'magit-status + "E" #'refine + "es" #'wpc/create-snippet + "l" #'linum-mode + "B" #'magit-blame + "w" #'save-buffer + "r" #'wpc/evil-replace-under-point + "R" #'deadgrep) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Vterm @@ -84,10 +105,7 @@ :prefix "<SPC>" :states '(normal) "d0" #'display/disable-laptop - "d1" #'display/enable-laptop) - (general-define-key - :prefix "<SPC>" - :states '(normal) + "d1" #'display/enable-laptop "D0" #'display/disable-4k "D1" #'display/enable-4k)) @@ -144,10 +162,5 @@ (notmuch-search-tag '("-inbox" "-action" "-review" "+waiting"))) "e" #'notmuch-search-archive-thread) -(general-define-key - :states '(normal) - :prefix "<SPC>" - "gn" #'notmuch) - (provide 'keybindings) ;;; keybindings.el ends here diff --git a/emacs/.emacs.d/wpc/wpc-keybindings.el b/emacs/.emacs.d/wpc/wpc-keybindings.el index 69a5b952688e..fa6ba0003535 100644 --- a/emacs/.emacs.d/wpc/wpc-keybindings.el +++ b/emacs/.emacs.d/wpc/wpc-keybindings.el @@ -91,36 +91,6 @@ ;; kbds for magit is with `evil-magit'. (use-package evil-magit) -;; TODO: Consider moving this to another module. -(general-define-key - :prefix "<SPC>" - :states '(normal) - "i" #'counsel-semantic-or-imenu - "I" #'ibuffer - "hk" #'helpful-callable - "hf" #'helpful-function - "hm" #'helpful-macro - "hc" #'helpful-command - "hk" #'helpful-key - "hv" #'helpful-variable - "hp" #'helpful-at-point - "s" #'flyspell-mode - "S" #'sort-lines - "=" #'align - "p" #'flycheck-previous-error - "f" #'project-find-file - "n" #'flycheck-next-error - "N" #'smerge-next - "W" #'balance-windows - "gs" #'magit-status - "E" #'refine - "es" #'wpc/create-snippet - "l" #'linum-mode - "B" #'magit-blame - "w" #'save-buffer - "r" #'wpc/evil-replace-under-point - "R" #'deadgrep) - ;; create comments easily (use-package evil-commentary :after (evil) |