diff --git a/README.org b/README.org index b8242f1e..ab91e9f7 100644 --- a/README.org +++ b/README.org @@ -1506,6 +1506,7 @@ Consult has a lot of nice functions like Ivy's Counsel functions (enhanced searc "si" 'consult-imenu "so" 'consult-org-heading "sm" 'bookmark-jump + "sf" 'consult-flymake "sy" 'consult-yank-from-kill-ring)) #+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 "q" 'kill-this-buffer "C-" 'chris/dired-open-xdg + "M-" 'ffap-other-window "C-'" 'embark-act)) #+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. #+begin_src emacs-lisp (use-package pdf-tools - :ensure nil + :straight nil + :mode ("\\.pdf\\'" . pdf-view-mode) :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) :config (custom-set-variables '(pdf-misc-print-program "/usr/bin/lpr") diff --git a/init.el b/init.el index 83c5a1e1..68d4758a 100644 --- a/init.el +++ b/init.el @@ -1016,6 +1016,7 @@ If on a: "si" 'consult-imenu "so" 'consult-org-heading "sm" 'bookmark-jump + "sf" 'consult-flymake "sy" 'consult-yank-from-kill-ring)) (use-package marginalia @@ -1490,6 +1491,7 @@ targets." ('normal dired-mode-map "q" 'kill-this-buffer "C-" 'chris/dired-open-xdg + "M-" 'ffap-other-window "C-'" 'embark-act)) (defun chris/dired-yank-filename () @@ -1957,8 +1959,11 @@ targets." (sly-connect "localhost" 4006))) (use-package pdf-tools - :ensure nil + :straight nil + :mode ("\\.pdf\\'" . pdf-view-mode) :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) :config (custom-set-variables '(pdf-misc-print-program "/usr/bin/lpr")