unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: uzibalqa <uzibalqa@proton.me>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Changing colour of ruler-mode-current-column
Date: Sun, 11 Sep 2022 12:13:53 +0000	[thread overview]
Message-ID: <H8OWxYRxocORlZp0i5jzhjP1CKclESxY73zBNK2kmsiS9RyLwaLeqhPll7Mfarm7Blo_vSiO3UqyyWyaVNQl9OTxZxhWszke_TCIRjWFj78=@proton.me> (raw)
In-Reply-To: <8335cy9ku2.fsf@gnu.org>

------- Original Message -------
On Sunday, September 11th, 2022 at 12:06 PM, Eli Zaretskii <eliz@gnu.org> wrote:


> > From: Christopher Dimech dimech@gmx.com
> > Cc: help-gnu-emacs@gnu.org
> > Date: Sun, 11 Sep 2022 13:57:44 +0200
> > 
> > > Sent: Sunday, September 11, 2022 at 5:13 PM
> > > From: "Eli Zaretskii" eliz@gnu.org
> > > To: help-gnu-emacs@gnu.org
> > > Subject: Re: Changing colour of ruler-mode-current-column
> > > 
> > > > Date: Sat, 10 Sep 2022 22:58:01 +0000
> > > > From: uzibalqa uzibalqa@proton.me
> > > > 
> > > > I am using ruler-mode and would like to change the background and foreground colour of the cursor indicator.
> > > > 
> > > > Had a go but ruler-mode-current-column is not a face.
> > > > 
> > > > (set-face-attribute 'ruler-mode-current-column nil
> > > > :background "#ff4500" :foreground "#ffffff")
> > > 
> > > Yes, ruler-mode-current-column is a face, and the above works for
> > > me: the colors of the current-column indicator change.
> > 
> > There exists the possibility of needing this (require 'ruler-mode)
> 
> 
> I evaluated the above set-face-attribute form after turning on
> ruler-mode.

I have the following setup

(defun typex-ruler ()

  "Customisation for ruler."

  (interactive)

  (require 'ruler-mode)

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

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

Is there a recommended better way to do it?







  reply	other threads:[~2022-09-11 12:13 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 [this message]
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

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='H8OWxYRxocORlZp0i5jzhjP1CKclESxY73zBNK2kmsiS9RyLwaLeqhPll7Mfarm7Blo_vSiO3UqyyWyaVNQl9OTxZxhWszke_TCIRjWFj78=@proton.me' \
    --to=uzibalqa@proton.me \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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).