From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: uzibalqa Newsgroups: gmane.emacs.help Subject: Re: Changing colour of ruler-mode-current-column Date: Sun, 11 Sep 2022 12:13:53 +0000 Message-ID: References: <83k06aa3xs.fsf@gnu.org> <8335cy9ku2.fsf@gnu.org> Reply-To: uzibalqa Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21650"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 11 14:14:28 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oXLr1-0005RB-UD for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 11 Sep 2022 14:14:28 +0200 Original-Received: from localhost ([::1]:38678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXLr0-0007Je-D3 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 11 Sep 2022 08:14:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXLqc-0007JM-3Z for help-gnu-emacs@gnu.org; Sun, 11 Sep 2022 08:14:02 -0400 Original-Received: from mail-4325.protonmail.ch ([185.70.43.25]:24219) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXLqZ-0001Bm-3R; Sun, 11 Sep 2022 08:14:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1662898436; x=1663157636; bh=rYrjkkyQxHrZvW+o8FONfPRtQBY5fw76heThiSo6ekg=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=cyBZy4rfNTL7nJOU7Bz7zu3OxfP4QLiSAiCOS/1MLBYJud2T3LuJ29dgOkZuvassb zIDAouAmUgPAoaTMgj8LS6Ya9ZDWwoFsovnIcxUk/l/Pp1hmSvg7Q/2IeeW+mXKZs4 qFTQAjYE9TCDMrYMInNl+5ul3bYo0EfhU2wtWxQVwISgFFCa+Pl/0AlB4+jgRx5aQm XVhOblts95M6i87VoYsGcE2CocL6KDDyuia4eo6iV/6es4LTsv+ZichtL2hKDA/Na6 Q/e/rYZO5vsOCMiKyZVCLIINYpGNm+NXNCTNQhyTwV9UNP9W1Ih8E9lbHolSS6cWLL JzcNlbxxq1PHA== In-Reply-To: <8335cy9ku2.fsf@gnu.org> Feedback-ID: 52887082:user:proton Received-SPF: pass client-ip=185.70.43.25; envelope-from=uzibalqa@proton.me; helo=mail-4325.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139364 Archived-At: ------- Original Message ------- On Sunday, September 11th, 2022 at 12:06 PM, Eli Zaretskii w= rote: > > From: Christopher Dimech dimech@gmx.com > > Cc: help-gnu-emacs@gnu.org > > Date: Sun, 11 Sep 2022 13:57:44 +0200 > >=20 > > > 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 > > >=20 > > > > Date: Sat, 10 Sep 2022 22:58:01 +0000 > > > > From: uzibalqa uzibalqa@proton.me > > > >=20 > > > > I am using ruler-mode and would like to change the background and f= oreground colour of the cursor indicator. > > > >=20 > > > > Had a go but ruler-mode-current-column is not a face. > > > >=20 > > > > (set-face-attribute 'ruler-mode-current-column nil > > > > :background "#ff4500" :foreground "#ffffff") > > >=20 > > > Yes, ruler-mode-current-column is a face, and the above works for > > > me: the colors of the current-column indicator change. > >=20 > > There exists the possibility of needing this (require 'ruler-mode) >=20 >=20 > 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?