[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Slickedit features in Emacs?
From: |
Henrik Jönsson |
Subject: |
Re: Slickedit features in Emacs? |
Date: |
22 May 2003 00:07:47 -0700 |
Benjamin Rutt <rutt+news@cis.ohio-state.edu> wrote in 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)
>
Nice! Binding this to "ifx" works great. But I can't get it to bind to
"if(". Is it possible?
/henrik
- Slickedit features in Emacs?, Henrik Jönsson, 2003/05/21
- Re: Slickedit features in Emacs?, Benjamin Rutt, 2003/05/21
- Re: Slickedit features in Emacs?,
Henrik Jönsson <=
- Re: Slickedit features in Emacs?, Bruce Ashfield, 2003/05/22
- Re: Slickedit features in Emacs?, Stefan Monnier, 2003/05/22
- Re: Slickedit features in Emacs?, Peter Lee, 2003/05/22
- Re: Slickedit features in Emacs?, Mark Mynsted, 2003/05/22
- Re: Slickedit features in Emacs?, Peter Lee, 2003/05/22
- Re: Slickedit features in Emacs?, Kai Großjohann, 2003/05/22
- Re: Slickedit features in Emacs?, Mark Mynsted, 2003/05/22
- Re: Slickedit features in Emacs?, Stefan Monnier, 2003/05/22
- Re: Slickedit features in Emacs?, Mark Mynsted, 2003/05/23
- Re: Slickedit features in Emacs?, Peter Lee, 2003/05/23