Received: by 10.68.202.168 with SMTP id kj8mr5996225pbc.1.1334450715911; Sat, 14 Apr 2012 17:45:15 -0700 (PDT) Path: r9ni57147pbh.0!nntp.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe09.iad.POSTED!00000000!not-for-mail Newsgroups: comp.emacs.xemacs Subject: Re: mode for editing ldif files? References: <4801ebad-d2c4-4573-9b84-865d1b634e72@j14g2000vbc.googlegroups.com> <20522811.584.1333591790770.JavaMail.geo-discussion-forums@yno37> <874nsvdrt0.fsf@acm.org> <24779441.1055.1334236760838.JavaMail.geo-discussion-forums@vbsf4> From: Mike Kupfer Message-ID: <87ty0lu8kp.fsf@acm.org> User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.5-b31 (linux) Cancel-Lock: sha1:LgHW0jjlxr1ibCMphdtgDG4SXYc= MIME-Version: 1.0 Lines: 33 X-Complaints-To: abuse@rawbandwidth.com NNTP-Posting-Date: Sun, 15 Apr 2012 00:45:15 UTC Date: Sat, 14 Apr 2012 17:45:10 -0700 X-Received-Bytes: 2059 Content-Type: text/plain; charset=us-ascii Jistan Idiot writes: > It would seem you only need to figure out 4 regular > expressions and tell xemacs to use a specific color for each one. > > So it should be doable in xemacs right? I would think so. > So I guess I need to be pointed in the direction of a tutorial on > creating a new mode in xemacs. Do you need a new mode, or do you just need to configure font-lock? (I don't know much about font-lock.) A few years ago someone asked about information on creating a new mode, and in response there was a recommendation for "Writing GNU Emacs Extensions". The exact quote is "Writing GNU Emacs Extensions" by Bob Glickstein includes creating new major and minor modes. The material is (on the whole) applicable to Xemacs. The ISBN number is 1-56592-261-1. I have successfully used this to create simple major and minor modes. However this is not a trivial task. Especially if you are not familiar with emacs-lisp. And of course there's documentation in Info, though I don't see a tutorial. The documentation for major and minor modes is in the Lispref section. I don't see anything in Info for font-lock, which surprises me. mike