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:41:31 +0000 Message-ID: References: <83k06aa3xs.fsf@gnu.org> <8335cy9ku2.fsf@gnu.org> <83wnaa84wp.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="30265"; 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:42:27 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 1oXMI6-0007h4-Ir for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 11 Sep 2022 14:42:26 +0200 Original-Received: from localhost ([::1]:50138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXMI4-0002ME-WD for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 11 Sep 2022 08:42:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXMHR-0002Ln-HP for help-gnu-emacs@gnu.org; Sun, 11 Sep 2022 08:41:45 -0400 Original-Received: from mail-4325.protonmail.ch ([185.70.43.25]:29345) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXMHK-0006gG-DD; Sun, 11 Sep 2022 08:41:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1662900094; x=1663159294; bh=H8tUC+mP50ceFVa17oyvhYhThx2mQcaU1KEeM/G1ggI=; 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=LvYVEqLwGYLmgV0Sidjn60VwgmVB7i/xM5jWzX+jr27aYw3PP0kXvorL4bUIF0NIe HEBKheH4JGGPdzljkpdSCE1SQdX1igh4zM3N4gitSV9xVdg5mYD1umsgA7lrSyWDK+ 5vfOHxntcper0EaiqRWTNFOOwfOLUssUAmmGeNKPDItviO07WoXdPVApPir0mHiqe/ EPonj/16Vm9RzFFjhqwqtcun0o2A1V2wCvL07/3Ew6t2POVZikwHj0HcAlyPdaQ5eo SfrZbOiXU3HsVox5QRTB3DMD8s+ivROtzJiEOwC95g9/39K+XrZPL8I+/nDhwHGHsu 76c5SsPLApl+w== In-Reply-To: <83wnaa84wp.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:139366 Archived-At: ------- Original Message ------- On Sunday, September 11th, 2022 at 12:35 PM, Eli Zaretskii w= rote: > > Date: Sun, 11 Sep 2022 12:13:53 +0000 > > From: uzibalqa uzibalqa@proton.me > > Cc: help-gnu-emacs@gnu.org > >=20 > > I have the following setup > >=20 > > (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") ) > >=20 > > Is there a recommended better way to do it? >=20 >=20 > Better from what POV? Does the above fail to work for some reason? It works, everything is fine.