Skip to content

Commit

Permalink
refactor(emacs): clean up magit config
Browse files Browse the repository at this point in the history
  • Loading branch information
gekoke committed Dec 12, 2023
1 parent 848604f commit f5297ff
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions modules/nixos/programs/emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -429,21 +429,14 @@

(use-package magit
:hook (magit-log-mode . magit-diff-show-or-scroll-up)
:init
(defun gg/bury-magit-buffer-and-revision ()
(interactive)
(ignore-errors (magit-log-bury-buffer -1))
(magit-mode-bury-buffer))
:custom
(magit-no-confirm '(set-and-push stage-all-changes unstage-all-changes))
(magit-display-buffer-function #'magit-display-buffer-fullframe-status-v1)
(magit-bury-buffer-function #'magit-restore-window-configuration)
(magit-revision-show-gravatars t)
(magit-display-buffer-function 'magit-display-buffer-fullframe-status-v1)
:general
(gg/leader
"v" #'magit-status)
(general-def
:states '(normal visual)
:keymaps 'magit-mode-map
"q" #'gg/bury-magit-buffer-and-revision)
(general-def
:states '(normal visual)
:keymaps 'magit-log-mode-map
Expand Down

0 comments on commit f5297ff

Please sign in to comment.