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
