Merge branch 'develop' into patch-1
This commit is contained in:
commit
485d0dfd39
15 changed files with 209 additions and 54 deletions
|
@ -6,28 +6,22 @@
|
|||
:config
|
||||
(unless noninteractive
|
||||
(pdf-tools-install))
|
||||
|
||||
(map! :map pdf-view-mode-map
|
||||
"q" #'kill-this-buffer
|
||||
doom-leader-key nil)
|
||||
|
||||
|
||||
(map! :map pdf-view-mode-map
|
||||
"q" #'kill-this-buffer
|
||||
doom-leader-key nil)
|
||||
|
||||
(setq-default pdf-view-display-size 'fit-page)
|
||||
;; turn off cua so copy works
|
||||
(add-hook! 'pdf-view-mode-hook (cua-mode 0)))
|
||||
|
||||
|
||||
(when (featurep! :lang latex)
|
||||
(after! latex
|
||||
;; add to the program list
|
||||
(add-to-list 'TeX-view-program-selection
|
||||
'(output-pdf "PDF Tools"))
|
||||
(add-to-list 'TeX-view-program-list
|
||||
'("PDF Tools" ("TeX-pdf-tools-sync-view")))
|
||||
|
||||
;; enable document revert
|
||||
(add-hook 'TeX-after-compilation-finished-functions
|
||||
#'TeX-revert-document-buffer)
|
||||
|
||||
;; correlated mode
|
||||
(setq TeX-source-correlate-start-server t
|
||||
TeX-source-correlate-mode t)))
|
||||
;; Turn off cua so copy works
|
||||
(add-hook! 'pdf-view-mode-hook (cua-mode 0))
|
||||
;; Custom modeline that removes useless info and adds page numbers
|
||||
(when (featurep! :ui doom-modeline)
|
||||
(load! +modeline)
|
||||
(add-hook! pdf-tools-enabled (doom-set-modeline 'pdf-tools-modeline)))
|
||||
;; Handle PDF-tools related popups better
|
||||
(set! :popup "^\\*Outline*" '((side . right) (size . 40)) '((select)))
|
||||
;; TODO: Add additional important windows that should be handled differently
|
||||
;; TODO: These two next rules don't work (they should), investigate
|
||||
;; (set! :popup "\\*Contents\\*" '((side . right) (size . 40)) nil)
|
||||
;; (set! :popup "* annots\\*$" '((side . left) (size . 40)) '((select)))
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue