* less key hits @ 2006-12-05 21:40 Gary Wessle 2006-12-05 21:56 ` Tassilo Horn ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: Gary Wessle @ 2006-12-05 21:40 UTC (permalink / raw) Hi ofter I find that I have to write the same string over many times while programming in c++ mode. is it common practice to hot key the text so that by hitting the hot key it enters the text in the buffer? or how most of you do it? example: often I write #include <string> using std::string; which takes few key strokes even with Alt-/ completion helping. instead I want to just hit say "Alt-s" s for string and the pointer moves to the top of the buffer, enters the 2 lines for me. any idea how this is done? thanks ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: less key hits 2006-12-05 21:40 less key hits Gary Wessle @ 2006-12-05 21:56 ` Tassilo Horn 2006-12-16 0:06 ` Kai Großjohann [not found] ` <mailman.1948.1166228107.2155.info-gnus-english@gnu.org> 2 siblings, 0 replies; 4+ messages in thread From: Tassilo Horn @ 2006-12-05 21:56 UTC (permalink / raw) Gary Wessle <phddas@yahoo.com> writes: Hi Gary, > ofter I find that I have to write the same string over many times > while programming in c++ mode. > is it common practice to hot key the text so that by hitting the hot > key it enters the text in the buffer? or how most of you do it? I would define a keyboard macro. See ,----[ (info "(emacs)Keyboard Macros") ] | A "keyboard macro" is a command defined by an Emacs user to stand | for another sequence of keys. For example, if you discover that you | are about to type `C-n M-d C-d' forty times, you can speed your work | by defining a keyboard macro to do `C-n M-d C-d', and then executing | it 39 more times. `---- If you need this macro over and over you can even save it. Bye, Tassilo -- A child of five could understand this! Fetch me a child of five! ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: less key hits 2006-12-05 21:40 less key hits Gary Wessle 2006-12-05 21:56 ` Tassilo Horn @ 2006-12-16 0:06 ` Kai Großjohann [not found] ` <mailman.1948.1166228107.2155.info-gnus-english@gnu.org> 2 siblings, 0 replies; 4+ messages in thread From: Kai Großjohann @ 2006-12-16 0:06 UTC (permalink / raw) Gary Wessle <phddas@yahoo.com> writes: > ofter I find that I have to write the same string over many times > while programming in c++ mode. I think that abbrevs are an underused feature of Emacs. Try it, maybe you will like it. Kai ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.1948.1166228107.2155.info-gnus-english@gnu.org>]
* Kai is back [Was: less key hits] [not found] ` <mailman.1948.1166228107.2155.info-gnus-english@gnu.org> @ 2006-12-16 17:22 ` martin 0 siblings, 0 replies; 4+ messages in thread From: martin @ 2006-12-16 17:22 UTC (permalink / raw) >>>>> Kai Großjohann <kai@emptydomain.de> writes: > Date: Sat, 16 Dec 2006 01:06:31 +0100 > > Gary Wessle <phddas@yahoo.com> writes: > >> ofter I find that I have to write the same string over many times >> while programming in c++ mode. > > I think that abbrevs are an underused feature of Emacs. Try it, maybe > you will like it. > > Kai Hi, welcome back. Nice to read you again Kai. Cheers Martin -- parozusa at web dot de ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-12-16 17:22 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-12-05 21:40 less key hits Gary Wessle 2006-12-05 21:56 ` Tassilo Horn 2006-12-16 0:06 ` Kai Großjohann [not found] ` <mailman.1948.1166228107.2155.info-gnus-english@gnu.org> 2006-12-16 17:22 ` Kai is back [Was: less key hits] martin
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 NNTP newsgroup(s).