Add "git blamer" into "Toggles" hydra menu.

This commit is contained in:
kj
2025-08-26 13:35:54 -03:00
parent 04f64eda5e
commit 5b6f53fe4f

View File

@ -163,35 +163,36 @@
(with-no-warnings (with-no-warnings
(pretty-hydra-define toggles-hydra (:title (pretty-hydra-title "Toggles" 'faicon "nf-fa-toggle_on") (pretty-hydra-define toggles-hydra (:title (pretty-hydra-title "Toggles" 'faicon "nf-fa-toggle_on")
:color pink :quit-key ("q" "C-g")) :color pink :quit-key ("q" "C-g"))
("Basic" ("Basic"
(("n" (cond ((fboundp 'display-line-numbers-mode) (("n" (cond ((fboundp 'display-line-numbers-mode)
(display-line-numbers-mode (if display-line-numbers-mode -1 1))) (display-line-numbers-mode (if display-line-numbers-mode -1 1)))
((fboundp 'gblobal-linum-mode) ((fboundp 'gblobal-linum-mode)
(global-linum-mode (if global-linum-mode -1 1)))) (global-linum-mode (if global-linum-mode -1 1))))
"line number" "line number"
:toggle (or (bound-and-true-p display-line-numbers-mode) :toggle (or (bound-and-true-p display-line-numbers-mode)
(bound-and-true-p global-linum-mode))) (bound-and-true-p global-linum-mode)))
("a" global-aggressive-indent-mode "aggressive indent" :toggle t) ("a" global-aggressive-indent-mode "aggressive indent" :toggle t)
("d" global-hungry-delete-mode "hungry delete" :toggle t) ("d" global-hungry-delete-mode "hungry delete" :toggle t)
("e" electric-pair-mode "electric pair" :toggle t) ("e" electric-pair-mode "electric pair" :toggle t)
("s" prettify-symbols-mode "pretty symbol" :toggle t) ("s" prettify-symbols-mode "pretty symbol" :toggle t)
("h" display-time-mode "time" :toggle t) ("h" display-time-mode "time" :toggle t)
("i" indent-bars-mode "indent bars" :toggle t)) ("i" indent-bars-mode "indent bars" :toggle t))
"Highlight" "Highlight"
(("l" global-hl-line-mode "line" :toggle t) (("l" global-hl-line-mode "line" :toggle t)
("p" show-paren-mode "brackets pairs" :toggle t) ("p" show-paren-mode "brackets pairs" :toggle t)
("r" rainbow-delimiters-mode "rainbow brackets" :toggle t) ("b" global-blamer-mode "Git blamer" :toggle t)
("w" global-display-fill-column-indicator-mode "fill column indicator" :toggle t) ("r" rainbow-delimiters-mode "rainbow brackets" :toggle t)
("t" global-hl-todo-mode "todo" :toggle t)) ("w" global-display-fill-column-indicator-mode "fill column indicator" :toggle t)
"Program" ("t" global-hl-todo-mode "todo" :toggle t))
(("f" flymake-mode "flymake" :toggle t) "Program"
("c" flyspell-mode "spell check" :toggle t) (("f" flymake-mode "flymake" :toggle t)
("u" subword-mode "subword" :toggle t) ("c" flyspell-mode "spell check" :toggle t)
("v" global-diff-hl-mode "gutter" :toggle t) ("u" subword-mode "subword" :toggle t)
("V" diff-hl-flydiff-mode "live gutter" :toggle t) ("v" global-diff-hl-mode "gutter" :toggle t)
("M" diff-hl-margin-mode "margin gutter" :toggle t) ("V" diff-hl-flydiff-mode "live gutter" :toggle t)
("D" diff-hl-dired-mode "dired gutter" :toggle t)) ("M" diff-hl-margin-mode "margin gutter" :toggle t)
)))) ("D" diff-hl-dired-mode "dired gutter" :toggle t))
))))
(provide 'init-utils) (provide 'init-utils)
;;; init-utils.el ends here ;;; init-utils.el ends here