unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* how to define a comment syntax for files having a specific extension?
@ 2007-04-02  8:53 gento
  2007-04-02 14:01 ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: gento @ 2007-04-02  8:53 UTC (permalink / raw)
  To: help-gnu-emacs

Hi All, I'm using
"GNU Emacs 21.2.1 (i686-pc-cygwin, X toolkit) of 2004-03-22 on cm-
test"
and working on journal text files *.jou for which the commented lines
must start with the character "/".

While editing one of such files I need to run
M-: (setq comment-start "/")
in order to comment regions with the sequence C-c;

I'd like to have emacs recognize the "*.jou" files and
apply the corresponding comment syntax automatically,
sparing me from having to type
M-: (setq comment-start "/")
each time I start working on a *.jou file.

I appreciate any help

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

end of thread, other threads:[~2007-04-03 10:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-02  8:53 how to define a comment syntax for files having a specific extension? gento
2007-04-02 14:01 ` Stefan Monnier
2007-04-02 15:23   ` gento
2007-04-03  7:30     ` Pascal Bourguignon
2007-04-03 10:51       ` gento
2007-04-03  8:27     ` Tim X

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).