From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Benjamin Riefenstahl Newsgroups: gmane.emacs.help Subject: Re: Syntax highlighting for another languaje Date: 27 Nov 2002 17:55:12 +0100 Organization: None Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1038417313 32248 80.91.224.249 (27 Nov 2002 17:15:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 27 Nov 2002 17:15:13 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18H5mG-0008NL-01 for ; Wed, 27 Nov 2002 18:15:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18H5np-0004vX-00; Wed, 27 Nov 2002 12:16:45 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!news.supernews.com!cicero.benny.turtle-trading.net!nobody Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 24 Original-Xref: shelby.stanford.edu gnu.emacs.help:107549 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:4099 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4099 Hi Leo, "Bermudez, Leonardo " writes: > I was wondering how can I define font-locking for another > languaje. This languaje is just comment lines that start with "--", > some comands in uppercase and numbers (its an input file for another > program). Have a look at lisp/generic.el and lisp/generic-x.el. The first defines the function define-generic-mode (see also C-h f define-generic-mode), the other uses that for a number of simple modes that you can use as examples. > The other problem that I have is that I am just at user level in a > linux box and I do not have administrative rights. You can define a generic mode in your ~/.emacs. If things get larger or you want to use code from other sources, you can always create your own elisp directory in your home and add that to your load-path variable in ~/.emacs. Hope this helps, benny