From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Dunn Newsgroups: gmane.emacs.devel Subject: Re: New Package for GNU ELPA Date: Sun, 22 May 2016 13:27:41 -0400 Message-ID: <87futaf1f6.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1463938075 31908 80.91.229.3 (22 May 2016 17:27:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 May 2016 17:27:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: Cl?ment Pit--Claudel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 22 19:27:54 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b4XAN-0000jS-Kq for ged-emacs-devel@m.gmane.org; Sun, 22 May 2016 19:27:51 +0200 Original-Received: from localhost ([::1]:43985 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4XAM-0007Lh-JA for ged-emacs-devel@m.gmane.org; Sun, 22 May 2016 13:27:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4XAH-0007LZ-ND for emacs-devel@gnu.org; Sun, 22 May 2016 13:27:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b4XAF-0002wn-Ln for emacs-devel@gnu.org; Sun, 22 May 2016 13:27:44 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4XAF-0002wj-JC; Sun, 22 May 2016 13:27:43 -0400 Original-Received: from [2604:6000:1010:176:d06f:8928:a420:e516] (port=48654 helo=escafil) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b4XAE-0005jS-SE; Sun, 22 May 2016 13:27:43 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:203943 Archived-At: On 2016-05-22, Cl?ment Pit--Claudel wrote: > > ;; Add font lock for both macros. > > (font-lock-add-keywords > > 'emacs-lisp-mode > > '(("(\\(define-hook-helper\\)\\_>[ \t]*\\(\\(?:\\sw\\|\\s_\\)+\\)?" > > (1 font-lock-keyword-face) > > (2 font-lock-constant-face nil t)) > > ("(\\(define-mode-hook-helper\\)\\_>[ \t]*\\(\\(?:\\sw\\|\\s_\\)+\\)?" > > (1 font-lock-keyword-face) > > (2 font-lock-constant-face nil t)))) > > Is there a reason why these two macros aren't highlighted properly by default? I don't think other packages do this. > Yes and no. Yes, as macros, they have their name highlighted, but to emphasise the significance of the second argument, I wanted that be highlighted as well. I know for a fact that both use-package and hydra do this same thing, as I used the two of them as an example when creating the above code. Also, please CC me on any replies to this, and not just the mailing list. I'm sure it was just a mistake. -- Ian Dunn