Don't you find it ironic that : (shift ;) is a pain to type, but all the finger twisting, goofy double and triple key sequences in emacs don't seem to bother anyone? ;-)
On Thu, Jan 29, 2009 at 10:51 AM, Eduardo Cavazos <[email protected]> wrote: > Jose A. Ortega Ruiz wrote: > >> An easy way to accomplish what you want is using snippet.el >> (http://www.kazmier.com/computer/snippet.el). You just need to put it >> in your load path, and then: >> >> (defun factor-semicolon-command () >> (interactive) >> (if (bolp) >> (snippet-insert ": $${word} ( $${in} -- $${out} ) $. ;") >> (insert ";\n\n"))) >> >> IIRC, this already implements your proposal, and there's many variations >> you can play with that. For instance, snippets can work with >> abbrev-mode, and you can trigger them automatically---i would, for >> instance, link the word snippet to ";;", instead of modifiying the >> binding for `;' in the mode keymap; but that's just me. >> >> Would that work for you? > > Wow... I just installed snippet and tried the above and it works great! > Thanks for the suggestion Jose! > > Ed > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
