Add hydra config for git-gutter.

This commit is contained in:
KJ
2024-04-13 01:19:05 -04:00
parent d96a05fb7e
commit 370651ebec
2 changed files with 19 additions and 1 deletions

View File

@ -58,5 +58,13 @@ Saves to a temp file and puts the filename in the kill ring."
;; Borrar espacios, tabs y saltos de línea innecesarios al guardar
(add-hook 'before-save-hook 'delete-trailing-whitespace)
;; Mostrar y ocultar el diff de la línea de git-gutter
(defun git-gutter:toggle-popup-hunk ()
"Toggle 'git-gutter' hunk window."
(interactive)
(if (and (get-buffer "*git-gutter:diff*") (window-live-p (git-gutter:popup-buffer-window)))
(delete-window (git-gutter:popup-buffer-window))
(git-gutter:popup-hunk)))
(provide 'init-functions)
;;; init-functions.el ends here.