emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New Package for GNU ELPA


From: Ian Dunn
Subject: Re: New Package for GNU ELPA
Date: Sun, 22 May 2016 13:27:41 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]