Skip to content
Browse files

Update .emacs

  • Loading branch information...
1 parent 10a6515 commit 5be8a344a24ec84536458466674f7727d7f14455 @jasonmc committed Jan 22, 2012
Showing with 22 additions and 21 deletions.
  1. +22 −21 .emacs
View
43 .emacs
@@ -235,7 +235,7 @@
;(color-theme-blue-mood)
;(color-theme-subtle-hacker)
;(color-theme-greiner)
- (color-theme-tango)
+ ;(color-theme-tango)
(set-frame-height (selected-frame) 70)
(set-frame-width (selected-frame) 160)
(set-frame-height (selected-frame) 70)
@@ -270,6 +270,27 @@
(add-hook 'ruby-mode-hook 'flymake-ruby-load)
+ (require 'flymake)
+ (defun flymake-get-tex-args (file-name)
+ (list "pdflatex"
+ (list "-file-line-error" "-draftmode" "-interaction=nonstopmode" file-name)))
+ ;; (add-hook 'LaTeX-mode-hook 'flymake-mode)
+
+ (add-hook 'LaTeX-mode-hook 'flyspell-mode)
+ (add-hook 'LaTeX-mode-hook 'flyspell-buffer)
+
+ (add-hook 'LaTeX-mode-hook 'reftex-mode)
+
+ (add-hook 'LaTeX-mode-hook
+ (lambda ()
+ (set-fill-column 100)
+ (longlines-mode)
+ (color-theme-aalto-light)
+ (setq reftex-plug-into-AUCTeX t)
+ (setq reftex-default-bibliography '("/home/jason/projects/thesis/thesis.bib"))
+ ))
+
+
;; (setq load-path
;; (cons (expand-file-name "~/vm_stuff/llvm/llvm-2.3/utils/emacs") load-path))
@@ -379,18 +400,6 @@
(setq-default TeX-master nil)
-(defun flymake-get-tex-args (file-name)
- (list "pdflatex" (list "-file-line-error" "-draftmode" "-interaction=nonstopmode" file-name)))
-
-;(defun flymake-get-tex-args (file-name)
-; (list "pdflatex" (list "-file-line-error" "-draftmode" "-interaction=nonstopmode" file-name)))
-
-
-(add-hook 'TeX-mode-hook
- '(lambda ()
- ;(set-pairs '("(" "{" "[" "\"" "\'"))
- ;(auto-fill-mode 1)
- (flymake-mode t)))
;; flymake
@@ -427,14 +436,6 @@
(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
-(when (eq machine 'mclovin)
-
-
-
-
-
-)
-
;;; (autoload 'python-mode "python-mode" "Python Mode." t)

0 comments on commit 5be8a34

Please sign in to comment.
Something went wrong with that request. Please try again.