pinwheel: Open PDFs from emacs using firefox

This commit is contained in:
Alexander Heldt
2024-06-07 14:57:56 +02:00
parent d4a17ff10a
commit 220cfb4d58
2 changed files with 10 additions and 1 deletions

View File

@@ -354,6 +354,15 @@ https://github.com/justbur/emacs-which-key
(embark-collect-mode . consult-preview-at-point-mode))
#+END_SRC
* Opening files
#+BEGIN_SRC emacs-lisp
;; PDFs visited in Org-mode are opened in firefox (and not in the default choice)
(add-hook 'org-mode-hook
'(lambda ()
(delete '("\\.pdf\\'" . default) org-file-apps)
(add-to-list 'org-file-apps '("\\.pdf\\'" . "ff-alex %s"))))
#+END_SRC
* Keybindings
Setup prefix for keybindings.
#+BEGIN_SRC emacs-lisp

View File

@@ -110,7 +110,7 @@ in
};
home.packages = [ ff ];
home.packages = [ ff ff-alex ];
};
environment.variables.BROWSER = "${ff-alex}/bin/ff-alex $@";