Add key bindings

1. Spacemacs like major mode comma
2. Magit commit mode key bindings
This commit is contained in:
Leni Ven 2023-01-27 23:22:17 -08:00
parent a2306fccd6
commit 27bb7a995e
1 changed files with 10 additions and 0 deletions

View File

@ -2,10 +2,20 @@
;; Place your private configuration here! Remember, you do not need to run 'doom
;; sync' after modifying this file!
;; Key bindings
(setq doom-localleader-key ",") ; Spacemacs like comma major mode
(map! :leader
:desc "Kill buffer and window"
"b 0" #'kill-buffer-and-window)
(map! :localleader
(:map git-commit-mode-map
"c" #'with-editor-finish)
(:map git-commit-mode-map
"q" #'with-editor-cancel))
;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets. It is optional.