From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: henrik.jonsson@se.transport.bombardier.com (=?ISO-8859-1?Q?Henrik_J=F6nsson?=) Newsgroups: gmane.emacs.help Subject: Re: Slickedit features in Emacs? Date: 22 May 2003 00:07:47 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87e77d96.0305212307.60c099ef@posting.google.com> References: <87e77d96.0305211059.3e15858a@posting.google.com> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1053587495 13760 80.91.224.249 (22 May 2003 07:11:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 May 2003 07:11:35 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 22 09:11:34 2003 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 19IkE2-0003WK-00 for ; Thu, 22 May 2003 09:10:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19IkDn-0001Bw-5h for gnu-help-gnu-emacs@m.gmane.org; Thu, 22 May 2003 03:10:39 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 195.58.97.100 Original-X-Trace: posting.google.com 1053587279 29305 127.0.0.1 (22 May 2003 07:07:59 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 22 May 2003 07:07:59 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:113503 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9999 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9999 Benjamin Rutt wrote in message news:... > henrik.jonsson@se.transport.bombardier.com (Henrik Jönsson) writes: > > > My initial question was of course if the functions in Slickedit a full if template. Can this be done with > > skeletons? > > Yes, you just combine skeletons with abbrev. I like to type "ifx " to > expand my template in C mode: > > (define-skeleton my-skeleton-c-if > "Insert a c if statement" nil > "if (" > _ ")" \n > "{" '(indent-for-tab-command) \n > \n > "}" '(indent-for-tab-command)) > (define-abbrev c-mode-abbrev-table "ifx" "" 'my-skeleton-c-if) > Nice! Binding this to "ifx" works great. But I can't get it to bind to "if(". Is it possible? /henrik