From: pjb <pjb@informatimago.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to enable the syntax highlighting for comments within files having a specific extension?
Date: Thu, 27 Aug 2009 13:57:10 -0700 (PDT) [thread overview]
Message-ID: <8521420b-cab4-4458-b7bd-197e5e3575a5@r38g2000yqn.googlegroups.com> (raw)
In-Reply-To: a9b54254-9b71-4a85-9668-e5af8917f579@q11g2000yqi.googlegroups.com
On August 14, 2009 4:21:56 PM CEDT, gento
<gento_distef...@hotmail.com> wrote:
> I've made this modification to .emacs
>
> (add-hook 'find-file-hooks
> (lambda ()
> (when (string-match "\\.jou$" (buffer-file-name))
> (setq comment-start "/")
> (font-lock-add-keywords nil '("\\(/.*\\)$" (1 font-lock-comment-face)))
> )
> )
> )
>
> but I still have no coloring of the commented lines :(
It works for me (with emacs 22.3.1). Have you evaluated the above
form?
--
__Pascal Bourguignon__
prev parent reply other threads:[~2009-08-27 20:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-15 11:37 How to enable the syntax highlighting for comments within files having a specific extension? gento
2009-07-15 23:51 ` Xah Lee
2009-07-16 13:13 ` bj
2009-07-17 1:14 ` Xah Lee
2009-08-27 22:22 ` A.Politz
2009-08-27 20:57 ` pjb [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8521420b-cab4-4458-b7bd-197e5e3575a5@r38g2000yqn.googlegroups.com \
--to=pjb@informatimago.com \
--cc=help-gnu-emacs@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.