Othersemacs latex-mode

Information and discussion about other LaTeX editors not listed above
Post Reply
lovec
Posts: 1
Joined: Mon Jul 05, 2010 11:05 am

emacs latex-mode

Post by lovec »

Hi dear LaTeX + emacs users.

I am a semi-noob on this and I have problems getting my emacs recognizing .tex as latex and even running latex-mode. Usually when you run latex-mode (M-x : latex-mode) emacs should switch to latex-mode, but nothing happens in my case. The menu bar still show the TeX options, highlighting remains the same etc.

I am running emacs 23.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4), this is on a university system so I don't know much about it.

Any help is welcome.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

emacs latex-mode

Post by php1ic »

If you always want .tex files to be highlighted in latex mode, add this line to your .emacs file (it should be in your home directory).

Code: Select all

(setq auto-mode-alist (cons '("\\.tex" . latex-mode) auto-mode-alist))
Post Reply