From 7f5c215a3d6b75fc1cbbc62e46ee014cbe2f3f12 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Wed, 1 Jan 2025 18:00:50 +1100 Subject: Find file in a separate buffer This makes org open link open nov links to another buffer. --- nov.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3