From a3fc43adfe9104b0153e9f3f11801d4ee7ece45d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 3 Oct 2019 17:39:10 -0400 Subject: [PATCH] Bind SPC q K to save-buffers-kill-emacs A keybind for killing Emacs and the daemon in one go. The doom slayer would be proud. --- modules/config/default/+evil-bindings.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/config/default/+evil-bindings.el b/modules/config/default/+evil-bindings.el index 303ec77fa..0bd5688df 100644 --- a/modules/config/default/+evil-bindings.el +++ b/modules/config/default/+evil-bindings.el @@ -788,8 +788,9 @@ :desc "List project tasks" "t" #'+default/project-tasks :desc "Test project" "T" #'projectile-test-project) - ;;; q --- session - (:prefix-map ("q" . "session") + ;;; q --- quit/session + (:prefix-map ("q" . "quit/session") + :desc "Kill Emacs (and daemon)" "K" #'save-buffers-kill-emacs :desc "Quit Emacs" "q" #'save-buffers-kill-terminal :desc "Quit Emacs without saving" "Q" #'evil-quit-all-with-error-code :desc "Quick save current session" "s" #'doom/quicksave-session