-
Notifications
You must be signed in to change notification settings - Fork 2
/
dot-emacs
executable file
·27 lines (22 loc) · 1006 Bytes
/
dot-emacs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
;;elderdown'scroll
(require 'aml-elder)
;;
(defun my-latex-setup ()
(remove-hook 'LaTeX-mode-hook #'my-latex-setup)
(setq TeX-command-list
(append '(("Ggv Postscript" "dvips %d -o %f; ggv %f" TeX-run-command nil t)
("Acroread" "dvips -Pmyfonts %d -o %f; ps2pdf -dEncodeColorImages=false %f; acroread %s.pdf" TeX-run-command nil t)
("PdfLatex" "pdflatex %s.tex; acroread %s.pdf" TeX-run-command nil t)
("Xelatex" "xelatex %s.tex; acroread %s.pdf" TeX-run-command nil t)
("LuaTex" "luatex %s.tex; acroread %s.pdf" TeX-run-command nil t)
("Scheme" "mzscheme -vf %s.eval4tex" TeX-run-command nil t)
("Asymptote" "asy %s" TeX-run-command nil t))
TeX-command-list))
;; Some useful keys:
(define-key LaTeX-mode-map "\C-c\C-c" 'maybe-elder-and-TeX-command-master)
(define-key LaTeX-mode-map "\C-cg" 'xdvi-here)
;;the default command
(message "Changing default")
(setq TeX-command-default "PdfLatex"))
(add-hook 'LaTeX-mode-hook #'my-latex-setup)
(require 'latexize)