What is the best code template facility for Emacs? -


particularly, best snippets package out there?

features:

  • easy define new snippets (plain text, custom input defaults)
  • simple navigation between predefined positions in snippet
  • multiple insertion of same custom input
  • accepts selected text custom input
  • cross-platform (windows, linux)
  • dynamically evaluated expressions (embedded code) written in concise programming language (perl, python, ruby preferred)
  • nicely coexists others packages in emacs

example of code template, simple for loop in c:

for (int = 0; < %n%; ++i) {   _ } 

it lot of typing such common code. want invoke code template or snippet inserts boilerplate code me. additionally stops (on tab or other keystroke) @ %n% (my input replaces it) , final position of cursor _.

textmate's snippets closest match not cross-platform solution , not emacs.

the second closest thing yasnippet (screencast shows main capabilities). interferes hippie-expand package in setup , embedded language emacslisp i'm not comfortable outside .emacs.

edit: posted answer here allow voting on yasnippet.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -