Difference between revisions of "Yasnippet"
Jump to navigation
Jump to search
m (formatting) |
|||
Line 9: | Line 9: | ||
'''YASnippet''' is a template system for Emacs. It allows you to type an abbreviation and automatically expand it into function templates. Bundled language templates includes: C, C++, C#, Perl, Python, Ruby, SQL, LaTeX, HTML, CSS and more. | '''YASnippet''' is a template system for Emacs. It allows you to type an abbreviation and automatically expand it into function templates. Bundled language templates includes: C, C++, C#, Perl, Python, Ruby, SQL, LaTeX, HTML, CSS and more. | ||
− | = Basic setup = | + | == Basic setup == |
<source lang="lisp"> | <source lang="lisp"> | ||
Line 17: | Line 17: | ||
</source> | </source> | ||
− | = Helpful keybindings = | + | == Helpful keybindings == |
; {{Keys|Tab}} | ; {{Keys|Tab}} | ||
: Expand snippet. | : Expand snippet. | ||
− | = Common Customization = | + | == Common Customization == |
− | = See Also = | + | == See Also == |
− | = Project Pages = | + | == Project Pages == |
* [https://github.com/capitaomorte/yasnippet GitHub Repo] | * [https://github.com/capitaomorte/yasnippet GitHub Repo] | ||
− | = Tutorial Pages = | + | == Tutorial Pages == |
* [http://yasnippet.googlecode.com/files/yas_demo.avi Screencast] | * [http://yasnippet.googlecode.com/files/yas_demo.avi Screencast] | ||
[[Category:Convenience]][[Category:Third Party Package]] | [[Category:Convenience]][[Category:Third Party Package]] |
Revision as of 15:51, 2 April 2012
Description | template system for Emacs |
---|---|
Author | João Távora |
Maintainer | João Távora |
Source | https://github.com/capitaomorte/yasnippet |
YASnippet is a template system for Emacs. It allows you to type an abbreviation and automatically expand it into function templates. Bundled language templates includes: C, C++, C#, Perl, Python, Ruby, SQL, LaTeX, HTML, CSS and more.
Basic setup
(add-to-list 'load-path "~/.emacs.d/plugins/yasnippet")
(require 'yasnippet)
(yas/global-mode 1)
Helpful keybindings
- [Tab]
- Expand snippet.