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:35:50 +0300 Message-ID: <83wnaa84wp.fsf@gnu.org> References: <83k06aa3xs.fsf@gnu.org> <8335cy9ku2.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8015"; 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:37:29 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 1oXMDJ-0001vF-Cy for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 11 Sep 2022 14:37:29 +0200 Original-Received: from localhost ([::1]:39642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXMDI-000125-Br for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 11 Sep 2022 08:37:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXMC2-000110-0i for help-gnu-emacs@gnu.org; Sun, 11 Sep 2022 08:36:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34108) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXMBz-0005zu-LM for help-gnu-emacs@gnu.org; Sun, 11 Sep 2022 08:36:08 -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=xtWosgy0O9pX36X9no0gs+deW8Ie3zOM6qB0T9R/6Q0=; b=aEZlfaeFJUE7 bQCL+dozdUqTpdNVLBUKZEvUVnSPoTz7VDrsXEor018oFym3vyQgrGUziYk2AvYvUxCJKr6FfQhAs qGBURT85wMJOu6MarqKBhANr9OqCewDEBkkWVmVTI4hHD7dTlqxjDM1Lj88BuJVtSA/vXXPBJPAjJ e3OnOW9vUEJHZ2EY9JaXjVxEcBAfALLVl++KeywxGAMGLClYikJxsLnQxY9v112aWvgf91iPQg7Am z59XKM2HrlBBPEwXtMNsYnjf3myeD60/Swyfr19yRAWGz9eH2wuOgU/bXqfH5zAIdNw81n2o2o4wX gWgyJikZYkSdYz9jzsxs5Q==; Original-Received: from [87.69.77.57] (port=3087 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 1oXMBz-0004Tp-4Y for help-gnu-emacs@gnu.org; Sun, 11 Sep 2022 08:36:07 -0400 In-Reply-To: (message from uzibalqa on Sun, 11 Sep 2022 12:13:53 +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:139365 Archived-At: > Date: Sun, 11 Sep 2022 12:13:53 +0000 > From: uzibalqa > Cc: help-gnu-emacs@gnu.org > > 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? Better from what POV? Does the above fail to work for some reason?