From 27bb7a995e306e42b597e8c6be720cbdbb2f6f54 Mon Sep 17 00:00:00 2001 From: Leni Ven Date: Fri, 27 Jan 2023 23:22:17 -0800 Subject: [PATCH] Add key bindings 1. Spacemacs like major mode comma 2. Magit commit mode key bindings --- home/doomemacs/config.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/home/doomemacs/config.el b/home/doomemacs/config.el index 029c90e..bc85c79 100644 --- a/home/doomemacs/config.el +++ b/home/doomemacs/config.el @@ -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.