From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sebastian Tennant Newsgroups: gmane.emacs.help Subject: Dired - highlight the name of the directory in directory headers Date: Wed, 18 Nov 2020 17:45:56 +0000 Message-ID: <87d00alfsb.fsf@sebyte.me> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25403"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 18 18:52:07 2020 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 1kfRcl-0006Tt-5I for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 18 Nov 2020 18:52:07 +0100 Original-Received: from localhost ([::1]:45230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfRck-00052c-79 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 18 Nov 2020 12:52:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfRWr-0001Cr-P1 for help-gnu-emacs@gnu.org; Wed, 18 Nov 2020 12:46:01 -0500 Original-Received: from forward4-smtp.messagingengine.com ([66.111.4.238]:33797) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfRWp-0005gP-KC for help-gnu-emacs@gnu.org; Wed, 18 Nov 2020 12:46:01 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailforward.nyi.internal (Postfix) with ESMTP id C976919441F7 for ; Wed, 18 Nov 2020 12:45:57 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 18 Nov 2020 12:45:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=WDKz+0kYvyqQwe+vRf4P3Tgf7pETt 5MNcTkOE37fZl8=; b=Gc3SSFJruVMEY3AW6EcLPMM4YHlAVye2VHO/MgD9VglvR xedLCKvhDZofC9AEnaxBRg4Lil9l/DsSIgA9AKEwsTjkBvIcn9h48cM6fy33Cj9k v1k3yIln25HTZVPI5EKVPdJaLnBsIm/iw9NpM31mY5ImleEYZl4B8Jpupj7K0lCi 4gr5Wq5DBo5Q2DnO686NuKB68hvVq5ZJygkVb63zTEGl7LyZZha8TwQcyODAye2Y YxaQUkUB91DrOo+/zooV6D7sjTOA4hHNPm4Tc3LBoP/3giTuLtF+mYUPrghVy7VD PqnFZEjBCl1xDotlC7cIXW4R7GYIVYGHI3S2/3UEw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudefhedguddtiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfgfgggtsehttdertd dtredtnecuhfhrohhmpefuvggsrghsthhirghnucfvvghnnhgrnhhtuceoshguthesshgv sgihthgvrdhmvgeqnecuggftrfgrthhtvghrnhepffehhefgudffudefveetkeetgfduue fhvdekveetueettdeiueehhffhtddvheeunecuffhomhgrihhnpegurghtthgusgdrihhn fhhonecukfhppeelfedrleefrdduvdekrddvgeeinecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepshgvsgihthgvodhrvghtuhhrnhdqphgrthhh sehfrghsthhmrghilhdrtghomh X-ME-Proxy: Original-Received: from balor (balor.gnukahvesi.net [93.93.128.246]) by mail.messagingengine.com (Postfix) with ESMTPA id 8615E3064AB0 for ; Wed, 18 Nov 2020 12:45:57 -0500 (EST) Original-Received: from sebyte by balor with local (Exim 4.92) (envelope-from ) id 1kfRWm-0004Ah-Jb for help-gnu-emacs@gnu.org; Wed, 18 Nov 2020 17:45:56 +0000 Received-SPF: neutral client-ip=66.111.4.238; envelope-from=sebyte+return-path@fastmail.com; helo=forward4-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/18 12:45:57 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:125333 Archived-At: Hello all, I reached for a timer because I've been working with them recently but, of course, using advice is aprroximately one hundred times better: (advice-add 'dired-mode :after (lambda (&rest args) (hi-lock-face-buffer "\\([^/]+\\):\n" 'bold 1)) '((name . highlight-directory-name-in-headers))) I'd still love to know why adding an 'ordinary' function to dired-mode-hook doesn't work. sebyte -- Dorothy Annan Trevor Tennant database - DATTdb http://dattdb.info