all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Changing colour of ruler-mode-current-column
Date: Sun, 11 Sep 2022 10:15:50 -0400	[thread overview]
Message-ID: <jwvy1uqc8az.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: H8OWxYRxocORlZp0i5jzhjP1CKclESxY73zBNK2kmsiS9RyLwaLeqhPll7Mfarm7Blo_vSiO3UqyyWyaVNQl9OTxZxhWszke_TCIRjWFj78=@proton.me

>   (add-hook 'window-configuration-change-hook (lambda () (ruler-mode 1)))

A.k.a (add-hook 'window-configuration-change-hook #'ruler-mode)

But to tell you the truth, I have no idea why you'd want to re-enable
ruler-mode every time the window-config changes.

ruler-mode is a buffer-local minor mode, so you'd normally install it
into a major-mode hook so as to enable it in those buffers where you
need it.

>  (set-face-attribute 'ruler-mode-current-column nil :background "#ff4500" :foreground "#ffffff") )

I'd stay away from a fiddly low-level function like `set-face-attribute`
and change face settings via Custom instead (or if you really want to
avoid Custom, use something like `face-spec-set`).


        Stefan




      parent reply	other threads:[~2022-09-11 14:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-10 22:58 Changing colour of ruler-mode-current-column uzibalqa
2022-09-11  5:13 ` Eli Zaretskii
2022-09-11 11:57   ` Christopher Dimech
2022-09-11 12:06     ` Eli Zaretskii
2022-09-11 12:13       ` uzibalqa
2022-09-11 12:35         ` Eli Zaretskii
2022-09-11 12:41           ` uzibalqa
2022-09-11 14:15         ` Stefan Monnier via Users list for the GNU Emacs text editor [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=jwvy1uqc8az.fsf-monnier+emacs@gnu.org \
    --to=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.