emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nxml-mode: Derive from prog-mode instead of text-mode


From: Tom Tromey
Subject: Re: nxml-mode: Derive from prog-mode instead of text-mode
Date: Sun, 14 May 2017 21:05:50 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

>>>>> "Philipp" == Philipp Stephani <address@hidden> writes:

Philipp> prog-mode is more of an implementation detail than an API.

I don't think that's correct.  For example, the emacs manual recommends
it to users:

      In particular, if you want to apply a hook function to any
    programming language mode, add it to ‘prog-mode-hook’; Prog mode is a
    major mode that does little else than to let other major modes inherit
    from it, exactly for this purpose.

Tom



reply via email to

[Prev in Thread] Current Thread [Next in Thread]