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 08:13:51 +0300 Message-ID: <83k06aa3xs.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22408"; 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 07:14:52 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 1oXFIy-0005h0-6i for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 11 Sep 2022 07:14:52 +0200 Original-Received: from localhost ([::1]:51254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXFIw-00028d-Lq for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 11 Sep 2022 01:14:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXFII-00028M-UF for help-gnu-emacs@gnu.org; Sun, 11 Sep 2022 01:14:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXFII-00047x-M3 for help-gnu-emacs@gnu.org; Sun, 11 Sep 2022 01:14:10 -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=5PZCeTRqeKeZLBrYqROpzWruLpD8N+7Of3OdKHksM+M=; b=KCxXb6nSFoGQ dKZYoW2xzA3GGp8F/lFE0pLTVNPbaJWI6+t/57OisLm9HmNqKp/cKa3ksPp6MkCjtV72W+0OHCnKD G9bLKx1RH6nHixSoH1E5JPsvLUq4yFcb//EIrEZpdfGYCzBeIc2s7nrktb/ox1jl9s905J8HINn/l V/LQXkaBV87Zas0OSeYgPRLHOzWaFifO2lyMnETMYv2kar8z46dcec1nKJQoukZwcYGphLFW/fF84 crlMgJL8peZ6c4SvuBQr+DCpBy+FkORxubhUGyfCuajWYq5g1qFw4xo39u//91+NM4kCv8ubza2jK PREIbMT5NsZkOYzTtaERbA==; Original-Received: from [87.69.77.57] (port=3682 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 1oXFII-0005es-5t for help-gnu-emacs@gnu.org; Sun, 11 Sep 2022 01:14:10 -0400 In-Reply-To: (message from uzibalqa on Sat, 10 Sep 2022 22:58:01 +0000) 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:139354 Archived-At: > 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.