diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-07-13 21:45:35 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-07-13 21:45:35 +0100 |
commit | 450b048f8ef33e233659de0a165950f4384033c1 (patch) | |
tree | d3a33caa43068a226837de9e0cd2c87d5c5c51a5 /Emacs/.config/emacs | |
parent | f908d9e95666f468a8bfa4381b22265270cfd55f (diff) | |
download | dotfiles-450b048f8ef33e233659de0a165950f4384033c1.tar.gz dotfiles-450b048f8ef33e233659de0a165950f4384033c1.tar.bz2 dotfiles-450b048f8ef33e233659de0a165950f4384033c1.zip |
(Emacs)~change commit message auto insert
Use the :auto-insert keyword.
Diffstat (limited to 'Emacs/.config/emacs')
-rw-r--r-- | Emacs/.config/emacs/config.org | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 57f9f58..0ce9d31 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -1959,14 +1959,13 @@ don't need to write everything myself. (display-buffer-same-window)) :general (leader "g" '(magit-status :which-key "Magit")) + :auto-insert + (("COMMIT_EDITMSG" . "Commit skeleton") + "" + "(" (read-string "Enter feature/module: ") ")" + (read-string "Enter simple description: ") "\n\n") :init (setq vc-follow-symlinks t) - (with-eval-after-load "autoinsert" - (define-auto-insert '("COMMIT_EDITMSG" , "Commit") - '(nil - "(" (read-string "Enter feature/module: ") ")" - (read-string "Enter simple description: ") "\n\n" - _))) :config (with-eval-after-load "evil" (evil-set-initial-state 'magit-status-mode 'motion)) |