From 59b60a4708888f3a29e69c0460553ef14152b3b0 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 6 Jun 2020 00:56:46 -0400 Subject: [PATCH] Inhibit recenter following org link when window isn't visible --- modules/lang/org/config.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index b51e773a9..13f17cf8b 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -503,7 +503,8 @@ the exported output (i.e. formatters)." org-follow-timestamp-link org-link-open-as-file org-link-search) - (recenter)) + (when (get-buffer-window) + (recenter))) (defadvice! +org--strip-properties-from-outline-a (orig-fn path &optional width prefix separator) "Remove link syntax and fix variable height text (e.g. org headings) in the