making pdf-tools work on nixos
This commit is contained in:
parent
d871b9776d
commit
ae3a9b9695
|
@ -1506,6 +1506,7 @@ Consult has a lot of nice functions like Ivy's Counsel functions (enhanced searc
|
||||||
"si" 'consult-imenu
|
"si" 'consult-imenu
|
||||||
"so" 'consult-org-heading
|
"so" 'consult-org-heading
|
||||||
"sm" 'bookmark-jump
|
"sm" 'bookmark-jump
|
||||||
|
"sf" 'consult-flymake
|
||||||
"sy" 'consult-yank-from-kill-ring))
|
"sy" 'consult-yank-from-kill-ring))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
@ -2205,6 +2206,7 @@ I'm making a small function in here to open files in the appropriate program usi
|
||||||
('normal dired-mode-map
|
('normal dired-mode-map
|
||||||
"q" 'kill-this-buffer
|
"q" 'kill-this-buffer
|
||||||
"C-<return>" 'chris/dired-open-xdg
|
"C-<return>" 'chris/dired-open-xdg
|
||||||
|
"M-<return>" 'ffap-other-window
|
||||||
"C-'" 'embark-act))
|
"C-'" 'embark-act))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
@ -2793,8 +2795,11 @@ Using sly makes a lot better common-lisp interaction within emacs.
|
||||||
Let's use pdf-tools for a lot better interaction with pdfs.
|
Let's use pdf-tools for a lot better interaction with pdfs.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package pdf-tools
|
(use-package pdf-tools
|
||||||
:ensure nil
|
:straight nil
|
||||||
|
:mode ("\\.pdf\\'" . pdf-view-mode)
|
||||||
:init
|
:init
|
||||||
|
;; (setq pdf-info-epdfinfo-program "/nix/store/6pc8vs42xbfah1h8h050a77p7vpr12kc-emacs-packages-deps/share/emacs/site-lisp/elpa/pdf-tools-20220823/epdfinfo"
|
||||||
|
;; pdf-tools-directory "/nix/store/6pc8vs42xbfah1h8h050a77p7vpr12kc-emacs-packages-deps/share/emacs/site-lisp/elpa/pdf-tools-20220823/")
|
||||||
(pdf-tools-install)
|
(pdf-tools-install)
|
||||||
:config
|
:config
|
||||||
(custom-set-variables '(pdf-misc-print-program "/usr/bin/lpr")
|
(custom-set-variables '(pdf-misc-print-program "/usr/bin/lpr")
|
||||||
|
|
7
init.el
7
init.el
|
@ -1016,6 +1016,7 @@ If on a:
|
||||||
"si" 'consult-imenu
|
"si" 'consult-imenu
|
||||||
"so" 'consult-org-heading
|
"so" 'consult-org-heading
|
||||||
"sm" 'bookmark-jump
|
"sm" 'bookmark-jump
|
||||||
|
"sf" 'consult-flymake
|
||||||
"sy" 'consult-yank-from-kill-ring))
|
"sy" 'consult-yank-from-kill-ring))
|
||||||
|
|
||||||
(use-package marginalia
|
(use-package marginalia
|
||||||
|
@ -1490,6 +1491,7 @@ targets."
|
||||||
('normal dired-mode-map
|
('normal dired-mode-map
|
||||||
"q" 'kill-this-buffer
|
"q" 'kill-this-buffer
|
||||||
"C-<return>" 'chris/dired-open-xdg
|
"C-<return>" 'chris/dired-open-xdg
|
||||||
|
"M-<return>" 'ffap-other-window
|
||||||
"C-'" 'embark-act))
|
"C-'" 'embark-act))
|
||||||
|
|
||||||
(defun chris/dired-yank-filename ()
|
(defun chris/dired-yank-filename ()
|
||||||
|
@ -1957,8 +1959,11 @@ targets."
|
||||||
(sly-connect "localhost" 4006)))
|
(sly-connect "localhost" 4006)))
|
||||||
|
|
||||||
(use-package pdf-tools
|
(use-package pdf-tools
|
||||||
:ensure nil
|
:straight nil
|
||||||
|
:mode ("\\.pdf\\'" . pdf-view-mode)
|
||||||
:init
|
:init
|
||||||
|
;; (setq pdf-info-epdfinfo-program "/nix/store/6pc8vs42xbfah1h8h050a77p7vpr12kc-emacs-packages-deps/share/emacs/site-lisp/elpa/pdf-tools-20220823/epdfinfo"
|
||||||
|
;; pdf-tools-directory "/nix/store/6pc8vs42xbfah1h8h050a77p7vpr12kc-emacs-packages-deps/share/emacs/site-lisp/elpa/pdf-tools-20220823/")
|
||||||
(pdf-tools-install)
|
(pdf-tools-install)
|
||||||
:config
|
:config
|
||||||
(custom-set-variables '(pdf-misc-print-program "/usr/bin/lpr")
|
(custom-set-variables '(pdf-misc-print-program "/usr/bin/lpr")
|
||||||
|
|
Loading…
Reference in a new issue