unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* modes
@ 2002-09-06 19:20 Jeff Rancier
  2002-09-06 19:57 ` modes Stefan Monnier <foo@acm.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Rancier @ 2002-09-06 19:20 UTC (permalink / raw)


Hello.

I've I have the following:

(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?

--

Thanks,
Jeff

-----------------------------------------------------------------
Jeffery B. Rancier
Softechnics, a METTLER TOLEDO company
7063 Interstate Island Rd.
Syracuse, NY  13209
http://www.softechnics.com
http://www.mt.com
-----------------------------------------------------------------
"Live as if you were to die tomorrow.
Learn as if you were to live forever."

                                    - M.K. Gandhi

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: modes
  2002-09-06 19:20 modes Jeff Rancier
@ 2002-09-06 19:57 ` Stefan Monnier <foo@acm.com>
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier <foo@acm.com> @ 2002-09-06 19:57 UTC (permalink / raw)


>>>>> "Jeff" == Jeff Rancier <jeff.rancier@softechnics.com> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-06 19:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-06 19:20 modes Jeff Rancier
2002-09-06 19:57 ` modes Stefan Monnier <foo@acm.com>

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).