Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (36 sloc) 1.48 KB
;; Tex (auctex)
;; Time-stamp: "2010-11-26 18:24:10 anton"
;;; Auctex (non-elpa install)
;; From
;; ./configure --prefix=/Users/anton/.emacs.d/lisp/auctex \
;; --without-texmf-dir \
;; --with-emacs=/Applications/ \
;; --with-lispdir=/Users/anton/.emacs.d/lisp/auctex
;; make && make install
;; (add-to-list 'load-path (expand-file-name "~/.emacs.d/lisp/auctex"))
;; (load "auctex.el" nil t t)
;; (load "preview-latex.el" nil t t)
(defun aj-latex-mode-hook()
(TeX-PDF-mode t)
(TeX-fold-mode 1)
;;(longlines-mode 0)
(flyspell-mode 1)
;;(ispell-change-dictionary "svenska" nil)
(auto-fill-mode 1)
(local-set-key (kbd "C-c C-f") 'LaTeX-close-environment) ;; Nxml style close
(local-set-key (kbd "C-c C-n") 'TeX-next-error)
(local-set-key (kbd "C-c C-o") 'ffap)
(local-set-key (kbd "C-<return>") 'TeX-command-master))
(add-hook 'LaTeX-mode-hook 'aj-latex-mode-hook)
(setq TeX-parse-self t) ; Enable parse on load.
(setq TeX-auto-save t) ; Enable parse on save.
;; OSX view command → open
(setq TeX-view-program-list-builtin
'(("" "open -a %o")
("Skim" "open -a %o")
("displayline" "displayline %n %o %b")
("open" "open %o")))
(setq TeX-view-program-selection '((output-dvi "open")
(output-pdf "open")
(output-html "open")))
(provide 'aj-latex)
Something went wrong with that request. Please try again.