unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Stefan Monnier <foo@acm.com>" <monnier+gnu.emacs.help/news/@rum.cs.yale.edu>
Subject: Re: modes
Date: 06 Sep 2002 15:57:53 -0400	[thread overview]
Message-ID: <5lvg5iubzy.fsf@rum.cs.yale.edu> (raw)
In-Reply-To: de7e9.204743$vg.35740527@twister.nyroc.rr.com

>>>>> "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

      reply	other threads:[~2002-09-06 19:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-06 19:20 modes Jeff Rancier
2002-09-06 19:57 ` Stefan Monnier <foo@acm.com> [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5lvg5iubzy.fsf@rum.cs.yale.edu \
    --to=monnier+gnu.emacs.help/news/@rum.cs.yale.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).