all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: goncholden <goncholden@protonmail.com>
To: goncholden <goncholden@protonmail.com>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, help-gnu-emacs@gnu.org
Subject: Re: Adding functionality to a minor mode
Date: Tue, 08 Feb 2022 22:47:38 +0000	[thread overview]
Message-ID: <n1MJWM0wb7yGDjGggfJeTY3bPt4hn_s65om1V1F4AmtJTETBu-RR5kKm-74VQgON9dlwQRZzyfQjMUP0EcqD0crz9MITbO5LXq39CK9mAsE=@protonmail.com> (raw)
In-Reply-To: <iqgE4AvOt4Ap9Wp-DZcqGwrFzDS74J2pOZE9FE0HMaHOWjfBBViOdH5pagjQozq384ClSamgqiNEm_WcRjGhXMO3qaHdlBSjrDlm5aBwBWk=@protonmail.com>

------- Original Message -------
On Tuesday, February 8th, 2022 at 5:05 PM, goncholden <goncholden@protonmail.com> wrote:
> Sent with ProtonMail Secure Email.
> ------- Original Message -------
> On Tuesday, February 8th, 2022 at 1:27 PM, Stefan Monnier via Users list for the GNU Emacs text editor help-gnu-emacs@gnu.org wrote:

> > Is there a way that I can remember the :weight used initially,
> > "(set-face-attribute 'default nil :height 160 :weight 'ultra-bold)"
> > so I can set comments to ultra-bold again when the minor-mode is disabled.

> Rather than `set-face-attribute` you want to go through Customize's
> face settings.

> E.g. you can get the above behavior using a "Custom theme", which you
> can then enable&disable at will.

> Custom themes are conceptually very similar to (global) minor modes.

Stefan, my setup involved using modus-vivendi to which I add a bold font
for everything.  But I want a special customisation for comments.  Customisations
include having a normal weight, and having a keybinding that changes the contrast
ratio between the comment colour and the background.

My first thought has been to define a minor mode.  But from the comments from this
mailing list, I has been put forward to mo that what I am doing could be a very
non-standard customisation.  What would be the most appropriate way to customise
comments as described.  I would be grateful for examples on how I should approach
the task.

Cholden





      reply	other threads:[~2022-02-08 22:47 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-05 10:00 Adding functionality to a minor mode goncholden via Users list for the GNU Emacs text editor
2022-02-05 18:50 ` goncholden
2022-02-07  0:09   ` goncholden
2022-02-07  6:00     ` Eric Abrahamsen
2022-02-07 13:56       ` goncholden
2022-02-07 18:05         ` Michael Heerdegen
2022-02-07 19:18           ` goncholden
2022-02-07 20:26             ` [External] : " Drew Adams
2022-02-07 20:38               ` goncholden
2022-02-07 20:59                 ` Drew Adams
2022-02-07 21:40             ` Michael Heerdegen
2022-02-07 22:15               ` goncholden
2022-02-07 22:26                 ` Michael Heerdegen
2022-02-08  7:41         ` Kevin Vigouroux via Users list for the GNU Emacs text editor
2022-02-08 13:27         ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-02-08 17:05           ` goncholden
2022-02-08 22:47             ` goncholden [this message]

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='n1MJWM0wb7yGDjGggfJeTY3bPt4hn_s65om1V1F4AmtJTETBu-RR5kKm-74VQgON9dlwQRZzyfQjMUP0EcqD0crz9MITbO5LXq39CK9mAsE=@protonmail.com' \
    --to=goncholden@protonmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.