I use split-frame (split-window-right
in setup) for most things but would like Emacs to open some file types (specifically PDF files) in a new frame when using find-file
.
Other files (for example .org
files) should be opened in split-frame as before. I use pdf-tools for viewing PDFs.
Any suggestions welcome.
display-buffer-alist
and also thespecial-display-regexps
. See also the two examples in the manual for some additional ideas: gnu.org/software/emacs/manual/html_node/elisp/… – lawlist Jun 12 '18 at 9:23special-display-regexps
andspecial-display-buffer-names
. Put the PDF buffers in dedicated windows. Alternatively, can fiddle withdisplay-buffer-alist
. – Drew Jun 12 '18 at 13:20(add-to-list 'special-display-regexps ".*\.pdf$")
but no luck. – Erik Jun 15 '18 at 12:01