help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: modes


From: Stefan Monnier <address@hidden>
Subject: Re: modes
Date: 06 Sep 2002 15:57:53 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Jeff" == Jeff Rancier <address@hidden> writes:
> (font-lock-add-keywords 'emacs-lisp-mode
> '(("\\(\\(\\([uU][rR]\\([lL]\\|[iI]\\|[nN]\\):\\)?\\([hH][tT][tT][pP][sS]?\\
> |[gG][oO][pP][hH][eE][rR]\\|[fF][iI][lL][eE]\\|[fF][tT][pP]\\)\\(://\\)\\|\\
> ([mM][aA][iI][lL][tT][oO]\\|[nN][eE][wW][sS]\\)\\(:\\)\\)[^\][>\t\n ]+\\)" 1
> font-lock-hyperlink-face prepend)))

> Is there something I can replace 'emacs-lisp-mode with to have this face
> active in all modes?

Try something like

  (add-hook 'font-lock-mode
    (lambda ()
      (when font-lock-mode
        (font-lock-add-keywords nil '(....)))))


-- Stefan


reply via email to

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