From: Arash Esbati <arash@gnu.org>
To: Heime <heimeborgia@protonmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Mode hooks for latex and tex files
Date: Mon, 02 Dec 2024 21:38:33 +0100 [thread overview]
Message-ID: <m2ttblyg52.fsf@macmutant.fritz.box> (raw)
In-Reply-To: <HWx8y-TcHZuvuLwxDcU5sZxIbplPWGqG3qtHAOx3CXvrRm8gx6euYh30ET1dFduw8-whLUfqj541yq_n8kQw8FXfmtTEXjUCZ30-h6LHQ9c=@protonmail.com> (Heime's message of "Mon, 02 Dec 2024 20:29:34 +0000")
Heime <heimeborgia@protonmail.com> writes:
> On Tuesday, December 3rd, 2024 at 8:17 AM, Arash Esbati <arash@gnu.org> wrote:
>
>> The mode names above (and the corresponding hooks) are all defined in
>> tex-mode.el which is distributed with Emacs; they don't belong to
>> AUCTeX:
>>
>> $ grep define-derived-mode tex-mode.el
>> (define-derived-mode tex-mode text-mode "generic-TeX"
>> (define-derived-mode plain-tex-mode tex-mode "TeX"
>> (define-derived-mode latex-mode tex-mode "LaTeX"
>> (define-derived-mode slitex-mode latex-mode "SliTeX"
>> (define-derived-mode tex-shell shell-mode "TeX-Shell"
>> (define-derived-mode doctex-mode latex-mode "DocTeX"
>>
>> As you can see, tex-mode.el breaks every "rule" you think you're
>> describing with "typical package-prefixed predicate style". A "mylib-"
>> prefix might be a natural choice for single file libraries, but it isn't
>> a must as long you get the prefix right.
>
> Correct, it breaks every rule. Instead of a prefix, the AUCTeX developers
> decided upon a camel-case variant. Their package does not fit nicely with
> emacs development preferred way.
I don't how often I have to repeat this: tex-mode.el is part of Emacs
and not part of AUCTeX:
https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/textmodes/tex-mode.el
And AFAICT, it does the job right.
Best, Arash
next prev parent reply other threads:[~2024-12-02 20:38 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
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 [this message]
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=m2ttblyg52.fsf@macmutant.fritz.box \
--to=arash@gnu.org \
--cc=heimeborgia@protonmail.com \
--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.