|
@ -95,40 +95,40 @@ |
|
|
("C--" . er/contract-region)) |
|
|
("C--" . er/contract-region)) |
|
|
|
|
|
|
|
|
;; latex |
|
|
;; latex |
|
|
;; (use-package tex |
|
|
|
|
|
;; :defer t |
|
|
|
|
|
;; :ensure auctex |
|
|
|
|
|
;; :init |
|
|
|
|
|
;; (progn |
|
|
|
|
|
;; (setq-default TeX-master nil) ; Query for master file. |
|
|
|
|
|
;; (setq TeX-auto-save t) ; Enable parse on save. |
|
|
|
|
|
;; (setq TeX-save-query nil) |
|
|
|
|
|
;; (setq LaTeX-includegraphics-read-file 'LaTeX-includegraphics-read-file-relative) |
|
|
|
|
|
;; (custom-set-variables '(LaTeX-command "latex -synctex=1")) |
|
|
|
|
|
;; ;;(setq TeX-command-force "LaTex") |
|
|
|
|
|
;; ;;(setq latex-run-command "pdflatex") |
|
|
|
|
|
;; (setq TeX-parse-self t) ; Enable parse on load. |
|
|
|
|
|
;; (setenv "PATH" (concat (getenv "PATH") ":/Library/TeX/texbin/")) |
|
|
|
|
|
;; (setq exec-path (append exec-path '("/Library/TeX/texbin/"))) |
|
|
|
|
|
;; ;; pdf-tools configuration |
|
|
|
|
|
;; (setq TeX-PDF-mode t) |
|
|
|
|
|
;; (add-hook 'TeX-after-compilation-finished-functions |
|
|
|
|
|
;; #'TeX-revert-document-buffer) |
|
|
|
|
|
;; (setq TeX-view-program-selection '((output-pdf "PDF Tools")) |
|
|
|
|
|
;; TeX-source-correlate-start-server t) |
|
|
|
|
|
;; (setq pdf-info-epdfinfo-program "/usr/bin/epdfinfo") |
|
|
|
|
|
;; (add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-view-mode)) |
|
|
|
|
|
;; (add-hook 'pdf-view-mode-hook |
|
|
|
|
|
;; (lambda () (pdf-tools-enable-minor-modes))) |
|
|
|
|
|
;; ) |
|
|
|
|
|
;; :config |
|
|
|
|
|
;; (add-hook 'LaTeX-mode-hook |
|
|
|
|
|
;; (lambda () |
|
|
|
|
|
;; (company-mode) |
|
|
|
|
|
;; (turn-on-reftex) |
|
|
|
|
|
;; (setq reftex-plug-into-AUCTeX t) |
|
|
|
|
|
;; (reftex-isearch-minor-mode)) |
|
|
|
|
|
;; ) |
|
|
|
|
|
|
|
|
(use-package tex |
|
|
|
|
|
:defer t |
|
|
|
|
|
:ensure auctex |
|
|
|
|
|
:init |
|
|
|
|
|
(progn |
|
|
|
|
|
(setq-default TeX-master nil) ; Query for master file. |
|
|
|
|
|
(setq TeX-auto-save t) ; Enable parse on save. |
|
|
|
|
|
(setq TeX-save-query nil) |
|
|
|
|
|
(setq LaTeX-includegraphics-read-file 'LaTeX-includegraphics-read-file-relative) |
|
|
|
|
|
(custom-set-variables '(LaTeX-command "latex -synctex=1")) |
|
|
|
|
|
;;(setq TeX-command-force "LaTex") |
|
|
|
|
|
;;(setq latex-run-command "pdflatex") |
|
|
|
|
|
(setq TeX-parse-self t) ; Enable parse on load. |
|
|
|
|
|
(setenv "PATH" (concat (getenv "PATH") ":/Library/TeX/texbin/")) |
|
|
|
|
|
(setq exec-path (append exec-path '("/Library/TeX/texbin/"))) |
|
|
|
|
|
;; pdf-tools configuration |
|
|
|
|
|
(setq TeX-PDF-mode t) |
|
|
|
|
|
(add-hook 'TeX-after-compilation-finished-functions |
|
|
|
|
|
#'TeX-revert-document-buffer) |
|
|
|
|
|
(setq TeX-view-program-selection '((output-pdf "PDF Tools")) |
|
|
|
|
|
TeX-source-correlate-start-server t) |
|
|
|
|
|
(setq pdf-info-epdfinfo-program "/usr/bin/epdfinfo") |
|
|
|
|
|
(add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-view-mode)) |
|
|
|
|
|
(add-hook 'pdf-view-mode-hook |
|
|
|
|
|
(lambda () (pdf-tools-enable-minor-modes))) |
|
|
|
|
|
) |
|
|
|
|
|
:config |
|
|
|
|
|
(add-hook 'LaTeX-mode-hook |
|
|
|
|
|
(lambda () |
|
|
|
|
|
(company-mode) |
|
|
|
|
|
(turn-on-reftex) |
|
|
|
|
|
(setq reftex-plug-into-AUCTeX t) |
|
|
|
|
|
(reftex-isearch-minor-mode)) |
|
|
|
|
|
)) |
|
|
|
|
|
|
|
|
;; pdf-tools |
|
|
;; pdf-tools |
|
|
(use-package pdf-tools |
|
|
(use-package pdf-tools |
|
@ -174,6 +174,7 @@ |
|
|
'(font . "DejaVu Sans Mono-16")) |
|
|
'(font . "DejaVu Sans Mono-16")) |
|
|
(fset 'yes-or-no-p 'y-or-n-p) ;; Ask y/n instead of yes/no |
|
|
(fset 'yes-or-no-p 'y-or-n-p) ;; Ask y/n instead of yes/no |
|
|
(add-hook 'prog-mode-hook 'display-line-numbers-mode) ;; display line number when programming |
|
|
(add-hook 'prog-mode-hook 'display-line-numbers-mode) ;; display line number when programming |
|
|
|
|
|
(setq x-alt-keysym 'meta) |
|
|
;; -+-+-+-+-+-+-+- |
|
|
;; -+-+-+-+-+-+-+- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|