From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Changing colour of ruler-mode-current-column Date: Sun, 11 Sep 2022 15:06:29 +0300 Message-ID: <8335cy9ku2.fsf@gnu.org> References: <83k06aa3xs.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31725"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 11 14:07:34 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 1oXLkM-00083b-9N for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 11 Sep 2022 14:07:34 +0200 Original-Received: from localhost ([::1]:55642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXLkL-0003yg-6a for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 11 Sep 2022 08:07:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54598) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXLjc-0003yR-2Q for help-gnu-emacs@gnu.org; Sun, 11 Sep 2022 08:06:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34972) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXLjb-0008S0-Q3 for help-gnu-emacs@gnu.org; Sun, 11 Sep 2022 08:06:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=49aEn4Q/4DwJS2EJuH/6tD8riS4GL6LX+nHI5x9jf+o=; b=EW/QbsF53ESv pX5ffI+QlZecz50BsBebEXON70dz5FNvDnBe1Xr5EAq1FfZEYwviTOmNWFCqLrMioFdCgZBaxntau LMzsh81jxyCGnnp86imTStRgy2MJ7+eDd4YByj+vh//Pcja0K6HHuov/pbJjQ8P1CBsJvF7Rqtje1 PZrYiUHfjasI/r5/vwDVJK+oRXtqUxbTY6qDup67VUj5ibsVW45H8FH1e8BPHM5a5zyjHaK4eJIOx hH8y3sEQykNY8XtEWTEUcPLgl2FINWjaQKsEfcUMEewpUxNxBbcWx7fDuuT2PYk2c4utdoyUEtw6A m3SI5oC3dcYTRYys+/72uA==; Original-Received: from [87.69.77.57] (port=1299 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXLja-0005Oi-QM for help-gnu-emacs@gnu.org; Sun, 11 Sep 2022 08:06:47 -0400 In-Reply-To: (message from Christopher Dimech on Sun, 11 Sep 2022 13:57:44 +0200) 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:139363 Archived-At: > From: Christopher Dimech > 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" > > 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 > > > > > > 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.