From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Lee Newsgroups: gmane.emacs.help Subject: Re: Slickedit features in Emacs? Date: Thu, 22 May 2003 17:12:23 GMT Organization: Prodigy Internet http://www.prodigy.com Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <87e77d96.0305211059.3e15858a@posting.google.com> <87e77d96.0305212307.60c099ef@posting.google.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1053628756 948 80.91.224.249 (22 May 2003 18:39:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 May 2003 18:39:16 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 22 20:39:10 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 19IuwA-0008RD-00 for ; Thu, 22 May 2003 20:37:10 +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 19ItfP-00017e-Rj for gnu-help-gnu-emacs@m.gmane.org; Thu, 22 May 2003 13:15:47 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!canoe.uoregon.edu!logbridge.uoregon.edu!xmission!news-out.spamkiller.net!propagator2-maxim!news-in.superfeed.net!pd2nf1so.cg.shawcable.net!residential.shaw.ca!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr28.news.prodigy.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:LQlA3c6ukVizpKaChaLTlg3gUgI= Original-Lines: 27 Original-NNTP-Posting-Host: 216.62.199.3 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: newssvr28.news.prodigy.com 1053623543 ST000 216.62.199.3 (Thu, 22 May 2003 12:12:23 CDT) Original-NNTP-Posting-Date: Thu, 22 May 2003 12:12:23 CDT X-UserInfo1: OH]YBTSEJCUYRTH]]ZN@_TDAYZOZ@GXOXZYT]UEK@YUDUWYAKVUOPCW[ML\JXUCKVFDYZKBMSFX^OMSAFNTINTDDMVW[X\THOPXZRVOCJTUTPC\_JSBVX\KAOTBAJBVMZTYAKMNLDI_MFDSSOLXINH__FS^\WQGHGI^C@E[A_CF\AQLDQ\BTMPLDFNVUQ_VM Original-Xref: shelby.stanford.edu gnu.emacs.help:113553 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:10056 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10056 >>>>> "Henrik" == Henrik Jönsson writes: Henrik> Benjamin Rutt wrote in Henrik> 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) >> Henrik> Nice! Binding this to "ifx" works great. But I can't get Henrik> it to bind to "if(". Is it possible? I added the above code and typing ifx in a c++ file didn't do anything. Abbrev-mode was on... so I'm not sure. Any ideas ? I've never used skeletons in emacs before.