 		(shell-command
 		 "stumpish 'eval (stumpwm::return-es-called-win stumpwm::*es-win*)'"))))
 
-;; auctex
-(setq-default TeX-master nil)
-
-;; reftex
-(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
-(setq reftex-plug-into-auctex t)
-
-;; ac-math
-(add-to-list 'ac-modes 'latex-mode)
-
-(defun ac-latex-mode-setup ()
-  (setq ac-sources
-	(append '(ac-source-math-unicode ac-source-math-latex ac-source-latex-commands)
-		ac-sources)))
-
-(add-hook 'TeX-mode-hook 'ac-latex-mode-setup)
-
 ;; auto-fill-mode
 (add-hook 'mail-mode-hook 'auto-fill-mode)
-(add-hook 'TeX-mode-hook 'auto-fill-mode)
 (add-hook 'mail-mode-hook (lambda () (setq fill-column 72)))
 (global-set-key (kbd "C-c q") 'auto-fill-mode)
 

;;; syntax highlighting

(setq org-src-fontify-natively t)

;; Mutt support.
(setq auto-mode-alist (append '(("/tmp/mutt.*" . mail-mode)) auto-mode-alist))

(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
