; Some of the things here should really apply more generally to TeX ; mode rather than just LaTeX mode. ;(setq-default TeX-master nil) ;(setq TeX-parse-self t) ; Enable parse on load. ;(setq TeX-auto-save t) ; Enable parse on save. ; may want to limit parsing later to improve speed. ;(setq TeX-auto-local "auctexauto") ;(setq TeX-electric-escape t) (setq TeX-debug-bad-boxes t) (require 'tex-site) (eval-after-load "latex" '(progn (load "~rig/emacs/lisp/auctex-mod") ; My modifications to auctex. (load "~rig/emacs/lisp/latex-add") ; LaTeX mode additions to auctex. (setq latex-template-file "~rig/tex/templates/") (define-key LaTeX-mode-map "\eq" 'fund-fill-paragraph) (define-key TeX-electric-macro-map " " 'self-insert-command) ; Undoes auctex setting to 'minibuffer-complete-and-exit ; to allow '\ ' as a macro with electric escape (setq outline-regexp "\\(%?[* ]+\\|\\\\part\\|\\\\chapt\\|\\\\\\(sub\\)*section\\)") ; Allows headings for outline mode to be appropriate comments in a ; .tex file or the standard latex section heading commands ; Predates my use of auctex; may be desirable to pitch now. )) (provide 'latex-hackery)