From 4c2e66fc83ddf77ebb5dd74cd11f716d588bf116 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 15 Dec 2015 22:20:12 -0600 Subject: [PATCH] move reftex stuff out --- .emacs | 80 +++------------------------------------------------------- 1 file changed, 4 insertions(+), 76 deletions(-) diff --git a/.emacs b/.emacs index e863475..bc51d72 100644 --- a/.emacs +++ b/.emacs @@ -173,75 +173,6 @@ Argument DESCRIPTION MIME description." ;; (add-to-list 'auto-mode-alist '("\\.php?\\'" . php-mode)) ;; (add-to-list 'auto-mode-alist '("\\.php4?\\'" . php-mode)) -;; REFTEX (much enhanced management of cross-ref, labels, etc) -;; http://www.strw.leidenuniv.nl/~dominik/Tools/reftex/ -(autoload 'reftex-mode "reftex" "RefTeX Minor Mode" t) -(autoload 'turn-on-reftex "reftex" "RefTeX Minor Mode" nil) -(autoload 'reftex-citation "reftex-cite" "Make citation" nil) -(autoload 'reftex-index-phrase-mode "reftex-index" "Phrase mode" t) -(add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode -(add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode -(add-hook 'LaTeX-mode-hook 'outline-minor-mode) ; with AUCTeX LaTeX mode -(add-hook 'latex-mode-hook 'outline-minor-mode) ; with Emacs latex mode - -; use smart quotes by default instead of `` and '' -; taken from http://kieranhealy.org/esk/kjhealy.html -(setq TeX-open-quote "“") -(setq TeX-close-quote "”") - -;; (TeX-add-style-hook -;; "latex" -;; (lambda () -;; (TeX-add-symbols -;; '("DLA" 1)))) -;; (custom-set-variables -;; '(font-latex-user-keyword-classes -;; '(("fixme" -;; ("DLA" "RZ") -;; font-lock-function-name-face 2 (command 1 t)))) -;; ) - -(require 'font-latex) -(setq font-latex-match-reference-keywords - '( - ("fref" "{") - ("Fref" "{") - ("citep" "{") - ("citet" "{") - ("acs" "{") - ("acsp" "{") - ("ac" "{") - ("acp" "{") - ("acl" "{") - ("aclp" "{") - ("acsu" "{") - ("aclu" "{") - ("acused" "{") -; )) -; (setq font-latex-match-warning-keywords -; '( - ("DLA" "{") - ("RZ" "{") - ("OM" "{") - ("DL" "{") - ("fixme" "{"))) - -(setq-default TeX-parse-self t) -(setq-default TeX-auto-save t) -(setq-default TeX-master nil) - -;; this doesn't seem to work; not currently sure why -; (setq font-latex-user-keyword-classes -; '(("my-warning-commands" -; (("DLA" "{") -; ("RZ" "{") -; ("OM" "{") -; ("DL" "{") -; ("fixme" "{") -; ) -; (:foreground "red" :weight bold :underline (:color foreground-color :style line))) -; )) - (defun insert-date () "Insert date at point." @@ -263,9 +194,6 @@ Argument DESCRIPTION MIME description." (require 'mode-compile) -(setq-default reftex-default-bibliography - '("~/projects/research/references.bib")) - (defadvice server-process-filter (after post-mode-message first activate) "If the buffer is in post mode, overwrite the server-edit message with a post-save-current-buffer-and-exit message." @@ -335,10 +263,10 @@ Argument DESCRIPTION MIME description." (add-hook 'c-mode-common-hook 'flyspell-prog-mode) (add-hook 'cperl-mode-hook 'flyspell-prog-mode) (add-hook 'tcl-mode-hook 'flyspell-prog-mode) -(defun turn-on-flyspell () - "Force flyspell-mode on using a positive arg. For use in hooks." - (interactive) - (flyspell-mode 1)) +; (defun turn-on-flyspell () +; "Force flyspell-mode on using a positive arg. For use in hooks." +; (interactive) +; (flyspell-mode 1)) ; Outline-minor-mode key map -- 2.39.2