(Emacs)+code blaming binding using magit

Very cool ability.
This commit is contained in:
2023-08-20 17:43:22 +01:00
parent 7eb7f70bdb
commit c642847a91

View File

@@ -1989,14 +1989,18 @@ don't need to write everything myself.
("magit-log:.*" ("magit-log:.*"
(display-buffer-same-window)) (display-buffer-same-window))
:general :general
(leader "g" '(magit-status :which-key "Magit")) (leader
"g" '(magit-status :which-key "Magit"))
(code-leader
"b" #'magit-blame)
:auto-insert :auto-insert
(("COMMIT_EDITMSG" . "Commit skeleton") (("COMMIT_EDITMSG" . "Commit skeleton")
"" ""
"(" (read-string "Enter feature/module: ") ")" "(" (read-string "Enter feature/module: ") ")"
(read-string "Enter simple description: ") "\n\n") (read-string "Enter simple description: ") "\n\n")
:init :init
(setq vc-follow-symlinks t) (setq vc-follow-symlinks t
magit-blame-echo-style 'lines)
:config :config
(with-eval-after-load "evil" (with-eval-after-load "evil"
(evil-set-initial-state 'magit-status-mode 'motion)) (evil-set-initial-state 'magit-status-mode 'motion))