* How to support skeleton in emacs? @ 2006-09-14 1:03 jronald 2006-09-14 15:12 ` Kevin Rodgers ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: jronald @ 2006-09-14 1:03 UTC (permalink / raw) Take C++ for example: I typed "if", then it displays: if () { } with the cursor inside the parentheses. type: while result: while () { } I'm lazy to define them myself. Is there exist one? ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to support skeleton in emacs? 2006-09-14 1:03 How to support skeleton in emacs? jronald @ 2006-09-14 15:12 ` Kevin Rodgers 2006-09-14 18:18 ` robert.thorpe 2006-09-16 21:27 ` Benjamin Rutt 2 siblings, 0 replies; 4+ messages in thread From: Kevin Rodgers @ 2006-09-14 15:12 UTC (permalink / raw) jronald wrote: > Take C++ for example: > > I typed "if", then it displays: > > if () { > } > > with the cursor inside the parentheses. > > type: while > result: > > while () { > } > > I'm lazy to define them myself. Is there exist one? I don't know if any of these will meet your needs, but here are a couple things I found by searching the Emacs Wiki for "skeleton": http://www.emacswiki.org/cgi-bin/wiki/mcskels.el http://www.emacswiki.org/cgi-bin/wiki/ElseMode -- Kevin ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to support skeleton in emacs? 2006-09-14 1:03 How to support skeleton in emacs? jronald 2006-09-14 15:12 ` Kevin Rodgers @ 2006-09-14 18:18 ` robert.thorpe 2006-09-16 21:27 ` Benjamin Rutt 2 siblings, 0 replies; 4+ messages in thread From: robert.thorpe @ 2006-09-14 18:18 UTC (permalink / raw) jronald wrote: > Take C++ for example: > > I typed "if", then it displays: > > if () { > } > > with the cursor inside the parentheses. > > type: while > result: > > while () { > } > > I'm lazy to define them myself. Is there exist one? You can use the skeleton modes mentioned. Also, M-S-( produces "()" and put the cursor in the middle of the two, which may be useful. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to support skeleton in emacs? 2006-09-14 1:03 How to support skeleton in emacs? jronald 2006-09-14 15:12 ` Kevin Rodgers 2006-09-14 18:18 ` robert.thorpe @ 2006-09-16 21:27 ` Benjamin Rutt 2 siblings, 0 replies; 4+ messages in thread From: Benjamin Rutt @ 2006-09-16 21:27 UTC (permalink / raw) "jronald" <followait@163.com> writes: > Take C++ for example: > > I typed "if", then it displays: > > if () { > } > > with the cursor inside the parentheses. > > type: while > result: > > while () { > } > > I'm lazy to define them myself. Is there exist one? msf-abbrev can do this: http://www.bloomington.in.us/~brutt/msf-abbrev.html requires unreleased emacs though -- Benjamin Rutt ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-09-16 21:27 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-09-14 1:03 How to support skeleton in emacs? jronald 2006-09-14 15:12 ` Kevin Rodgers 2006-09-14 18:18 ` robert.thorpe 2006-09-16 21:27 ` Benjamin Rutt
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).