forked from colonelpanic/dotfiles
Advise magit-diff-visit-file
to show org context
This commit is contained in:
parent
50c7d29577
commit
9ce4e04bc6
@ -2170,6 +2170,11 @@ I don't use auto-complete at all, so I have set up a hook to automatically disab
|
|||||||
(use-package magit
|
(use-package magit
|
||||||
:commands magit-status
|
:commands magit-status
|
||||||
:bind (("C-x g" . magit-status))
|
:bind (("C-x g" . magit-status))
|
||||||
|
:preface
|
||||||
|
(progn
|
||||||
|
(defun imalison:after-magit-visit-file (&rest args)
|
||||||
|
(when (derived-mode-p 'org-mode)
|
||||||
|
(org-show-context 'magit-goto))))
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(defvar-setq magit-last-seen-setup-instructions "1.4.0")
|
(defvar-setq magit-last-seen-setup-instructions "1.4.0")
|
||||||
@ -2177,6 +2182,8 @@ I don't use auto-complete at all, so I have set up a hook to automatically disab
|
|||||||
(when (bound-and-true-p imalison:gpg-key)
|
(when (bound-and-true-p imalison:gpg-key)
|
||||||
(add-to-list 'magit-commit-arguments
|
(add-to-list 'magit-commit-arguments
|
||||||
(format "--gpg-sign=%s" imalison:gpg-key)))
|
(format "--gpg-sign=%s" imalison:gpg-key)))
|
||||||
|
(add-to-list 'org-show-context-detail '(magit-goto . lineage))
|
||||||
|
(advice-add 'magit-diff-visit-file :after 'imalison:after-magit-visit-file)
|
||||||
(use-package magit-filenotify
|
(use-package magit-filenotify
|
||||||
;; Seems like OSX does not support filenotify.
|
;; Seems like OSX does not support filenotify.
|
||||||
:disabled t
|
:disabled t
|
||||||
|
Loading…
Reference in New Issue
Block a user