Browse Source

two monitors PDF in new frame

arch-macpro
parent
commit
32c07d4c6a
1 changed files with 11 additions and 4 deletions
  1. +11
    -4
      .emacs

+ 11
- 4
.emacs View File

@ -78,9 +78,17 @@
(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode) (add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex) (add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(setq reftex-plug-into-AUCTeX t) (setq reftex-plug-into-AUCTeX t)
(setq TeX-view-program-list '(("Evince" "evince --page-index=%(outpage) %o")))
(setq TeX-view-program-selection '((output-pdf "Evince")))
(setq TeX-view-program-selection '((output-pdf "PDF Tools"))
TeX-source-correlate-start-server t)
;; Update PDF buffers after successful LaTeX runs ;; Update PDF buffers after successful LaTeX runs
(defun framesMenus-display-buffer-use-some-frame (fun &rest args)
"Use `display-buffer-use-some-frame' as `display-buffer-overriding-action'.
Then run FUN with ARGS."
(let ((display-buffer-overriding-action '(display-buffer-use-some-frame)))
(apply fun args)))
(advice-add 'TeX-pdf-tools-sync-view :around #'framesMenus-display-buffer-use-some-frame)
(advice-add 'pdf-sync-backward-search-mouse :around #'framesMenus-display-buffer-use-some-frame)
(add-hook 'TeX-after-compilation-finished-functions (add-hook 'TeX-after-compilation-finished-functions
#'TeX-revert-document-buffer) #'TeX-revert-document-buffer)
(add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-view-mode)) (add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-view-mode))
@ -142,8 +150,7 @@
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(package-selected-packages
'(docker-compose-mode markdown-mode org-ref doom-modeline all-the-icons doom-themes which-key helm use-package)))
)
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.


Loading…
Cancel
Save