From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: pretty highlighting and indenting own elisp macros Date: Wed, 16 Oct 2002 11:01:06 -0600 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <3DAD9B52.9090604@ihs.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1034957246 20510 80.91.224.249 (18 Oct 2002 16:07:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 18 Oct 2002 16:07:26 +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 182Zem-0005KW-00 for ; Fri, 18 Oct 2002 18:07:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 182ZcQ-0004X7-00; Fri, 18 Oct 2002 12:04:58 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.stueberl.de!fu-berlin.de!uni-berlin.de!170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 170.207.51.80 Original-X-Trace: fu-berlin.de 1034787667 24578799 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us Original-Xref: shelby.stanford.edu gnu.emacs.help:106126 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:2676 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2676 Klaus Berndl wrote: > If i add a call to `with-temp-file' in my elisp-program it will be highlighted > with font-lock-keyword-face and indented like follows: > > (with-temp-file "my-filename" > (foo ...) > (bar ...)) > > Fine. But suppose i have written my own macro `with-XYZ': > > (defmacro with-XYZ (arg &rest body) > ....) > > If i add this macro to my elisp-program then it is not highlighted as keyword > and it is poorly indented: > > (with-XYZ "my-first-arg" > (first-form-of-body ..) > ...) > > What must i do so my own macros are highlighted and indented as build-in macros > like `with-temp-file'? The former one seems to be not so hard but for the > second one i have no glue. ;;; Local Variables: ;;; eval: (put 'with-XYZ 'lisp-indent-hook 1) ;;; End: -- Kevin Rodgers