summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
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)