From 450b048f8ef33e233659de0a165950f4384033c1 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 13 Jul 2023 21:45:35 +0100 Subject: (Emacs)~change commit message auto insert Use the :auto-insert keyword. --- Emacs/.config/emacs/config.org | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Emacs/.config/emacs/config.org') 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)) -- cgit v1.2.3-13-gbd6f