]> git.donarmstrong.com Git - emacs.git/commitdiff
move reftex stuff out
authorDon Armstrong <don@donarmstrong.com>
Wed, 16 Dec 2015 04:20:12 +0000 (22:20 -0600)
committerDon Armstrong <don@donarmstrong.com>
Wed, 16 Dec 2015 04:20:12 +0000 (22:20 -0600)
.emacs

diff --git a/.emacs b/.emacs
index e863475b20b2b42400e8f1720504cbc6ac11e88d..bc51d72ec0baa5cb26ed4a040a5be65b73a0fac4 100644 (file)
--- 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