help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slickedit features in Emacs?


From: Peter Lee
Subject: Re: Slickedit features in Emacs?
Date: Thu, 22 May 2003 17:12:23 GMT
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (windows-nt)

>>>>> "Henrik" == Henrik Jönsson <henrik.jonsson@se.transport.bombardier.com> 
>>>>> writes:

    Henrik> Benjamin Rutt <rutt+news@cis.ohio-state.edu> wrote in
    Henrik> message news:<wc3addgrtd8.fsf@gamma.cis.ohio-state.edu>...
    >> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]