summaryrefslogtreecommitdiff
path: root/emacs/init.el
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2022-01-15 13:29:26 +0000
committerGrégoire Duchêne <gduchene@awhk.org>2022-01-15 13:29:26 +0000
commit248356d1dc46710e182354f9fc18af3dbc5676d1 (patch)
treef4efefcd11662fd317706fc52122ee977dbe5d4f /emacs/init.el
parent979a01b467376b4f49022bd74dfabd97ce682f4e (diff)
emacs: Bind C-c q to electric-quote-local-mode
Also, add electric-quote-local-mode to git-commit-setup-hook.
Diffstat (limited to 'emacs/init.el')
-rw-r--r--emacs/init.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 83d81d4..36b3d32 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -56,6 +56,8 @@
(global-auto-revert-mode 1)
(show-paren-mode 1)
+(global-set-key (kbd "C-c q") #'electric-quote-local-mode)
+
;; Buffer Management
@@ -167,6 +169,7 @@
(setq git-commit-summary-max-length 50)
+(add-hook 'git-commit-setup-hook #'electric-quote-local-mode)
(add-hook 'git-commit-setup-hook #'git-commit-turn-on-flyspell)
(global-set-key (kbd "C-c k") #'magit-status)