Usually I name my LaTeX files using the extension .ltx like file.ltx. How can I configure Emacs+AUCTeX in a way that it recognizes those files and load AUCTeX?


Add the following to your init file:

(setq auto-mode-alist (cons '("\\.ltx$" . latex-mode) auto-mode-alist))

The regular expression says "ends with .ltx". Documentation is here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.