pinwheel: Open PDFs from emacs using firefox
This commit is contained in:
@@ -354,6 +354,15 @@ https://github.com/justbur/emacs-which-key
|
|||||||
(embark-collect-mode . consult-preview-at-point-mode))
|
(embark-collect-mode . consult-preview-at-point-mode))
|
||||||
#+END_SRC
|
#+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
|
* Keybindings
|
||||||
Setup prefix for keybindings.
|
Setup prefix for keybindings.
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
home.packages = [ ff ];
|
home.packages = [ ff ff-alex ];
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.variables.BROWSER = "${ff-alex}/bin/ff-alex $@";
|
environment.variables.BROWSER = "${ff-alex}/bin/ff-alex $@";
|
||||||
|
|||||||
Reference in New Issue
Block a user