Emacs : latex-preview to zathura

This commit is contained in:
2022-05-31 13:13:17 +09:00
parent 6d15238d10
commit 2426cf5375
3 changed files with 23 additions and 17 deletions

View File

@ -376,23 +376,28 @@ capture was not aborted."
;; --------------------------------------------------------------------------------------------
;; - Open with external program
;; --------------------------------------------------------------------------------------------
(use-package openwith
:after-call pre-command-hook
:config
(setq large-file-warning-threshold nil)
(openwith-mode t)
(setq openwith-associations
(list (list (openwith-make-extension-regexp
'("mpg" "mpeg" "mp3" "mp4" "m4v"
"avi" "wmv" "wav" "mov" "flv"
"ogm" "ogg" "mkv"))
"mpv"
'(file))
(list (openwith-make-extension-regexp
'("pdf"))
"zathura"
'(file)))))
;;(use-package openwith
;; :after-call pre-command-hook
;; :config
;; (setq large-file-warning-threshold nil)
;; (openwith-mode t)
;; (setq openwith-associations
;; (list (list (openwith-make-extension-regexp
;; '("mpg" "mpeg" "mp3" "mp4" "m4v"
;; "avi" "wmv" "wav" "mov" "flv"
;; "ogm" "ogg" "mkv"))
;; "mpv"
;; '(file))
;; (list (openwith-make-extension-regexp
;; '("pdf"))
;; "zathura"
;; '(file)))))
;; --------------------------------------------------------------------------------------------
;; - Lang
;; --------------------------------------------------------------------------------------------
(setq! +latex-viewers '(zathura))
; --------------------------------------------------------------------------------------------
;;
;; - KeyBindings
;; --------------------------------------------------------------------------------------------
(map! "C-s" 'consult-line)

View File

@ -99,7 +99,7 @@
magit ; a git porcelain for Emacs
;;make ; run make tasks from Emacs
;;pass ; password manager for nerds
;;pdf ; pdf enhancements
pdf ; pdf enhancements
;;prodigy ; FIXME managing external services & code builders
;;rgb ; creating color strings
;;taskrunner ; taskrunner for all your projects

View File

@ -57,3 +57,4 @@
;;(package! org-caldav)
(package! openwith)
(package! org-super-agenda)
(package! graphviz-dot-mode)