[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 20:04:39 GMT |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (windows-nt) |
>>>>> "Mark" == Mark Mynsted <mmynsted_news@gbronline.com> writes:
>>>>> "Peter" == Peter Lee <pete_lee@swbell.net> writes:
Peter> I added the above code and typing ifx in a c++ file didn't
Peter> do anything. Abbrev-mode was on... so I'm not sure. Any
Peter> ideas ? I've never used skeletons in emacs before.
Mark> Two ideas:
Mark> 1. The abbrev code was (define-abbrev c-mode-abbrev-table
Mark> "ifx" "" 'my-skeleton-c-if)
Mark> That abbrev is specific for c-mode. Type M-h v mode-name If
Mark> the result is not "C" then I do not think you are in the
Mark> correct mode.
Thanks for the reply Mark. I changed the define to be:
(define-abbrev c++-mode-abbrev-table "ifx" "" 'my-skeleton-c-if)
It now works. Do you know of a way to map these to multiple modes? I
know there is a c-mode-common-hook that works for both c and c++, I
was wondering if there's something similar for c-mode-abbrev-table
(something like a c-mode-common-abbrev-table).
- 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, 2003/05/22
- 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 <=
- 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
Re: Slickedit features in Emacs?, Peter Lee, 2003/05/21
Re: Slickedit features in Emacs?, Burton Samograd, 2003/05/21
Re: Slickedit features in Emacs?, Phillip Lord, 2003/05/21
Re: Slickedit features in Emacs?, Ole Laursen, 2003/05/21
Re: Slickedit features in Emacs?, Stefan Monnier, 2003/05/21