aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2025-01-01 18:00:50 +1100
committerYuchen Pei <id@ypei.org>2025-01-01 18:00:50 +1100
commitc0d30da504fb0b68d8c28ff61a5e0095acda7f5f (patch)
tree24de21a3d89df8957c0a43c233872dfa60cf3962
parentbbb5c60bfd6b09cffe0406a56930105335f07887 (diff)
Find file in a separate bufferHEADmaster
This makes org open link open nov links to another buffer.
-rw-r--r--nov.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/nov.el b/nov.el
index 739a930..f0d49e1 100644
--- a/nov.el
+++ b/nov.el
@@ -970,7 +970,7 @@ Saving is only done if `nov-save-place-file' is set."
"Open FILE in nov-mode and go to the specified INDEX and POSITION.
If FILE is nil, the current buffer is used."
(when file
- (find-file file))
+ (pop-to-buffer (find-file-noselect file)))
(unless (eq major-mode 'nov-mode)
(nov-mode))
(when (not (nov--index-valid-p nov-documents index))