summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-03-15 02:15:29 -0400
committerKyle Meyer <kyle@kyleam.com>2014-03-15 12:04:58 -0400
commit752293fa2c19d090d19d52dae790fd3a387ee053 (patch)
treed790ae3a9756d3c54ee3f5e1fb3281734a5f11fa /lisp
parent43fde37b6b062166b53b86b8e6ccd3247be42f54 (diff)
downloademacs.d-752293fa2c19d090d19d52dae790fd3a387ee053.tar.gz
Show Org context with `next-error'
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-org.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/init-org.el b/lisp/init-org.el
index 4ea6215..b545e9d 100644
--- a/lisp/init-org.el
+++ b/lisp/init-org.el
@@ -128,6 +128,10 @@ Before running `org-tree-to-indirect-buffer',
(eval-after-load 'org-table
'(diminish 'orgtbl-mode "Ot"))
+(add-hook 'next-error-hook '(lambda ()
+ (when (eq major-mode 'org-mode)
+ (org-show-context))))
+
;;; Agenda
(defadvice org-agenda-list (around org-agenda-fullscreen activate)