[emacs] Map C-c C-c in my workmacs sessions to (save-buffer)

This might only make sense for my particular setup, but I always seem to
try finishing my Worklog entries by hitting C-c C-c. You know why?
Because they feel like ending a `GIT_COMMITMSG`. So - this code block is
only meant for workmacs - I might as well remap the shortcut then. :D
This commit is contained in:
Sebastian Schulze 2024-03-27 23:00:50 +01:00
parent 0c0d1d7b50
commit 6797c2809f
No known key found for this signature in database
GPG Key ID: F6BA63C6A7D3044E
1 changed files with 5 additions and 0 deletions

View File

@ -448,6 +448,11 @@ is tomorrow. With two prefixes, select the deadline."
(ef-themes-select 'ef-cyprus)
(add-hook 'org-journal-mode-hook
(lambda () (add-hook 'after-save-hook 'delete-frame)))
; Somehow my brain mapped this shortcut in org-journal mode
; Oh yes, you know why? Because they feel like I finish a "git commit" :D
(map! :after org-journal
:map org-journal-mode-map
:n "C-c C-c" #'save-buffer)
(setq server-client-instructions nil) ;; hide noisy minibuffer
(org-journal-open-current-journal-file)))
:config