Skip to content

Commit

Permalink
Various changes to documentation and/or organization of .emacs
Browse files Browse the repository at this point in the history
  • Loading branch information
steveWang committed Aug 14, 2011
1 parent 1970c73 commit b8332fd
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .emacs
Expand Up @@ -38,6 +38,12 @@
(apply #'browse-url url args)))
(setq browse-url-browser-function 'browse-url-generic
browse-url-generic-program "google-chrome")

;; default viewer for auctex should be okular, not xdvi.
(defun dvi-with-okular ()
(add-to-list 'tex-output-view-style
(quote ("^dvi$" "." "okular %o %(outpage)"))))

;; autoload js2 mode.
(autoload 'js2-mode "js2-mode" nil t)
(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
Expand All @@ -48,6 +54,8 @@
(eval-after-load "color-theme"
'(progn
(color-theme-initialize)
;; Use euphoria if in -nw mode, since blackboard is displayed
;; poorly in this case.
(if window-system
(color-theme-blackboard)
(color-theme-euphoria))))
Expand Down Expand Up @@ -194,11 +202,6 @@
"module" "exports" "process" "__dirname"
"__filename"))

;; default viewer for auctex should be okular, not xdvi.
(defun dvi-with-okular ()
(add-to-list 'tex-output-view-style
(quote ("^dvi$" "." "okular %o %(outpage)"))))

(add-hook 'latex-mode-hook 'dvi-with-okular t)

;; flymake mode for js.
Expand Down

0 comments on commit b8332fd

Please sign in to comment.