emacs/lisp/mitch-keybinds.el

50 lines
1.3 KiB
EmacsLisp
Raw Normal View History

2022-06-19 14:13:36 -08:00
;;; mitch-keybinds.el --- do keybinding things, mostly with General...
;;; Commentary:
;; -----------------------------------------------------------------------------
;; There are a lot of things we do with the keyboard. Perhaps all of the
;; things, in fact. Thus, we use the `general' package for transparently
;; defining keybindings in various states. See
;; `https://github.com/noctuid/general.el' for more.
;; -----------------------------------------------------------------------------
;;; Code:
(general-define-key
"<escape>" 'keyboard-escape-quit
"C--" 'text-scale-decrease
"C-=" 'text-scale-increase)
(general-define-key
:states 'motion
"j" 'evil-next-visual-line
"k" 'evil-previous-visual-line)
(general-define-key
:states '(normal visual)
:prefix "SPC"
:non-normal-prefix "SPC"
"w" 'evil-window-map
"h" 'help-command
2022-06-21 17:04:19 -08:00
"b" 'ibuffer
"g" 'magit
2022-06-19 14:13:36 -08:00
"SPC" 'evil-buffer)
(general-define-key
:states '(normal visual)
:prefix-command 'eval-map-prefix
:prefix-map 'eval-map
:prefix "SPC e"
"l" 'eval-last-sexp
"b" 'eval-buffer
"r" 'eval-region
":" 'eval-expression
"s" 'eshell)
;; broken
(general-define-key
:prefix-map 'minibuffer-mode-map
"DEL" 'backward-kill-word)
2022-07-05 20:56:48 -08:00
;; (general-define-key
;; "C-x C-f" 'project-find-file
;; )
2022-06-19 14:13:36 -08:00
(provide 'mitch-keybinds)
;;; mitch-keybinds.el ends here