all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Colourising fill-column-indicator
Date: Wed, 04 Dec 2024 12:15:10 +0100	[thread overview]
Message-ID: <87o71rpum9.fsf@web.de> (raw)
In-Reply-To: 1C1u6MWb1qfh0NfL3EM0fiGNiKV7cH9u0YmIlc3S-VAX0lGYjkTYzEjQYJj-aQIB0EPcp6Tw4rc-ipY8so7lwQY_hJZRnPmuiEQPqqWwgIU=@protonmail.com

Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:

> Because  setq-default have no effect on the binding of the local variable,
> how does one set the local value?  With a mode hook?
>
> I want to have the same character indicator whenever one enables the
> mode.

Then you don't need to change buffer local bindings.  However ensure to
change the default value to your like before enabling the mode in any
buffer.  I would set the (default binding of the) variable when
starting Emacs, not when you invoke some function.

To your first question: just `setq' or `setq-local' with the buffer in
question current.  Setting via a hook is a typical scenario.


Michael.




  reply	other threads:[~2024-12-04 11:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-02 16:24 Colourising fill-column-indicator Heime via Users list for the GNU Emacs text editor
2024-12-04  3:39 ` Joel Reicher
2024-12-04  5:12 ` Michael Heerdegen
2024-12-04 10:49   ` Heime via Users list for the GNU Emacs text editor
2024-12-04 11:15     ` Michael Heerdegen via Users list for the GNU Emacs text editor [this message]
2024-12-04 11:24     ` Jean Louis

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=87o71rpum9.fsf@web.de \
    --to=help-gnu-emacs@gnu.org \
    --cc=michael_heerdegen@web.de \
    /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.