|
From: | Stefan Monnier |
Subject: | Re: how to define a comment syntax for files having a specific extension? |
Date: | Mon, 02 Apr 2007 10:01:16 -0400 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (gnu/linux) |
> 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. You need to create a major mode for those types of files. Check out sample-mode.el Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |