From c0d30da504fb0b68d8c28ff61a5e0095acda7f5f 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(-) (limited to 'nov.el') 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)) -- cgit v1.2.3