aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2025-01-01 18:00:50 +1100
committerYuchen Pei <id@ypei.org>2025-08-25 09:52:49 +1000
commit7f5c215a3d6b75fc1cbbc62e46ee014cbe2f3f12 (patch)
treed790a6c0b51b80e72e40b38f404d7bc94f0671bc
parent933816c190633fa1f2f0667ba105d1311572b3c6 (diff)
Find file in a separate buffer
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 f7d071d..fbaa034 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))