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?

1 Answer 1


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 and acknowledge you have read our privacy policy.

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