From: Arash Esbati <arash@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Mode hooks for latex and tex files
Date: Mon, 02 Dec 2024 14:17:16 +0100 [thread overview]
Message-ID: <m2r06q442r.fsf@macmutant.fritz.box> (raw)
In-Reply-To: irbW--nicwSgko8hERX7Y9zEqvs9wij2m64BmvZZpHLQ2dllB7a2QIv_4sST5Q1iexZ-xkFaOwyFqQ_2koxZhSmemGLgxv3b9FlAiP00upI=@protonmail.com
Heime via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> writes:
> What are the mode hooks for latex and tex files?
It depends.
> Using latex and tex is currently very non-intuitive, with things
> like LaTex-mode, TeX-mode. This mixed capitalisation is all too
> confusing because ordinary users see only a latex or tex configuration
> for their modes, rather than the nuances of capitalisation changes.
The only point you have to consider is that there are 2 major modes for
editing plain-tex and latex files:
• The modes bundled with Emacs (in tex-mode.el, do
'M-x locate-library RET tex-mode RET') and
• the modes provided by AUCTeX (a package you must install from ELPA
first).
If you're using the former, use `plain-tex-mode-hook' or
`latex-mode-hook', and with the latter, set `plain-TeX-mode-hook' or
`LaTeX-mode-hook'.
`tex-mode-hook' and `TeX-mode-hook' are sort of meta-modes and not
intended for end users, so don't set them.
Best, Arash
next prev parent reply other threads:[~2024-12-02 13:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-30 19:55 Mode hooks for latex and tex files Heime via Users list for the GNU Emacs text editor
2024-12-01 14:43 ` Jean Louis
2024-12-01 14:58 ` Heime via Users list for the GNU Emacs text editor
2024-12-01 21:20 ` Heime via Users list for the GNU Emacs text editor
2024-12-02 10:17 ` Jean Louis
2024-12-02 11:13 ` Joel Reicher
2024-12-02 13:17 ` Arash Esbati [this message]
2024-12-02 15:58 ` Heime via Users list for the GNU Emacs text editor
2024-12-02 16:15 ` Heime via Users list for the GNU Emacs text editor
2024-12-02 20:17 ` Arash Esbati
2024-12-02 20:29 ` Heime via Users list for the GNU Emacs text editor
2024-12-02 20:38 ` Arash Esbati
2024-12-02 20:44 ` Heime via Users list for the GNU Emacs text editor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2r06q442r.fsf@macmutant.fritz.box \
--to=arash@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.