Skip to content

Commit

Permalink
Merge pull request #435 from mjhoy/magit-config-cleanup
Browse files Browse the repository at this point in the history
emacs: magit: remove some old config that causes issues
  • Loading branch information
mjhoy authored Dec 6, 2024
2 parents b6cbc65 + 037a39f commit 74214c4
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions emacs.d/lisp/init-magit.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@

(global-set-key (kbd "C-c g") 'magit-status)

;; Hide the "Recent commits" section in status.
;; https://github.com/magit/magit/issues/3230
(magit-add-section-hook 'magit-status-sections-hook
'magit-insert-unpushed-to-upstream
'magit-insert-unpushed-to-upstream-or-recent
'replace)

(defun mjhoy/log-current-commit-to-org-clock ()
"Get the current repository's HEAD commit, and add it as a link
to the current org clock, if one exists."
Expand All @@ -42,9 +35,4 @@ to the current org clock, if one exists."

(add-hook 'git-commit-mode-hook #'mjhoy/git-commit-hook)

(advice-add 'magit-checkout
:after #'mjhoy--run-projectile-invalidate-cache)
(advice-add 'magit-branch-and-checkout
:after #'mjhoy--run-projectile-invalidate-cache)

(provide 'init-magit)

0 comments on commit 74214c4

Please sign in to comment.