From c58c4ebe87b4db1edd7aae653fc5af520a320f1a Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 26 Nov 2014 23:34:24 -0500 Subject: Remove outdated advice for magit-visit magit-visit was removed a while ago [1], so this isn't doing anything. Currently, there are multiple functions to advise [2]. Instead of doing that, I'll just call org-reveal (C-c C-r). [1] 81c6b881d9e4e93442677d6e2183c7f2cc47887a [2] 2dc3965e74eabe53763f208809a9dae3105c1149 --- lisp/init-org.el | 9 --------- 1 file changed, 9 deletions(-) (limited to 'lisp/init-org.el') diff --git a/lisp/init-org.el b/lisp/init-org.el index cbaab0a..a1f820f 100644 --- a/lisp/init-org.el +++ b/lisp/init-org.el @@ -247,15 +247,6 @@ to (when (eq major-mode 'org-mode) (org-show-context)))) -(defadvice magit-visit - (after magit-visit-show-org-context activate) - "Show context if visiting Org buffer. -This is an improvement, but still not great. It requires the -point be on or under a heading in the Magit diff. If above, the -context will be shown for above heading." - (when (eq major-mode 'org-mode) - (org-show-context))) - ;;; Agenda (after 'org-agenda -- cgit v1.2.3