From: fatiparty--- via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: goncholden <goncholden@protonmail.com>
Cc: goncholden via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: Customisation for Comments
Date: Fri, 11 Feb 2022 00:37:49 +0100 (CET) [thread overview]
Message-ID: <Mva--b9--3-2@tutanota.com> (raw)
In-Reply-To: <J3rG1eJ2mmpXtjgEMOC0vklqg6TuLZ_WgH233ZA1nmrNXz_ParJSBljDEJw-YrtBIcDhZzcOMdPrbf7ZZt-_BEkEVoAbWSnwRypZEs-3hyw=@protonmail.com>
Feb 10, 2022, 10:59 by help-gnu-emacs@gnu.org:
> Am using modus-vivendi theme to which I add a bold font for everything.
>
> I want a special customisation for comments, using normal weight, and having a keybinding that changes the
> contrast ratio between the comment colour and the background.
>
> Had started writing a minor mode, but this seems to be a non-standard implementation. What would be the
> appropriate way to customise comments as described. Any examples I can use?
>
In the elisp manual you can find how the recommended way is to derive a mode from anexisting one using define-derived-mode. If there is no closelyrelated mode, you should inherit from either text-mode,special-mode, or prog-mode. Ifnone of these are suitable, you can inherit from fundamental-mode.
Although I have not done this myself, and so unaware of the details.
next prev parent reply other threads:[~2022-02-10 23:37 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-09 22:59 Customisation for Comments goncholden via Users list for the GNU Emacs text editor
2022-02-10 23:37 ` fatiparty--- via Users list for the GNU Emacs text editor [this message]
2022-02-11 17:26 ` goncholden
2022-02-11 19:00 ` goncholden
2022-02-11 19:19 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-11 19:25 ` fatiparty--- via Users list for the GNU Emacs text editor
2022-02-11 19:41 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-11 19:51 ` goncholden
2022-02-11 20:05 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-11 20:14 ` goncholden
2022-02-11 20:19 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-11 21:04 ` goncholden
2022-02-11 22:23 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-11 22:59 ` goncholden
2022-02-11 23:16 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-11 23:21 ` goncholden
2022-02-12 18:04 ` goncholden
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Mva--b9--3-2@tutanota.com \
--to=help-gnu-emacs@gnu.org \
--cc=fatiparty@tutanota.com \
--cc=goncholden@protonmail.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).