├── .gitignore ├── CONTRIBUTORS ├── COPYING ├── ChangeLog ├── README.org ├── doc ├── Usage.rst └── highlight_line_ind.png ├── epy-bindings.el ├── epy-completion.el ├── epy-editing.el ├── epy-init.el ├── epy-nose.el ├── epy-python.el ├── epy-setup.el ├── extensions ├── auto-complete │ ├── COPYING.FDL.txt │ ├── COPYING.GPLv3.txt │ ├── auto-complete-config.el │ ├── auto-complete.el │ ├── dict │ │ ├── ada-mode │ │ ├── c++-mode │ │ ├── c-mode │ │ ├── clojure-mode │ │ ├── css-mode │ │ ├── erlang-mode │ │ ├── java-mode │ │ ├── javascript-mode │ │ ├── php-mode │ │ ├── python-mode │ │ ├── ruby-mode │ │ ├── scheme-mode │ │ └── tcl-mode │ ├── fuzzy.el │ └── popup.el ├── autopair.el ├── cython-mode.el ├── eproject │ ├── eproject-config.el │ ├── eproject.cfg │ ├── eproject.el │ └── eproject.txt ├── epy-project.el ├── flymake-cursor.el ├── flymake-patch.el ├── highlight-indentation.el ├── nose.el ├── open-next-line.el ├── pymacs.el ├── python.el ├── smart-operator.el ├── snippet-helpers.el ├── virtualenv.el └── yasnippet │ ├── README │ ├── Rakefile │ ├── doc │ ├── changelog.html │ ├── changelog.rst │ ├── compile-doc.py │ ├── define_snippet.html │ ├── define_snippet.rst │ ├── faq.html │ ├── faq.rst │ ├── html4css1.css │ ├── images │ │ ├── bg-content-left.png │ │ ├── bg-content-right.png │ │ ├── bg-content.png │ │ ├── bg-navigation-item-hover.png │ │ ├── bg-navigation-item.png │ │ ├── bg-navigation.png │ │ ├── body.png │ │ ├── customization-group.png │ │ ├── dropdown-menu.png │ │ ├── external.png │ │ ├── ido-menu.png │ │ ├── menu-1.png │ │ ├── menu-2.png │ │ ├── menu-groups.png │ │ ├── menu-parent.png │ │ ├── minor-mode-indicator.png │ │ └── x-menu.png │ ├── index.html │ ├── index.rst │ ├── snippet-development.html │ ├── snippet-development.rst │ ├── snippet-expansion.html │ ├── snippet-expansion.rst │ ├── snippet-menu.html │ ├── snippet-menu.rst │ ├── snippet-organization.html │ ├── snippet-organization.rst │ ├── styles.css │ └── template.txt │ ├── dropdown-list.el │ ├── extras │ ├── imported │ │ ├── html-mode │ │ │ └── .yas-setup.el │ │ ├── rails-mode │ │ │ └── .yas-setup.el │ │ └── ruby-mode │ │ │ └── .yas-setup.el │ └── textmate_import.rb │ ├── snippets │ ├── c++-mode │ │ ├── .yas-parents │ │ ├── beginend │ │ ├── class │ │ ├── ns │ │ ├── template │ │ └── using │ ├── c-mode │ │ ├── .yas-parents │ │ ├── fopen │ │ └── printf │ ├── cc-mode │ │ ├── .yas-parents │ │ ├── do │ │ ├── for │ │ ├── if │ │ ├── inc │ │ ├── inc.1 │ │ ├── main │ │ ├── once │ │ └── struct │ ├── cperl-mode │ │ └── .yas-parents │ ├── csharp-mode │ │ ├── .yas-parents │ │ ├── attrib │ │ ├── attrib.1 │ │ ├── attrib.2 │ │ ├── class │ │ ├── comment │ │ ├── comment.1 │ │ ├── comment.2 │ │ ├── comment.3 │ │ ├── method │ │ ├── namespace │ │ ├── prop │ │ ├── region │ │ ├── using │ │ ├── using.1 │ │ └── using.2 │ ├── css-mode │ │ ├── .yas-parents │ │ ├── bg │ │ ├── bg.1 │ │ ├── bor │ │ ├── cl │ │ ├── disp.block │ │ ├── disp.inline │ │ ├── disp.none │ │ ├── ff │ │ ├── fs │ │ ├── mar.bottom │ │ ├── mar.left │ │ ├── mar.mar │ │ ├── mar.margin │ │ ├── mar.right │ │ ├── mar.top │ │ ├── pad.bottom │ │ ├── pad.left │ │ ├── pad.pad │ │ ├── pad.padding │ │ ├── pad.right │ │ └── pad.top │ ├── emacs-lisp-mode │ │ ├── .read_me │ │ ├── .yas-parents │ │ ├── add-hook.yasnippet │ │ ├── and.yasnippet │ │ ├── append.yasnippet │ │ ├── apply.yasnippet │ │ ├── aref.yasnippet │ │ ├── aset.yasnippet │ │ ├── assq.yasnippet │ │ ├── autoload.yasnippet │ │ ├── backward-char.yasnippet │ │ ├── beginning-of-line.yasnippet │ │ ├── bounds-of-thing-at-point.yasnippet │ │ ├── buffer-file-name.yasnippet │ │ ├── buffer-modified-p.yasnippet │ │ ├── buffer-substring-no-properties.yasnippet │ │ ├── buffer-substring.yasnippet │ │ ├── car.yasnippet │ │ ├── cdr.yasnippet │ │ ├── concat.yasnippet │ │ ├── cond.yasnippet │ │ ├── condition-case.yasnippet │ │ ├── cons.yasnippet │ │ ├── consp.yasnippet │ │ ├── copy-directory.yasnippet │ │ ├── copy-file.yasnippet │ │ ├── current-buffer.yasnippet │ │ ├── custom-autoload.yasnippet │ │ ├── defalias.yasnippet │ │ ├── defcustom.yasnippet │ │ ├── define-key.yasnippet │ │ ├── defsubst.yasnippet │ │ ├── defun │ │ ├── defun.yasnippet │ │ ├── defvar.yasnippet │ │ ├── delete-char.yasnippet │ │ ├── delete-directory.yasnippet │ │ ├── delete-file.yasnippet │ │ ├── delete-region.yasnippet │ │ ├── directory-files.yasnippet │ │ ├── dired.process_marked │ │ ├── dolist.yasnippet │ │ ├── end-of-line.yasnippet │ │ ├── eq.yasnippet │ │ ├── equal.yasnippet │ │ ├── error.yasnippet │ │ ├── expand-file-name.yasnippet │ │ ├── f.yasnippet │ │ ├── fboundp.yasnippet │ │ ├── file-name-directory.yasnippet │ │ ├── file-name-extension.yasnippet │ │ ├── file-name-nondirectory.yasnippet │ │ ├── file-name-sans-extension.yasnippet │ │ ├── file-relative-name.yasnippet │ │ ├── file.process │ │ ├── file.read-lines │ │ ├── find-file.yasnippet │ │ ├── find-replace │ │ ├── format.yasnippet │ │ ├── forward-char.yasnippet │ │ ├── forward-line.yasnippet │ │ ├── funcall.yasnippet │ │ ├── function.yasnippet │ │ ├── get.yasnippet │ │ ├── global-set-key.yasnippet │ │ ├── goto-char.yasnippet │ │ ├── grabstring │ │ ├── grabthing │ │ ├── if.yasnippet │ │ ├── insert-file-contents.yasnippet │ │ ├── insert.yasnippet │ │ ├── interactive.yasnippet │ │ ├── kbd.yasnippet │ │ ├── kill-buffer.yasnippet │ │ ├── lambda.yasnippet │ │ ├── length.yasnippet │ │ ├── let.yasnippet │ │ ├── line-beginning-position.yasnippet │ │ ├── line-end-position.yasnippet │ │ ├── list.yasnippet │ │ ├── looking-at.yasnippet │ │ ├── make-directory.yasnippet │ │ ├── make-local-variable.yasnippet │ │ ├── mapc.yasnippet │ │ ├── mapcar.yasnippet │ │ ├── match-beginning.yasnippet │ │ ├── match-end.yasnippet │ │ ├── match-string.yasnippet │ │ ├── memq.yasnippet │ │ ├── message.yasnippet │ │ ├── not.yasnippet │ │ ├── nth.yasnippet │ │ ├── null.yasnippet │ │ ├── number-to-string.yasnippet │ │ ├── or.yasnippet │ │ ├── point-max.yasnippet │ │ ├── point-min.yasnippet │ │ ├── point.yasnippet │ │ ├── princ.yasnippet │ │ ├── print.yasnippet │ │ ├── progn.yasnippet │ │ ├── push.yasnippet │ │ ├── put.yasnippet │ │ ├── re-search-backward.yasnippet │ │ ├── re-search-forward.yasnippet │ │ ├── region-active-p.yasnippet │ │ ├── region-beginning.yasnippet │ │ ├── region-end.yasnippet │ │ ├── rename-file.yasnippet │ │ ├── repeat.yasnippet │ │ ├── replace-regexp-in-string.yasnippet │ │ ├── replace-regexp.yasnippet │ │ ├── require.yasnippet │ │ ├── save-buffer.yasnippet │ │ ├── save-excursion.yasnippet │ │ ├── search-backward-regexp.yasnippet │ │ ├── search-backward.yasnippet │ │ ├── search-forward-regexp.yasnippet │ │ ├── search-forward.yasnippet │ │ ├── set-buffer.yasnippet │ │ ├── set-file-modes.yasnippet │ │ ├── set-mark.yasnippet │ │ ├── set.yasnippet │ │ ├── setq.yasnippet │ │ ├── skip-chars-backward.yasnippet │ │ ├── skip-chars-forward.yasnippet │ │ ├── split-string.yasnippet │ │ ├── string-match.yasnippet │ │ ├── string-to-number.yasnippet │ │ ├── string.yasnippet │ │ ├── string=.yasnippet │ │ ├── stringp.yasnippet │ │ ├── substring.yasnippet │ │ ├── thing-at-point.yasnippet │ │ ├── traverse_dir │ │ ├── unless.yasnippet │ │ ├── vector.yasnippet │ │ ├── when.yasnippet │ │ ├── while.yasnippet │ │ ├── widget-get.yasnippet │ │ ├── with-current-buffer.yasnippet │ │ ├── word-or-region │ │ ├── x-dired.process_marked.yasnippet │ │ ├── x-file.process.yasnippet │ │ ├── x-file.read-lines.yasnippet │ │ ├── x-find-replace.yasnippet │ │ ├── x-grabstring.yasnippet │ │ ├── x-grabthing.yasnippet │ │ ├── x-traverse_dir.yasnippet │ │ ├── x-word-or-region.yasnippet │ │ ├── y-or-n-p.yasnippet │ │ └── yes-or-no-p.yasnippet │ ├── erlang-mode │ │ ├── .yas-parents │ │ ├── after │ │ ├── begin │ │ ├── beh │ │ ├── case │ │ ├── compile │ │ ├── def │ │ ├── exp │ │ ├── fun │ │ ├── if │ │ ├── ifdef │ │ ├── ifndef │ │ ├── imp │ │ ├── inc │ │ ├── inc.lib │ │ ├── loop │ │ ├── mod │ │ ├── rcv │ │ ├── rcv.after │ │ ├── rec │ │ ├── try │ │ └── undef │ ├── f90-mode │ │ ├── .yas-parents │ │ ├── au │ │ ├── bd │ │ ├── c │ │ ├── ch │ │ ├── cx │ │ ├── dc │ │ ├── do │ │ ├── dp │ │ ├── eq │ │ ├── ib │ │ ├── ic │ │ ├── ich │ │ ├── if │ │ ├── ii │ │ ├── il │ │ ├── in │ │ ├── inc │ │ ├── intr │ │ ├── ir │ │ ├── l │ │ ├── pa │ │ ├── pr │ │ ├── re │ │ ├── st │ │ ├── su │ │ └── wr │ ├── html-mode │ │ ├── .yas-make-groups │ │ ├── .yas-parents │ │ ├── b.yasnippet │ │ ├── body │ │ ├── br │ │ ├── code │ │ ├── code.class │ │ ├── div │ │ ├── div.class │ │ ├── div.id │ │ ├── div.id-class │ │ ├── dov │ │ ├── form │ │ ├── head │ │ ├── header │ │ │ ├── h1 │ │ │ ├── h2 │ │ │ ├── h3 │ │ │ ├── h4 │ │ │ ├── h5 │ │ │ └── h6 │ │ ├── hr │ │ ├── href │ │ ├── html │ │ ├── html.xmlns │ │ ├── i.yasnippet │ │ ├── img │ │ ├── input │ │ ├── link.stylesheet │ │ ├── link.stylesheet-ie │ │ ├── list │ │ │ ├── dd │ │ │ ├── dl │ │ │ ├── dl.id │ │ │ ├── dt │ │ │ ├── li │ │ │ ├── li.class │ │ │ ├── ol │ │ │ ├── ol.class │ │ │ ├── ol.id │ │ │ ├── ul │ │ │ ├── ul.class │ │ │ └── ul.id │ │ ├── mailto │ │ ├── meta │ │ │ ├── doctype │ │ │ ├── doctype.xhml1 │ │ │ ├── doctype.xhtml1_1 │ │ │ ├── doctype.xhtml1_strict │ │ │ ├── doctype.xhtml1_transitional │ │ │ ├── meta │ │ │ └── meta.http-equiv │ │ ├── p │ │ ├── pre │ │ ├── q.yasnippet │ │ ├── quote │ │ ├── script.javascript │ │ ├── script.javascript-src │ │ ├── span │ │ ├── span.class │ │ ├── span.id │ │ ├── style │ │ ├── table │ │ │ ├── table │ │ │ ├── td │ │ │ ├── th │ │ │ └── tr │ │ ├── textarea │ │ └── title │ ├── latex-mode │ │ ├── .yas-parents │ │ └── begin │ ├── markdown-mode │ │ ├── + │ │ ├── - │ │ ├── .yas-parents │ │ ├── _ │ │ ├── __ │ │ ├── ` │ │ ├── h1.1 │ │ ├── h1.2 │ │ ├── h2.1 │ │ ├── h2.2 │ │ ├── h3 │ │ ├── h4 │ │ ├── h5 │ │ ├── h6 │ │ ├── hr.1 │ │ ├── hr.2 │ │ ├── img │ │ ├── link │ │ ├── ol │ │ ├── rimg │ │ ├── rlb │ │ └── rlink │ ├── nxml-mode │ │ ├── .yas-make-groups │ │ ├── .yas-parents │ │ ├── body │ │ ├── br │ │ ├── code │ │ ├── div │ │ ├── form │ │ ├── head │ │ ├── header │ │ │ ├── h1 │ │ │ ├── h2 │ │ │ ├── h3 │ │ │ ├── h4 │ │ │ ├── h5 │ │ │ └── h6 │ │ ├── hr │ │ ├── href │ │ ├── html │ │ ├── img │ │ ├── input │ │ ├── li │ │ ├── link │ │ ├── meta │ │ │ ├── doctype │ │ │ ├── doctype.xhtml1_strict │ │ │ ├── doctype.xhtml1_transitional │ │ │ └── meta │ │ ├── name │ │ ├── ol │ │ ├── p │ │ ├── pre │ │ ├── quote │ │ ├── span │ │ ├── style │ │ ├── table │ │ ├── tag.1l │ │ ├── tag.2l │ │ ├── td │ │ ├── th │ │ ├── title │ │ ├── tr │ │ └── ul │ ├── objc-mode │ │ ├── .yas-parents │ │ └── prop │ ├── perl-mode │ │ ├── .yas-parents │ │ ├── eval │ │ ├── for │ │ ├── fore │ │ ├── if │ │ ├── ife │ │ ├── ifee │ │ ├── sub │ │ ├── unless │ │ ├── while │ │ ├── xfore │ │ ├── xif │ │ ├── xunless │ │ └── xwhile │ ├── python-mode │ │ ├── .yas-parents │ │ ├── __ │ │ ├── class │ │ ├── def │ │ ├── defm │ │ ├── doc │ │ ├── for │ │ ├── from │ │ ├── ifmain │ │ ├── init │ │ ├── ipdb │ │ ├── param │ │ ├── pdb │ │ ├── prop │ │ ├── prop.fun │ │ ├── propg │ │ ├── propsg │ │ ├── super │ │ ├── testcase │ │ ├── try.except │ │ ├── try.exceptelse │ │ ├── try.exceptelsefinally │ │ ├── try.exceptfinally │ │ ├── utf8 │ │ └── while │ ├── rst-mode │ │ ├── .yas-parents │ │ ├── chap │ │ ├── sec │ │ └── tit │ ├── ruby-mode │ │ ├── .yas-make-groups │ │ ├── .yas-parents │ │ ├── collections │ │ │ ├── all │ │ │ ├── any │ │ │ ├── classify │ │ │ ├── collect │ │ │ ├── deli │ │ │ ├── det │ │ │ ├── ea │ │ │ ├── eac │ │ │ ├── eai │ │ │ ├── eav │ │ │ ├── eawi │ │ │ ├── inject │ │ │ ├── reject │ │ │ ├── select │ │ │ └── zip │ │ ├── control structure │ │ │ ├── forin │ │ │ ├── if │ │ │ ├── ife │ │ │ ├── tim │ │ │ ├── until │ │ │ ├── upt │ │ │ ├── when │ │ │ └── while │ │ ├── definitions │ │ │ ├── Comp │ │ │ ├── am │ │ │ ├── cla │ │ │ ├── cls │ │ │ ├── mm │ │ │ ├── r │ │ │ ├── rw │ │ │ └── w │ │ └── general │ │ │ ├── # │ │ │ ├── =b │ │ │ ├── app │ │ │ ├── bm │ │ │ ├── case │ │ │ ├── dee │ │ │ ├── rb │ │ │ ├── req │ │ │ ├── rreq │ │ │ └── y │ ├── scala-mode │ │ ├── .yas-parents │ │ ├── act │ │ ├── act.arg │ │ ├── actor │ │ ├── ano │ │ ├── app │ │ ├── arr.new │ │ ├── arr.val-new │ │ ├── asof │ │ ├── ass │ │ ├── ass.true │ │ ├── at.author │ │ ├── at.param │ │ ├── at.return │ │ ├── at.version │ │ ├── bang │ │ ├── case │ │ ├── case.match-all │ │ ├── cast │ │ ├── cc │ │ ├── cl │ │ ├── cl.abs │ │ ├── cl.abs-arg │ │ ├── cl.arg │ │ ├── clof │ │ ├── co │ │ ├── cons │ │ ├── cons.nil │ │ ├── def.arg │ │ ├── def.arg-body │ │ ├── def.arg-ret │ │ ├── def.arg-ret-body │ │ ├── def.body │ │ ├── def.ret │ │ ├── def.ret-body │ │ ├── def.simple │ │ ├── doc.class │ │ ├── doc.def │ │ ├── doc.file │ │ ├── doc.file-scala │ │ ├── doc.file-scala-api │ │ ├── doc.scaladoc │ │ ├── expect │ │ ├── ext │ │ ├── for.extract │ │ ├── for.if │ │ ├── for.loop │ │ ├── for.multi │ │ ├── foreach │ │ ├── hmap.new │ │ ├── hmap.val-new │ │ ├── hset.new │ │ ├── hset.val-new │ │ ├── if │ │ ├── if.else │ │ ├── imp │ │ ├── intercept │ │ ├── isof │ │ ├── ls.new │ │ ├── ls.val-new │ │ ├── main │ │ ├── map │ │ ├── map.new │ │ ├── match │ │ ├── match.can │ │ ├── match.option │ │ ├── mix │ │ ├── ob │ │ ├── pac │ │ ├── pr.newline │ │ ├── pr.simple │ │ ├── pr.string │ │ ├── pr.trace │ │ ├── pri │ │ ├── pri.param │ │ ├── pro │ │ ├── pro.param │ │ ├── suite │ │ ├── test │ │ ├── throw │ │ ├── tr │ │ ├── tr.ext │ │ ├── tr.ext-with │ │ ├── tr.with │ │ ├── try │ │ ├── try.catch-finally │ │ ├── try.finally │ │ ├── tup.arrow │ │ ├── tup.paren │ │ ├── val │ │ ├── val.new │ │ ├── val.ret │ │ ├── var │ │ ├── var.new │ │ ├── var.ret │ │ ├── whi │ │ └── with │ ├── snippet-mode │ │ ├── .yas-parents │ │ ├── field │ │ ├── mirror │ │ └── vars │ ├── sql-mode │ │ ├── .yas-parents │ │ ├── column │ │ ├── constraint │ │ ├── constraint.1 │ │ ├── create │ │ ├── create.1 │ │ └── references │ └── text-mode │ │ ├── email │ │ └── time │ ├── yasnippet-debug.el │ └── yasnippet.el ├── python-libs ├── COPYING ├── Pymacs.py ├── epy-unittest.py ├── rope │ ├── __init__.py │ ├── base │ │ ├── __init__.py │ │ ├── arguments.py │ │ ├── ast.py │ │ ├── astutils.py │ │ ├── builtins.py │ │ ├── change.py │ │ ├── codeanalyze.py │ │ ├── default_config.py │ │ ├── evaluate.py │ │ ├── exceptions.py │ │ ├── fscommands.py │ │ ├── history.py │ │ ├── libutils.py │ │ ├── oi │ │ │ ├── __init__.py │ │ │ ├── doa.py │ │ │ ├── memorydb.py │ │ │ ├── objectdb.py │ │ │ ├── objectinfo.py │ │ │ ├── runmod.py │ │ │ ├── soa.py │ │ │ ├── soi.py │ │ │ └── transform.py │ │ ├── prefs.py │ │ ├── project.py │ │ ├── pycore.py │ │ ├── pynames.py │ │ ├── pynamesdef.py │ │ ├── pyobjects.py │ │ ├── pyobjectsdef.py │ │ ├── pyscopes.py │ │ ├── resourceobserver.py │ │ ├── resources.py │ │ ├── simplify.py │ │ ├── stdmods.py │ │ ├── taskhandle.py │ │ ├── utils.py │ │ └── worder.py │ ├── contrib │ │ ├── __init__.py │ │ ├── autoimport.py │ │ ├── changestack.py │ │ ├── codeassist.py │ │ ├── finderrors.py │ │ ├── findit.py │ │ ├── fixmodnames.py │ │ ├── fixsyntax.py │ │ └── generate.py │ └── refactor │ │ ├── __init__.py │ │ ├── change_signature.py │ │ ├── encapsulate_field.py │ │ ├── extract.py │ │ ├── functionutils.py │ │ ├── importutils │ │ ├── __init__.py │ │ ├── actions.py │ │ ├── importinfo.py │ │ └── module_imports.py │ │ ├── inline.py │ │ ├── introduce_factory.py │ │ ├── introduce_parameter.py │ │ ├── localtofield.py │ │ ├── method_object.py │ │ ├── move.py │ │ ├── multiproject.py │ │ ├── occurrences.py │ │ ├── patchedast.py │ │ ├── rename.py │ │ ├── restructure.py │ │ ├── similarfinder.py │ │ ├── sourceutils.py │ │ ├── suites.py │ │ ├── topackage.py │ │ ├── usefunction.py │ │ └── wildcards.py ├── ropemacs │ └── __init__.py └── ropemode │ ├── __init__.py │ ├── decorators.py │ ├── dialog.py │ ├── environment.py │ ├── filter.py │ ├── interface.py │ └── refactor.py ├── scripts ├── mypylint.sh ├── package.py ├── pylint-mod.py └── tostarterkit.py └── snippets └── django ├── html-mode ├── block ├── blocktrans ├── blocktrans.with ├── ifelse └── trans └── python-mode ├── auto ├── boolean ├── char ├── commaseparatedinteger ├── date ├── decimal ├── dtime ├── email ├── file ├── filepath ├── fk ├── float ├── image ├── integer ├── ipaddress ├── manytomany ├── model ├── nullboolean ├── phonenumber ├── positiveinteger ├── positivesmallinteger ├── sendmail ├── slug ├── smallinteger ├── text ├── time ├── url └── xml /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | *.elc 3 | *.pyc 4 | *#*# 5 | commit.txt -------------------------------------------------------------------------------- /CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Bastian Ballmann https://github.com/balle 2 | Peter Norton https://github.com/nortonp 3 | Matt Harrison https://github.com/mattharrison 4 | Mike Hostetler http://mike.hostetlerhome.com 5 | -------------------------------------------------------------------------------- /ChangeLog: -------------------------------------------------------------------------------- 1 | 0.4 - 2 | updated fgallina's python.el 3 | 4 | 0.3 - 5 | added fgallina's python.el 6 | added mark-line command 7 | added highlight-indentation 8 | removed autopair, welcome skeleton-pair 9 | C-c y duplicate line C-c c duplicate and comment line 10 | block-shifting functions 11 | new flymake configuration with epy-setup-checker 12 | datetime django snippet renamed to dtime 13 | 14 | 0.2 - not tracked 15 | -------------------------------------------------------------------------------- /doc/highlight_line_ind.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/doc/highlight_line_ind.png -------------------------------------------------------------------------------- /epy-bindings.el: -------------------------------------------------------------------------------- 1 | ;; Copy-Cut-Paste from clipboard with Super-C Super-X Super-V 2 | (global-set-key (kbd "s-x") 'clipboard-kill-region) ;;cut 3 | (global-set-key (kbd "s-c") 'clipboard-kill-ring-save) ;;copy 4 | (global-set-key (kbd "s-v") 'clipboard-yank) ;;paste 5 | 6 | ;; calc-mode more comfortable 7 | (global-set-key (kbd "M-c") 'calc-dispatch) 8 | 9 | ; Ctrl+tab mapped to Alt+tab 10 | (define-key function-key-map [(control tab)] [?\M-\t]) 11 | 12 | (global-set-key [f10] 'flymake-goto-prev-error) 13 | (global-set-key [f11] 'flymake-goto-next-error) 14 | 15 | ;; Rope bindings 16 | (add-hook 'python-mode-hook 17 | (lambda () 18 | (define-key python-mode-map "\C-ci" 'rope-auto-import) 19 | (define-key python-mode-map "\C-c\C-d" 'rope-show-calltip) 20 | ) 21 | ) 22 | 23 | 24 | (provide 'epy-bindings) 25 | -------------------------------------------------------------------------------- /epy-init.el: -------------------------------------------------------------------------------- 1 | ;; This file is a great big shortcut for all the features contained in emacs-for-python 2 | 3 | ;; Trick to get the filename of the installation directory 4 | (defconst epy-install-dir 5 | (file-name-directory (or load-file-name 6 | (when (boundp 'bytecomp-filename) bytecomp-filename) 7 | buffer-file-name)) 8 | "Installation directory of emacs-for-python" 9 | ) 10 | 11 | (add-to-list 'load-path epy-install-dir) 12 | (require 'epy-setup) 13 | (require 'epy-python) 14 | (require 'epy-completion) 15 | (require 'epy-editing) 16 | (require 'epy-nose) 17 | (require 'epy-bindings) 18 | 19 | 20 | 21 | (provide 'epy-init) 22 | -------------------------------------------------------------------------------- /epy-nose.el: -------------------------------------------------------------------------------- 1 | (require 'nose) 2 | 3 | ;; Nose bindings 4 | (add-hook 'python-mode-hook 5 | (lambda () 6 | (local-set-key "\C-ca" 'nosetests-all) 7 | (local-set-key "\C-cF" 'nosetests-failed) 8 | (local-set-key "\C-cM" 'nosetests-module) ;; C-c m conflicts w/ pylint 9 | (local-set-key "\C-c." 'nosetests-one) 10 | (local-set-key "\C-cx" 'nosetests-stop) 11 | (local-set-key "\C-cpa" 'nosetests-pdb-all) 12 | (local-set-key "\C-cpm" 'nosetests-pdb-module) 13 | (local-set-key "\C-cp." 'nosetests-pdb-one)) 14 | ) 15 | 16 | 17 | (provide 'epy-nose) 18 | -------------------------------------------------------------------------------- /extensions/auto-complete/dict/ada-mode: -------------------------------------------------------------------------------- 1 | abort 2 | abs 3 | abstract 4 | accept 5 | access 6 | aliased 7 | all 8 | and 9 | array 10 | at 11 | begin 12 | body 13 | case 14 | constant 15 | declare 16 | delay 17 | delta 18 | digits 19 | do 20 | else 21 | elsif 22 | end 23 | entry 24 | exception 25 | exit 26 | for 27 | function 28 | generic 29 | goto 30 | if 31 | in 32 | interface 33 | is 34 | limited 35 | loop 36 | mod 37 | new 38 | not 39 | null 40 | of 41 | or 42 | others 43 | out 44 | overriding 45 | package 46 | pragma 47 | private 48 | procedure 49 | protected 50 | raise 51 | range 52 | record 53 | rem 54 | renames 55 | requeue 56 | return 57 | reverse 58 | select 59 | separate 60 | subtype 61 | synchronized 62 | tagged 63 | task 64 | terminate 65 | then 66 | type 67 | until 68 | use 69 | when 70 | while 71 | with 72 | xor 73 | -------------------------------------------------------------------------------- /extensions/auto-complete/dict/c++-mode: -------------------------------------------------------------------------------- 1 | and 2 | and_eq 3 | asm 4 | auto 5 | bitand 6 | bitor 7 | bool 8 | break 9 | case 10 | catch 11 | char 12 | class 13 | compl 14 | const 15 | const_cast 16 | continue 17 | default 18 | delete 19 | do 20 | double 21 | dynamic_cast 22 | else 23 | enum 24 | explicit 25 | export 26 | extern 27 | false 28 | float 29 | for 30 | friend 31 | goto 32 | if 33 | inline 34 | int 35 | long 36 | mutable 37 | namespace 38 | new 39 | not 40 | not_eq 41 | operator 42 | or 43 | or_eq 44 | private 45 | protected 46 | public 47 | register 48 | reinterpret_cast 49 | return 50 | short 51 | signed 52 | sizeof 53 | static 54 | static_cast 55 | struct 56 | switch 57 | template 58 | this 59 | throw 60 | true 61 | try 62 | typedef 63 | typeid 64 | typename 65 | union 66 | unsigned 67 | using 68 | virtual 69 | void 70 | volatile 71 | wchar_t 72 | while 73 | xor 74 | xor_eq 75 | -------------------------------------------------------------------------------- /extensions/auto-complete/dict/c-mode: -------------------------------------------------------------------------------- 1 | auto 2 | _Bool 3 | break 4 | case 5 | char 6 | _Complex 7 | const 8 | continue 9 | default 10 | do 11 | double 12 | else 13 | enum 14 | extern 15 | float 16 | for 17 | goto 18 | if 19 | _Imaginary 20 | inline 21 | int 22 | long 23 | register 24 | restrict 25 | return 26 | short 27 | signed 28 | sizeof 29 | static 30 | struct 31 | switch 32 | typedef 33 | union 34 | unsigned 35 | void 36 | volatile 37 | while 38 | -------------------------------------------------------------------------------- /extensions/auto-complete/dict/java-mode: -------------------------------------------------------------------------------- 1 | abstract 2 | assert 3 | boolean 4 | break 5 | byte 6 | case 7 | catch 8 | char 9 | class 10 | const 11 | continue 12 | default 13 | do 14 | double 15 | else 16 | enum 17 | extends 18 | final 19 | finally 20 | float 21 | for 22 | goto 23 | if 24 | implements 25 | import 26 | instanceof 27 | int 28 | interface 29 | long 30 | native 31 | new 32 | package 33 | private 34 | protected 35 | public 36 | return 37 | short 38 | static 39 | strictfp 40 | super 41 | switch 42 | synchronized 43 | this 44 | throw 45 | throws 46 | transient 47 | try 48 | void 49 | volatile 50 | while 51 | -------------------------------------------------------------------------------- /extensions/auto-complete/dict/php-mode: -------------------------------------------------------------------------------- 1 | and 2 | array 3 | as 4 | break 5 | case 6 | catch 7 | cfunction 8 | class 9 | clone 10 | const 11 | continue 12 | declare 13 | default 14 | die 15 | do 16 | echo 17 | else 18 | elseif 19 | empty 20 | enddeclare 21 | endfor 22 | endforeach 23 | endif 24 | endswitch 25 | endwhile 26 | eval 27 | exit 28 | extends 29 | final 30 | for 31 | foreach 32 | function 33 | global 34 | goto 35 | if 36 | implements 37 | include 38 | include_once 39 | instanceof 40 | interface 41 | isset 42 | list 43 | namespace 44 | new 45 | old_function 46 | or 47 | print 48 | private 49 | protected 50 | public 51 | require 52 | require_once 53 | return 54 | static 55 | switch 56 | throw 57 | try 58 | unset 59 | use 60 | var 61 | while 62 | xor 63 | -------------------------------------------------------------------------------- /extensions/open-next-line.el: -------------------------------------------------------------------------------- 1 | ;; Behave like vi's o command 2 | (defun open-next-line (arg) 3 | "Move to the next line and then opens a line. 4 | See also `newline-and-indent'." 5 | (interactive "p") 6 | (end-of-line) 7 | (open-line arg) 8 | (next-line 1) 9 | (when newline-and-indent 10 | (indent-according-to-mode))) 11 | (global-set-key (kbd "C-o") 'open-next-line) 12 | ;; Behave like vi's O command 13 | (defun open-previous-line (arg) 14 | "Open a new line before the current one. 15 | See also `newline-and-indent'." 16 | (interactive "p") 17 | (beginning-of-line) 18 | (open-line arg) 19 | (when newline-and-indent 20 | (indent-according-to-mode))) 21 | (global-set-key (kbd "M-o") 'open-previous-line) 22 | 23 | ;; Autoindent open-*-lines 24 | (defvar newline-and-indent t 25 | "Modify the behavior of the open-*-line functions to cause them to 26 | autoindent.") 27 | 28 | (provide 'open-next-line) -------------------------------------------------------------------------------- /extensions/snippet-helpers.el: -------------------------------------------------------------------------------- 1 | (defun prev-def-name () 2 | (save-excursion 3 | (if (re-search-backward "def +\\(.+?\\)(" nil t) 4 | (match-string 1) 5 | ) 6 | ) 7 | ) 8 | (defun prev-def-args () 9 | (save-excursion 10 | (if (re-search-backward "def +\\(.+?\\)( *self *,? *\\(.*\\))" nil t) 11 | (match-string 2) 12 | ) 13 | ) 14 | ) 15 | (defun prev-class-name () 16 | (save-excursion 17 | (if (re-search-backward "class +\\(.+?\\) *[(:]" nil t) 18 | (match-string 1) 19 | ) 20 | ) 21 | ) -------------------------------------------------------------------------------- /extensions/yasnippet/README: -------------------------------------------------------------------------------- 1 | YASnippet re-design and re-writing of my original extension 2 | smart-snippet. The goal is ease of use and full features. 3 | 4 | For detailed document, you can either download the document 5 | release of YASnippet or view it directly online: 6 | 7 | http://pluskid.lifegoo.com/upload/project/yasnippet/doc/index.html 8 | 9 | -------------------------------------------------------------------------------- /extensions/yasnippet/doc/define_snippet.rst: -------------------------------------------------------------------------------- 1 | ===== 2 | Moved 3 | ===== 4 | 5 | .. meta:: 6 | :http-equiv=Refresh: 3; URL=index.html 7 | 8 | This page has been moved. Click `here `_ if your browser 9 | does not automatically redirect you 10 | -------------------------------------------------------------------------------- /extensions/yasnippet/doc/images/bg-content-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/extensions/yasnippet/doc/images/bg-content-left.png -------------------------------------------------------------------------------- /extensions/yasnippet/doc/images/bg-content-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/extensions/yasnippet/doc/images/bg-content-right.png -------------------------------------------------------------------------------- /extensions/yasnippet/doc/images/bg-content.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/extensions/yasnippet/doc/images/bg-content.png -------------------------------------------------------------------------------- /extensions/yasnippet/doc/images/bg-navigation-item-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/extensions/yasnippet/doc/images/bg-navigation-item-hover.png -------------------------------------------------------------------------------- /extensions/yasnippet/doc/images/bg-navigation-item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/extensions/yasnippet/doc/images/bg-navigation-item.png -------------------------------------------------------------------------------- /extensions/yasnippet/doc/images/bg-navigation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/extensions/yasnippet/doc/images/bg-navigation.png -------------------------------------------------------------------------------- /extensions/yasnippet/doc/images/body.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/extensions/yasnippet/doc/images/body.png -------------------------------------------------------------------------------- /extensions/yasnippet/doc/images/customization-group.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/extensions/yasnippet/doc/images/customization-group.png -------------------------------------------------------------------------------- /extensions/yasnippet/doc/images/dropdown-menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/extensions/yasnippet/doc/images/dropdown-menu.png -------------------------------------------------------------------------------- /extensions/yasnippet/doc/images/external.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/extensions/yasnippet/doc/images/external.png -------------------------------------------------------------------------------- /extensions/yasnippet/doc/images/ido-menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/extensions/yasnippet/doc/images/ido-menu.png -------------------------------------------------------------------------------- /extensions/yasnippet/doc/images/menu-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/extensions/yasnippet/doc/images/menu-1.png -------------------------------------------------------------------------------- /extensions/yasnippet/doc/images/menu-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/extensions/yasnippet/doc/images/menu-2.png -------------------------------------------------------------------------------- /extensions/yasnippet/doc/images/menu-groups.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/extensions/yasnippet/doc/images/menu-groups.png -------------------------------------------------------------------------------- /extensions/yasnippet/doc/images/menu-parent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/extensions/yasnippet/doc/images/menu-parent.png -------------------------------------------------------------------------------- /extensions/yasnippet/doc/images/minor-mode-indicator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/extensions/yasnippet/doc/images/minor-mode-indicator.png -------------------------------------------------------------------------------- /extensions/yasnippet/doc/images/x-menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/extensions/yasnippet/doc/images/x-menu.png -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/c++-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | cc-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/c++-mode/beginend: -------------------------------------------------------------------------------- 1 | # name: v.begin(), v.end() 2 | # key: beginend 3 | # -- 4 | ${1:v}.begin(), $1.end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/c++-mode/class: -------------------------------------------------------------------------------- 1 | # name: class ... { ... } 2 | # key: class 3 | # -- 4 | class ${1:Name} 5 | { 6 | public: 7 | ${1:$(yas/substr text "[^: ]*")}($2); 8 | virtual ~${1:$(yas/substr text "[^: ]*")}(); 9 | }; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/c++-mode/ns: -------------------------------------------------------------------------------- 1 | # name: namespace ... 2 | # key: ns 3 | # -- 4 | namespace -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/c++-mode/template: -------------------------------------------------------------------------------- 1 | # name: template 2 | # key: template 3 | # -- 4 | template -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/c++-mode/using: -------------------------------------------------------------------------------- 1 | # name: using namespace ... 2 | # key: using 3 | # -- 4 | using namespace ${std}; 5 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/c-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | cc-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/c-mode/fopen: -------------------------------------------------------------------------------- 1 | # name: FILE *fp = fopen(..., ...); 2 | # key: fopen 3 | # -- 4 | FILE *${fp} = fopen(${"file"}, "${r}"); -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/c-mode/printf: -------------------------------------------------------------------------------- 1 | # -*- mode: snippet -*- 2 | # name: printf 3 | # contributor: joaotavora 4 | # key: printf 5 | # -- 6 | printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);") 7 | }$2${1:$(if (string-match "%" text) "\);" "")} -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/cc-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | text-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/cc-mode/do: -------------------------------------------------------------------------------- 1 | # name: do { ... } while (...) 2 | # key: do 3 | # -- 4 | do 5 | { 6 | $0 7 | } while (${1:condition}); -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/cc-mode/for: -------------------------------------------------------------------------------- 1 | # name: for (...; ...; ...) { ... } 2 | # key: for 3 | # -- 4 | for (${1:int i = 0}; ${2:i < N}; ${3:++i}) 5 | { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/cc-mode/if: -------------------------------------------------------------------------------- 1 | # name: if (...) { ... } 2 | # key: if 3 | # -- 4 | if (${1:condition}) 5 | { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/cc-mode/inc: -------------------------------------------------------------------------------- 1 | # name: #include "..." 2 | # key: inc 3 | # -- 4 | #include "$1" -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/cc-mode/inc.1: -------------------------------------------------------------------------------- 1 | # name: #include <...> 2 | # key: inc 3 | # -- 4 | #include <$1> -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/cc-mode/main: -------------------------------------------------------------------------------- 1 | # name: int main(argc, argv) { ... } 2 | # key: main 3 | # -- 4 | int main(int argc, char *argv[]) 5 | { 6 | $0 7 | return 0; 8 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/cc-mode/once: -------------------------------------------------------------------------------- 1 | # name: #ifndef XXX; #define XXX; #endif 2 | # key: once 3 | # -- 4 | #ifndef ${1:_`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_H_} 5 | #define $1 6 | 7 | $0 8 | 9 | #endif /* $1 */ -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/cc-mode/struct: -------------------------------------------------------------------------------- 1 | # name: struct ... { ... } 2 | # key: struct 3 | # -- 4 | struct ${1:name} 5 | { 6 | $0 7 | }; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/cperl-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | perl-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/csharp-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | cc-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/csharp-mode/attrib: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: private attribute ....; 3 | # key: attrib 4 | # -- 5 | /// 6 | /// $3 7 | /// 8 | private $1 $2; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/csharp-mode/attrib.1: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: private attribute ....; public property ... ... { ... } 3 | # key: attrib 4 | # -- 5 | /// 6 | /// $3 7 | /// 8 | private $1 $2; 9 | 10 | /// 11 | /// $4 12 | /// 13 | /// $5 14 | public $1 $2 15 | { 16 | get { 17 | return this.$2; 18 | } 19 | set { 20 | this.$2 = value; 21 | } 22 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/csharp-mode/attrib.2: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: private _attribute ....; public Property ... ... { ... } 3 | # key: attrib 4 | # -- 5 | /// 6 | /// $3 7 | /// 8 | private $1 ${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")}; 9 | 10 | /// 11 | /// ${3:Description} 12 | /// 13 | /// $1 14 | public ${1:Type} ${2:Name} 15 | { 16 | get { 17 | return this.${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")}; 18 | } 19 | set { 20 | this.${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")} = value; 21 | } 22 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/csharp-mode/class: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: class ... { ... } 3 | # key: class 4 | # -- 5 | ${5:public} class ${1:Name} 6 | { 7 | #region Ctor & Destructor 8 | /// 9 | /// ${3:Standard Constructor} 10 | /// 11 | public $1($2) 12 | { 13 | } 14 | 15 | /// 16 | /// ${4:Default Destructor} 17 | /// 18 | public ~$1() 19 | { 20 | } 21 | #endregion 22 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/csharp-mode/comment: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: /// ... 3 | # key: comment 4 | # -- 5 | /// 6 | /// $1 7 | /// -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/csharp-mode/comment.1: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: /// ... 3 | # key: comment 4 | # -- 5 | /// $2 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/csharp-mode/comment.2: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: /// ... 3 | # key: comment 4 | # -- 5 | /// $1 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/csharp-mode/comment.3: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: /// ... 3 | # key: comment 4 | # -- 5 | /// $2 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/csharp-mode/method: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: public void Method { ... } 3 | # key: method 4 | # -- 5 | /// 6 | /// ${5:Description} 7 | /// ${2:$(if (string= (upcase text) "VOID") "" (format "%s%s%s" "\n/// " text ""))} 8 | ${1:public} ${2:void} ${3:MethodName}($4) 9 | { 10 | $0 11 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/csharp-mode/namespace: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: namespace .. { ... } 3 | # key: namespace 4 | # -- 5 | namespace $1 6 | { 7 | $0 8 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/csharp-mode/prop: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: property ... ... { ... } 3 | # key: prop 4 | # -- 5 | /// 6 | /// $5 7 | /// 8 | /// $6 9 | $1 $2 $3 10 | { 11 | get { 12 | return this.$4; 13 | } 14 | set { 15 | this.$4 = value; 16 | } 17 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/csharp-mode/region: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: #region ... #endregion 3 | # key: region 4 | # -- 5 | #region $1 6 | $0 7 | #endregion -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/csharp-mode/using: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: using ...; 3 | # key: using 4 | # -- 5 | using $1; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/csharp-mode/using.1: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: using System; 3 | # key: using 4 | # -- 5 | using System; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/csharp-mode/using.2: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: using System....; 3 | # key: using 4 | # -- 5 | using System.$1; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | text-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/bg: -------------------------------------------------------------------------------- 1 | # name: background-color: ... 2 | # key: bg 3 | # -- 4 | background-color: #${1:DDD}; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/bg.1: -------------------------------------------------------------------------------- 1 | # name: background-image: ... 2 | # key: bg 3 | # -- 4 | background-image: url($1); -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/bor: -------------------------------------------------------------------------------- 1 | # name: border size style color 2 | # key: bor 3 | # -- 4 | border: ${1:1px} ${2:solid} #${3:999}; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/cl: -------------------------------------------------------------------------------- 1 | # contributor: rejeep 2 | # name: clear: ... 3 | # key: cl 4 | # -- 5 | clear: $1; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/disp.block: -------------------------------------------------------------------------------- 1 | # contributor: rejeep 2 | # name: display: block 3 | # key: disp 4 | # -- 5 | display: block; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/disp.inline: -------------------------------------------------------------------------------- 1 | # contributor: rejeep 2 | # name: display: inline 3 | # key: disp 4 | # -- 5 | display: inline; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/disp.none: -------------------------------------------------------------------------------- 1 | # contributor: rejeep 2 | # name: display: none 3 | # key: disp 4 | # -- 5 | display: none; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/ff: -------------------------------------------------------------------------------- 1 | # contributor: rejeep 2 | # name: font-family: ... 3 | # key: ff 4 | # -- 5 | font-family: $1; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/fs: -------------------------------------------------------------------------------- 1 | # contributor: rejeep 2 | # name: font-size: ... 3 | # key: fs 4 | # -- 5 | font-size: ${12px}; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/mar.bottom: -------------------------------------------------------------------------------- 1 | # contributor: rejeep 2 | # name: margin-bottom: ... 3 | # key: mar 4 | # -- 5 | margin-bottom: $1; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/mar.left: -------------------------------------------------------------------------------- 1 | # contributor: rejeep 2 | # name: margin-left: ... 3 | # key: mar 4 | # -- 5 | margin-left: $1; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/mar.mar: -------------------------------------------------------------------------------- 1 | # contributor: rejeep 2 | # name: margin: ... 3 | # key: mar 4 | # -- 5 | margin: $1; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/mar.margin: -------------------------------------------------------------------------------- 1 | # contributor: rejeep 2 | # name: margin top right bottom left 3 | # key: mar 4 | # -- 5 | margin: ${top} ${right} ${bottom} ${left}; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/mar.right: -------------------------------------------------------------------------------- 1 | # contributor: rejeep 2 | # name: margin-right: ... 3 | # key: mar 4 | # -- 5 | margin-right: $1; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/mar.top: -------------------------------------------------------------------------------- 1 | # contributor: rejeep 2 | # name: margin-top: ... 3 | # key: mar 4 | # -- 5 | margin-top: $1; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/pad.bottom: -------------------------------------------------------------------------------- 1 | # contributor: rejeep 2 | # name: padding-bottom: ... 3 | # key: pad 4 | # -- 5 | padding-bottom: $1; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/pad.left: -------------------------------------------------------------------------------- 1 | # contributor: rejeep 2 | # name: padding-left: ... 3 | # key: pad 4 | # -- 5 | padding-left: $1; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/pad.pad: -------------------------------------------------------------------------------- 1 | # contributor: rejeep 2 | # name: padding: ... 3 | # key: pad 4 | # -- 5 | padding: $1; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/pad.padding: -------------------------------------------------------------------------------- 1 | # contributor: rejeep 2 | # name: padding: top right bottom left 3 | # key: pad 4 | # -- 5 | padding: ${top} ${right} ${bottom} ${left}; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/pad.right: -------------------------------------------------------------------------------- 1 | # contributor: rejeep 2 | # name: padding-right: ... 3 | # key: pad 4 | # -- 5 | padding-right: $1; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/css-mode/pad.top: -------------------------------------------------------------------------------- 1 | # contributor: rejeep 2 | # name: padding-top: ... 3 | # key: pad 4 | # -- 5 | padding-top: $1; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/.read_me: -------------------------------------------------------------------------------- 1 | -*- coding: utf-8 -*- 2 | Originally started by Xah Lee (xahlee.org) on 2009-02-22 3 | Released under GPL 3. 4 | 5 | Feel free to add missing ones or modify existing ones to improve. 6 | 7 | Those starting with “x-” are supposed to be idiom templates. Not sure it's very useful. They might start with “i-” or "id-" in the future. -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | text-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/add-hook.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: add-hook 3 | # key: add-hook 4 | # key: ah 5 | # -- 6 | (add-hook HOOK$0 FUNCTION) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/and.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: and 3 | # key: and 4 | # key: a 5 | # -- 6 | (and $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/append.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: append 3 | # key: append 4 | # -- 5 | (append $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/apply.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: apply 3 | # key: apply 4 | # -- 5 | (apply $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/aref.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: aref 3 | # key: aref 4 | # -- 5 | (aref ARRAY$0 INDEX) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/aset.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: aset 3 | # key: aset 4 | # -- 5 | (aset ARRAY$0 IDX NEWELT) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/assq.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: assq 3 | # key: assq 4 | # -- 5 | (assq KEY$0 LIST) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/autoload.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: autoload 3 | # key: autoload 4 | # -- 5 | (autoload 'FUNCNAME$0 "FILENAME" &optional "DOCSTRING" INTERACTIVE TYPE) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/backward-char.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: backward-char 3 | # key: backward-char 4 | # key: bc 5 | # -- 6 | (backward-char $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/beginning-of-line.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: beginning-of-line 3 | # key: beginning-of-line 4 | # key: bol 5 | # -- 6 | (beginning-of-line) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/bounds-of-thing-at-point.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: bounds-of-thing-at-point 3 | # key: bounds-of-thing-at-point 4 | # key: botap 5 | # -- 6 | (bounds-of-thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ... -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/buffer-file-name.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: buffer-file-name 3 | # key: buffer-file-name 4 | # key: bfn 5 | # -- 6 | (buffer-file-name) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/buffer-modified-p.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: buffer-modified-p 3 | # key: buffer-modified-p 4 | # key: bmp 5 | # -- 6 | (buffer-modified-p $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/buffer-substring-no-properties.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: buffer-substring-no-properties 3 | # key: buffer-substring-no-properties 4 | # key: bsnp 5 | # -- 6 | (buffer-substring-no-properties START$0 END) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/buffer-substring.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: buffer-substring 3 | # key: buffer-substring 4 | # key: bs 5 | # -- 6 | (buffer-substring START$0 END) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/car.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: car 3 | # key: car 4 | # -- 5 | (car $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/cdr.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: cdr 3 | # key: cdr 4 | # -- 5 | (cdr $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/concat.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: concat 3 | # key: concat 4 | # -- 5 | (concat $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/cond.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: cond 3 | # key: cond 4 | # -- 5 | (cond 6 | (CONDITION$0 BODY) 7 | (CONDITION BODY) 8 | ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/condition-case.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: condition-case 3 | # key: condition-case 4 | # key: cc 5 | # -- 6 | (condition-case $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/cons.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: cons 3 | # key: cons 4 | # -- 5 | (cons $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/consp.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: consp 3 | # key: consp 4 | # -- 5 | (consp $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/copy-directory.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: copy-directory 3 | # key: copy-directory 4 | # key: cd 5 | # -- 6 | (copy-directory $0 NEWNAME &optional KEEP-TIME PARENTS) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/copy-file.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: copy-file 3 | # key: copy-file 4 | # key: cf 5 | # -- 6 | (copy-file FILE$0 NEWNAME &optional OK-IF-ALREADY-EXISTS KEEP-TIME PRESERVE-UID-GID) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/current-buffer.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: current-buffer 3 | # key: current-buffer 4 | # key: cb 5 | # -- 6 | (current-buffer) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/custom-autoload.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: custom-autoload 3 | # key: custom-autoload 4 | # key: ca 5 | # -- 6 | (custom-autoload$0 SYMBOL LOAD &optional NOSET) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/defalias.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: defalias 3 | # key: defalias 4 | # -- 5 | (defalias 'SYMBOL$0 'DEFINITION &optional DOCSTRING) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/defcustom.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: defcustom 3 | # key: defcustom 4 | # -- 5 | (defcustom $0 VALUE "DOC" &optional ARGS) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/define-key.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: define-key 3 | # key: define-key 4 | # key: dk 5 | # -- 6 | (define-key KEYMAPNAME$0 (kbd "M-b") 'FUNCNAME) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/defsubst.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: defsubst 3 | # key: defsubst 4 | # -- 5 | (defsubst $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/defun: -------------------------------------------------------------------------------- 1 | #name : function template 2 | #contributor : Xah Lee 3 | # -- 4 | (defun $1 () 5 | "thisandthat." 6 | (interactive) 7 | (let (var1) 8 | (setq var1 some) 9 | $0 10 | ) 11 | ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/defun.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: defun 3 | # key: defun 4 | # key: d 5 | # -- 6 | (defun $1 () 7 | "DOCSTRING" 8 | (interactive) 9 | (let (var1) 10 | (setq var1 some) 11 | $0 12 | )) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/defvar.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: defvar 3 | # key: defvar 4 | # -- 5 | (defvar $0 &optional INITVALUE "DOCSTRING") -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/delete-char.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: delete-char 3 | # key: delete-char 4 | # key: dc 5 | # -- 6 | (delete-char $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/delete-directory.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: delete-directory 3 | # key: delete-directory 4 | # key: dd 5 | # -- 6 | (delete-directory $0 &optional RECURSIVE) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/delete-file.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: delete-file 3 | # key: delete-file 4 | # key: df 5 | # -- 6 | (delete-file $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/delete-region.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: delete-region 3 | # key: delete-region 4 | # key: dr 5 | # -- 6 | (delete-region $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/directory-files.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: directory-files 3 | # key: directory-files 4 | # key: df 5 | # -- 6 | (directory-files $0 &optional FULL MATCH NOSORT) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/dired.process_marked: -------------------------------------------------------------------------------- 1 | #name : process marked files in dired 2 | #contributor : Xah Lee 3 | # -- 4 | ;; idiom for processing a list of files in dired's marked files 5 | 6 | ;; suppose myProcessFile is your function that takes a file path 7 | ;; and do some processing on the file 8 | 9 | (defun dired-myProcessFile () 10 | "apply myProcessFile function to marked files in dired." 11 | (interactive) 12 | (require 'dired) 13 | (mapc 'myProcessFile (dired-get-marked-files)) 14 | ) 15 | 16 | ;; to use it, type M-x dired-myProcessFile 17 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/dolist.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: dolist 3 | # key: dolist 4 | # -- 5 | (dolist $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/end-of-line.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: end-of-line 3 | # key: end-of-line 4 | # key: eol 5 | # -- 6 | (end-of-line) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/eq.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: eq 3 | # key: eq 4 | # -- 5 | (eq $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/equal.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: equal 3 | # key: equal 4 | # -- 5 | (equal $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/error.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: error 3 | # key: error 4 | # -- 5 | (error "$0" &optional ARGS) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/expand-file-name.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: expand-file-name 3 | # key: expand-file-name 4 | # key: efn 5 | # -- 6 | (expand-file-name $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/f.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: format 3 | # key: format 4 | # -- 5 | (format "$0" &optional OBJECTS) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/fboundp.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: fboundp 3 | # key: fboundp 4 | # -- 5 | (fboundp '$0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/file-name-directory.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: file-name-directory 3 | # key: file-name-directory 4 | # key: fnd 5 | # -- 6 | (file-name-directory $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/file-name-extension.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: file-name-extension 3 | # key: file-name-extension 4 | # key: fne 5 | # -- 6 | (file-name-extension $0 &optional PERIOD) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/file-name-nondirectory.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: file-name-nondirectory 3 | # key: file-name-nondirectory 4 | # key: fnn 5 | # -- 6 | (file-name-nondirectory $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/file-name-sans-extension.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: file-name-sans-extension 3 | # key: file-name-sans-extension 4 | # key: fnse 5 | # -- 6 | (file-name-sans-extension $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/file-relative-name.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: file-relative-name 3 | # key: file-relative-name 4 | # key: frn 5 | # -- 6 | (file-relative-name $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/file.process: -------------------------------------------------------------------------------- 1 | #name : a function that process a file 2 | #contributor : Xah Lee 3 | # -- 4 | (defun doThisFile (fpath) 5 | "Process the file at path FPATH ..." 6 | (let () 7 | ;; create temp buffer without undo record or font lock. (more efficient) 8 | ;; first space in temp buff name is necessary 9 | (set-buffer (get-buffer-create " myTemp")) 10 | (insert-file-contents fpath nil nil nil t) 11 | 12 | ;; process it ... 13 | ;; (goto-char 0) ; move to begining of file's content (in case it was open) 14 | ;; ... do something here 15 | ;; (write-file fpath) ;; write back to the file 16 | 17 | (kill-buffer " myTemp"))) 18 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/file.read-lines: -------------------------------------------------------------------------------- 1 | #name : read lines of a file 2 | #contributor : Xah Lee 3 | # -- 4 | (defun read-lines (filePath) 5 | "Return a list of lines in FILEPATH." 6 | (with-temp-buffer 7 | (insert-file-contents filePath) 8 | (split-string 9 | (buffer-string) "\n" t)) ) 10 | 11 | ;; process all lines 12 | (mapc 13 | (lambda (aLine) 14 | (message aLine) ; do your stuff here 15 | ) 16 | (read-lines "inputFilePath") 17 | ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/find-file.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: find-file 3 | # key: find-file 4 | # key: ff 5 | # -- 6 | (find-file $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/find-replace: -------------------------------------------------------------------------------- 1 | #name : find and replace on region 2 | #contributor : Xah Lee 3 | # -- 4 | (defun replace-html-chars-region (start end) 5 | "Replace “<” to “<” and other chars in HTML. 6 | This works on the current region." 7 | (interactive "r") 8 | (save-restriction 9 | (narrow-to-region start end) 10 | (goto-char (point-min)) 11 | (while (search-forward "&" nil t) (replace-match "&" nil t)) 12 | (goto-char (point-min)) 13 | (while (search-forward "<" nil t) (replace-match "<" nil t)) 14 | (goto-char (point-min)) 15 | (while (search-forward ">" nil t) (replace-match ">" nil t)) 16 | ) 17 | ) 18 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/format.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: format 3 | # key: format 4 | # -- 5 | (format "$0" &optional OBJECTS) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/forward-char.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: forward-char 3 | # key: forward-char 4 | # key: fc 5 | # -- 6 | (forward-char $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/forward-line.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: forward-line 3 | # key: forward-line 4 | # key: fl 5 | # -- 6 | (forward-line $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/funcall.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: funcall 3 | # key: funcall 4 | # -- 5 | (funcall $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/function.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: function 3 | # key: function 4 | # -- 5 | (function $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/get.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: get 3 | # key: get 4 | # -- 5 | (get SYMBOL$0 PROPNAME) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/global-set-key.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: global-set-key 3 | # key: global-set-key 4 | # key: gsk 5 | # -- 6 | (global-set-key (kbd "C-$0") 'COMMAND) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/goto-char.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: goto-char 3 | # key: goto-char 4 | # key: gc 5 | # -- 6 | (goto-char $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/grabstring: -------------------------------------------------------------------------------- 1 | #name : grab buffer substring 2 | #contributor : Xah Lee 3 | # -- 4 | (setq $0 (buffer-substring-no-properties myStartPos myEndPos)) 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/grabthing: -------------------------------------------------------------------------------- 1 | #name : grab word under cursor 2 | #contributor : Xah Lee 3 | # -- 4 | (setq $0 (thing-at-point 'symbol)) 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/if.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: if 3 | # key: if 4 | # -- 5 | (if $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/insert-file-contents.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: insert-file-contents 3 | # key: insert-file-contents 4 | # key: ifc 5 | # -- 6 | (insert-file-contents $0 &optional VISIT BEG END REPLACE) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/insert.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: insert 3 | # key: insert 4 | # key: i 5 | # -- 6 | (insert $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/interactive.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: interactive 3 | # key: interactive 4 | # -- 5 | (interactive) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/kbd.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: kbd 3 | # key: kbd 4 | # -- 5 | (kbd "$0") -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/kill-buffer.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: kill-buffer 3 | # key: kill-buffer 4 | # key: kb 5 | # -- 6 | (kill-buffer $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/lambda.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: lambda 3 | # key: lambda 4 | # -- 5 | (lambda ($0) "DOCSTRING" (interactive) BODY) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/length.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: length 3 | # key: length 4 | # -- 5 | (length $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/let.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: let 3 | # key: let 4 | # key: l 5 | # -- 6 | (let ($1 ) 7 | $0 8 | ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/line-beginning-position.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: line-beginning-position 3 | # key: line-beginning-position 4 | # key: lbp 5 | # -- 6 | (line-beginning-position) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/line-end-position.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: line-end-position 3 | # key: line-end-position 4 | # key: lep 5 | # -- 6 | (line-end-position) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/list.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: list 3 | # key: list 4 | # -- 5 | (list $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/looking-at.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: looking-at 3 | # key: looking-at 4 | # key: la 5 | # -- 6 | (looking-at $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/make-directory.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: make-directory 3 | # key: make-directory 4 | # key: md 5 | # -- 6 | (make-directory $0 &optional PARENTS) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/make-local-variable.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: make-local-variable 3 | # key: make-local-variable 4 | # key: mlv 5 | # -- 6 | (make-local-variable $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/mapc.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: mapc 3 | # key: mapc 4 | # -- 5 | (mapc '$0 SEQUENCE) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/mapcar.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: mapcar 3 | # key: mapcar 4 | # -- 5 | (mapcar $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/match-beginning.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: match-beginning 3 | # key: match-beginning 4 | # key: mb 5 | # -- 6 | (match-beginning N$0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/match-end.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: match-end 3 | # key: match-end 4 | # key: me 5 | # -- 6 | (match-end N$0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/match-string.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: match-string 3 | # key: match-string 4 | # key: ms 5 | # -- 6 | (match-string $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/memq.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: memq 3 | # key: memq 4 | # -- 5 | (memq ELT$0 LIST) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/message.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: message 3 | # key: message 4 | # key: m 5 | # -- 6 | (message "FORMATSTRING$0" &optional ARGS) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/not.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: not 3 | # key: not 4 | # key: n 5 | # -- 6 | (not $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/nth.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: nth 3 | # key: nth 4 | # -- 5 | (nth N$0 LIST) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/null.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: null 3 | # key: null 4 | # -- 5 | (null $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/number-to-string.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: number-to-string 3 | # key: number-to-string 4 | # key: nts 5 | # -- 6 | (number-to-string $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/or.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: or 3 | # key: or 4 | # key: o 5 | # -- 6 | (or $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/point-max.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: point-max 3 | # key: point-max 4 | # -- 5 | (point-max) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/point-min.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: point-min 3 | # key: point-min 4 | # key: pm 5 | # -- 6 | (point-min) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/point.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: point 3 | # key: point 4 | # key: p 5 | # -- 6 | (point) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/princ.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: princ 3 | # key: princ 4 | # -- 5 | (princ $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/print.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: print 3 | # key: print 4 | # -- 5 | (print $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/progn.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: progn 3 | # key: progn 4 | # -- 5 | (progn $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/push.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: push 3 | # key: push 4 | # -- 5 | (push $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/put.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: put 3 | # key: put 4 | # -- 5 | (put $0 PROPNAME VALUE) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/re-search-backward.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: re-search-backward 3 | # key: re-search-backward 4 | # key: rsb 5 | # -- 6 | (re-search-backward REGEXP$0 &optional BOUND NOERROR COUNT) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/re-search-forward.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: re-search-forward 3 | # key: re-search-forward 4 | # key: rsf 5 | # -- 6 | (re-search-forward REGEXP$0 &optional BOUND NOERROR COUNT) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/region-active-p.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: region-active-p 3 | # key: region-active-p 4 | # key: rap 5 | # -- 6 | (region-active-p) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/region-beginning.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: region-beginning 3 | # key: region-beginning 4 | # key: rb 5 | # -- 6 | (region-beginning) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/region-end.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: region-end 3 | # key: region-end 4 | # key: re 5 | # -- 6 | (region-end) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/rename-file.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: rename-file 3 | # key: rename-file 4 | # key: rf 5 | # -- 6 | (rename-file FILE$0 NEWNAME &optional OK-IF-ALREADY-EXISTS) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/repeat.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: repeat 3 | # key: repeat 4 | # -- 5 | (repeat $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/replace-regexp-in-string.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: replace-regexp-in-string 3 | # key: replace-regexp-in-string 4 | # key: rris 5 | # -- 6 | (replace-regexp-in-string REGEXP$0 REP STRING &optional FIXEDCASE LITERAL SUBEXP START) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/replace-regexp.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: replace-regexp 3 | # key: replace-regexp 4 | # key: rr 5 | # -- 6 | (replace-regexp REGEXP$0 TO-STRING &optional DELIMITED START END) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/require.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: require 3 | # key: require 4 | # -- 5 | (require $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/save-buffer.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: save-buffer 3 | # key: save-buffer 4 | # key: sb 5 | # -- 6 | (save-buffer $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/save-excursion.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: save-excursion 3 | # key: save-excursion 4 | # key: se 5 | # -- 6 | (save-excursion $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/search-backward-regexp.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: search-backward-regexp 3 | # key: search-backward-regexp 4 | # key: sbr 5 | # -- 6 | (search-backward-regexp "$0" &optional BOUND NOERROR COUNT) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/search-backward.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: search-backward 3 | # key: search-backward 4 | # key: sb 5 | # -- 6 | (search-backward "$0" &optional BOUND NOERROR COUNT) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/search-forward-regexp.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: search-forward-regexp 3 | # key: search-forward-regexp 4 | # key: sfr 5 | # -- 6 | (search-forward-regexp "$0" &optional BOUND NOERROR COUNT) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/search-forward.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: search-forward 3 | # key: search-forward 4 | # key: sf 5 | # -- 6 | (search-forward "$0" &optional BOUND NOERROR COUNT) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/set-buffer.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: set-buffer 3 | # key: set-buffer 4 | # key: sb 5 | # -- 6 | (set-buffer $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/set-file-modes.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: set-file-modes 3 | # key: set-file-modes 4 | # key: sfm 5 | # -- 6 | (set-file-modes $0 MODE) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/set-mark.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: set-mark 3 | # key: set-mark 4 | # key: sm 5 | # -- 6 | (set-mark $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/set.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: set 3 | # key: set 4 | # -- 5 | (set $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/setq.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: setq 3 | # key: setq 4 | # key: s 5 | # -- 6 | (setq $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/skip-chars-backward.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: skip-chars-backward 3 | # key: skip-chars-backward 4 | # key: scb 5 | # -- 6 | (skip-chars-backward "$0" &optional LIM) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/skip-chars-forward.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: skip-chars-forward 3 | # key: skip-chars-forward 4 | # key: scf 5 | # -- 6 | (skip-chars-forward "$0" &optional LIM) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/split-string.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: split-string 3 | # key: split-string 4 | # key: ss 5 | # -- 6 | (split-string $0 &optional SEPARATORS OMIT-NULLS) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/string-match.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: string-match 3 | # key: string-match 4 | # key: sm 5 | # -- 6 | (string-match "REGEXP$0" "STRING" &optional START) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/string-to-number.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: string-to-number 3 | # key: string-to-number 4 | # key: stn 5 | # -- 6 | (string-to-number "$0") -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/string.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: string 3 | # key: string 4 | # -- 5 | (string $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/string=.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: string= 3 | # key: string= 4 | # -- 5 | (string= $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/stringp.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: stringp 3 | # key: stringp 4 | # -- 5 | (stringp $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/substring.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: substring 3 | # key: substring 4 | # -- 5 | (substring STRING$0 FROM &optional TO) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/thing-at-point.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: thing-at-point 3 | # key: thing-at-point 4 | # key: tap 5 | # -- 6 | (thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ... -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/traverse_dir: -------------------------------------------------------------------------------- 1 | #name : traversing a directory 2 | #contributor : Xah Lee 3 | # -- 4 | ;; apply a function to all files in a dir 5 | (require 'find-lisp) 6 | (mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$")) 7 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/unless.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: unless 3 | # key: unless 4 | # -- 5 | (unless $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/vector.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: vector 3 | # key: vector 4 | # key: v 5 | # -- 6 | (vector $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/when.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: when 3 | # key: when 4 | # -- 5 | (when $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/while.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: while 3 | # key: while 4 | # -- 5 | (while $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/widget-get.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: widget-get 3 | # key: widget-get 4 | # key: wg 5 | # -- 6 | (widget-get $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/with-current-buffer.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: with-current-buffer 3 | # key: with-current-buffer 4 | # key: wcb 5 | # -- 6 | (with-current-buffer $0 ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/word-or-region: -------------------------------------------------------------------------------- 1 | #name : Command that works on region or word 2 | #contributor : Xah Lee 3 | # -- 4 | ;; example of a command that works on current word or text selection 5 | (defun down-case-word-or-region () 6 | "Lower case the current word or text selection." 7 | (interactive) 8 | (let (pos1 pos2 meat) 9 | (if (and transient-mark-mode mark-active) 10 | (setq pos1 (region-beginning) 11 | pos2 (region-end)) 12 | (setq pos1 (car (bounds-of-thing-at-point 'symbol)) 13 | pos2 (cdr (bounds-of-thing-at-point 'symbol)))) 14 | 15 | ; now, pos1 and pos2 are the starting and ending positions 16 | ; of the current word, or current text selection if exists 17 | 18 | ;; put your code here. 19 | $0 20 | ;; Some example of things you might want to do 21 | (downcase-region pos1 pos2) ; example of a func that takes region as args 22 | (setq meat (buffer-substring-no-properties pos1 pos2)) ; grab the text. 23 | (delete-region pos1 pos2) ; get rid of it 24 | (insert "newText") ; insert your new text 25 | 26 | ) 27 | ) 28 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/x-dired.process_marked.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: process marked files in dired 3 | # key: x-dired 4 | # -- 5 | ;; idiom for processing a list of files in dired's marked files 6 | 7 | ;; suppose myProcessFile is your function that takes a file path 8 | ;; and do some processing on the file 9 | 10 | (defun dired-myProcessFile () 11 | "apply myProcessFile function to marked files in dired." 12 | (interactive) 13 | (require 'dired) 14 | (mapc 'myProcessFile (dired-get-marked-files)) 15 | ) 16 | 17 | ;; to use it, type M-x dired-myProcessFile -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/x-file.process.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: a function that process a file 3 | # key: x-file 4 | # -- 5 | (defun doThisFile (fpath) 6 | "Process the file at path FPATH ..." 7 | (let () 8 | ;; create temp buffer without undo record or font lock. (more efficient) 9 | ;; first space in temp buff name is necessary 10 | (set-buffer (get-buffer-create " myTemp")) 11 | (insert-file-contents fpath nil nil nil t) 12 | 13 | ;; process it ... 14 | ;; (goto-char 0) ; move to begining of file's content (in case it was open) 15 | ;; ... do something here 16 | ;; (write-file fpath) ;; write back to the file 17 | 18 | (kill-buffer " myTemp"))) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/x-file.read-lines.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: read lines of a file 3 | # key: x-file 4 | # -- 5 | (defun read-lines (filePath) 6 | "Return a list of lines in FILEPATH." 7 | (with-temp-buffer 8 | (insert-file-contents filePath) 9 | (split-string 10 | (buffer-string) "\n" t)) ) 11 | 12 | ;; process all lines 13 | (mapc 14 | (lambda (aLine) 15 | (message aLine) ; do your stuff here 16 | ) 17 | (read-lines "inputFilePath") 18 | ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/x-find-replace.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: find and replace on region 3 | # key: x-find-replace 4 | # -- 5 | (defun replace-html-chars-region (start end) 6 | "Replace “<” to “<” and other chars in HTML. 7 | This works on the current region." 8 | (interactive "r") 9 | (save-restriction 10 | (narrow-to-region start end) 11 | (goto-char (point-min)) 12 | (while (search-forward "&" nil t) (replace-match "&" nil t)) 13 | (goto-char (point-min)) 14 | (while (search-forward "<" nil t) (replace-match "<" nil t)) 15 | (goto-char (point-min)) 16 | (while (search-forward ">" nil t) (replace-match ">" nil t)) 17 | ) 18 | ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/x-grabstring.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: grab buffer substring 3 | # key: x-grabstring 4 | # -- 5 | (setq $0 (buffer-substring-no-properties myStartPos myEndPos)) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/x-grabthing.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: grab word under cursor 3 | # key: x-grabthing 4 | # -- 5 | (setq $0 (thing-at-point 'symbol)) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/x-traverse_dir.yasnippet: -------------------------------------------------------------------------------- 1 | # name: traversing a directory 2 | # contributor: Xah Lee (XahLee.org) 3 | # key: x-traverse_dir 4 | # -- 5 | ;; apply a function to all files in a dir 6 | (require 'find-lisp) 7 | (mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$")) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/x-word-or-region.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: Command that works on region or word 3 | # key: x-word-or-region 4 | # -- 5 | ;; example of a command that works on current word or text selection 6 | (defun down-case-word-or-region () 7 | "Lower case the current word or text selection." 8 | (interactive) 9 | (let (pos1 pos2 meat) 10 | (if (and transient-mark-mode mark-active) 11 | (setq pos1 (region-beginning) 12 | pos2 (region-end)) 13 | (setq pos1 (car (bounds-of-thing-at-point 'symbol)) 14 | pos2 (cdr (bounds-of-thing-at-point 'symbol)))) 15 | 16 | ; now, pos1 and pos2 are the starting and ending positions 17 | ; of the current word, or current text selection if exists 18 | 19 | ;; put your code here. 20 | $0 21 | ;; Some example of things you might want to do 22 | (downcase-region pos1 pos2) ; example of a func that takes region as args 23 | (setq meat (buffer-substring-no-properties pos1 pos2)) ; grab the text. 24 | (delete-region pos1 pos2) ; get rid of it 25 | (insert "newText") ; insert your new text 26 | 27 | ) 28 | ) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/y-or-n-p.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: y-or-n-p 3 | # key: y-or-n-p 4 | # key: yonp 5 | # -- 6 | (yes-or-no-p "PROMPT$0 ") -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/emacs-lisp-mode/yes-or-no-p.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee (XahLee.org) 2 | # name: yes-or-no-p 3 | # key: yes-or-no-p 4 | # -- 5 | (yes-or-no-p "PROMPT$0 ") -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | text-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/after: -------------------------------------------------------------------------------- 1 | # name: after ... -> 2 | # key: after 3 | # -- 4 | after 5 | $1 -> $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/begin: -------------------------------------------------------------------------------- 1 | # name: begin ... end 2 | # key: begin 3 | # -- 4 | begin 5 | $0 6 | end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/beh: -------------------------------------------------------------------------------- 1 | # name: -behaviour(...). 2 | # key: beh 3 | # -- 4 | -behaviour(${1:gen_server}). 5 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/case: -------------------------------------------------------------------------------- 1 | # name: case ... of ... end 2 | # key: case 3 | # -- 4 | case $1 of 5 | $0 6 | end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/compile: -------------------------------------------------------------------------------- 1 | # name: -compile(...). 2 | # key: compile 3 | # -- 4 | -compile([${1:export_all}]). 5 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/def: -------------------------------------------------------------------------------- 1 | # name: -define(...,...). 2 | # key: def 3 | # -- 4 | -define($1,$2). 5 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/exp: -------------------------------------------------------------------------------- 1 | # name: -export([]). 2 | # contributor: hitesh 3 | # key: exp 4 | # -- 5 | -export([${1:start/0}]). 6 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/fun: -------------------------------------------------------------------------------- 1 | # name: fun (...) -> ... end 2 | # key: fun 3 | # -- 4 | fun ($1) -> $0 end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/if: -------------------------------------------------------------------------------- 1 | # name: if ... -> ... ; true -> ... end 2 | # key: if 3 | # -- 4 | if 5 | $1 -> $2; 6 | true -> $0 7 | end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/ifdef: -------------------------------------------------------------------------------- 1 | # name: -ifdef(...). ... -endif. 2 | # key: ifdef 3 | # -- 4 | -ifdef($1). 5 | $0 6 | -endif. -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/ifndef: -------------------------------------------------------------------------------- 1 | # name: -ifndef(...). ... -endif. 2 | # key: ifndef 3 | # -- 4 | -ifndef($1). 5 | $0 6 | -endif. -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/imp: -------------------------------------------------------------------------------- 1 | # name: -import([]). 2 | # contributor: hitesh 3 | # key: imp 4 | # -- 5 | -import(${1:lists}, [${2:map/2, sum/1}]). 6 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/inc: -------------------------------------------------------------------------------- 1 | # name: -include("..."). 2 | # key: inc 3 | # -- 4 | -include("$1"). 5 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/inc.lib: -------------------------------------------------------------------------------- 1 | # name: -include_lib("..."). 2 | # key: inc 3 | # -- 4 | -include_lib("$1"). 5 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/loop: -------------------------------------------------------------------------------- 1 | # name: loop(...) -> receive _ -> loop(...) end. 2 | # key: loop 3 | # -- 4 | ${1:loop}($2) -> 5 | receive 6 | ${3:_} -> 7 | $1($2) 8 | end. 9 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/mod: -------------------------------------------------------------------------------- 1 | # name: -module(). 2 | # contributor: hitesh 3 | # key: mod 4 | # -- 5 | -module(${1:`(file-name-nondirectory 6 | (file-name-sans-extension (or (buffer-file-name) (buffer-name))))`}). 7 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/rcv: -------------------------------------------------------------------------------- 1 | # name: receive ... -> ... end 2 | # key: rcv 3 | # -- 4 | receive 5 | $1 -> $0 6 | end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/rcv.after: -------------------------------------------------------------------------------- 1 | # name: receive after ... -> ... end 2 | # key: rcv 3 | # -- 4 | receive 5 | after 6 | $1 -> $0 7 | end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/rec: -------------------------------------------------------------------------------- 1 | # name: -record(...,{...}). 2 | # key: rec 3 | # -- 4 | -record($1,{$2}). 5 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/try: -------------------------------------------------------------------------------- 1 | # name: try ... of ... catch after end 2 | # key: try 3 | # -- 4 | try $1 of 5 | $0 6 | catch 7 | after 8 | end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/erlang-mode/undef: -------------------------------------------------------------------------------- 1 | # name: -undef(...). 2 | # key: undef 3 | # -- 4 | -undef($1). 5 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | text-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/au: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: automatic 3 | # key: au 4 | # -- 5 | automatic $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/bd: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: block data 3 | # key: bd 4 | # -- 5 | block data $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/c: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: continue 3 | # key: c 4 | # -- 5 | continue $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/ch: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: character 3 | # key: ch 4 | # -- 5 | character $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/cx: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: complex 3 | # key: cx 4 | # -- 5 | complex $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/dc: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: double complex 3 | # key: dc 4 | # -- 5 | double complex $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/do: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: do while (...) end do 3 | # key: do 4 | # -- 5 | do while (${1:condition}) 6 | $0 7 | end do -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/dp: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: double precision 3 | # key: dp 4 | # -- 5 | double precision $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/eq: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: equivalence 3 | # key: eq 4 | # -- 5 | equivalence $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/ib: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: implicit byte 3 | # key: ib 4 | # -- 5 | implicit byte $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/ic: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: implicit complex 3 | # key: ic 4 | # -- 5 | implicit complex $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/ich: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: implicit character 3 | # key: ich 4 | # -- 5 | implicit character $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/if: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: if then end if 3 | # key: if 4 | # -- 5 | if ( ${1:condition} ) then 6 | $0 7 | end if -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/ii: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: implicit integer 3 | # key: ii 4 | # -- 5 | implicit integer $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/il: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: implicit logical 3 | # key: il 4 | # -- 5 | implicit logical $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/in: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: implicit none 3 | # key: in 4 | # -- 5 | implicit none -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/inc: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: include 3 | # key: inc 4 | # -- 5 | include $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/intr: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: intrinsic 3 | # key: intr 4 | # -- 5 | intrinsic $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/ir: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: implicit real 3 | # key: ir 4 | # -- 5 | implicit real $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/l: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: logical 3 | # key: l 4 | # -- 5 | logical $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/pa: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: parameter 3 | # key: pa 4 | # -- 5 | parameter $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/pr: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: program ... end program ... 3 | # key: pr 4 | # -- 5 | program ${1:name} 6 | $0 7 | end program ${1:name} -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/re: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: read (*,*) 3 | # key: re 4 | # -- 5 | read (${1:*},${2:*}) $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/st: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: structure 3 | # key: st 4 | # -- 5 | structure $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/su: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: subroutine 3 | # key: su 4 | # -- 5 | subroutine $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/f90-mode/wr: -------------------------------------------------------------------------------- 1 | # contributor: Li Zhu 2 | # name: write (*,*) 3 | # key: wr 4 | # -- 5 | write (${1:*},${2:*}) $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/.yas-make-groups: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/extensions/yasnippet/snippets/html-mode/.yas-make-groups -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | text-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/b.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee xahlee.org 2 | # name: ... 3 | # key: b 4 | # -- 5 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/body: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: ... 3 | # key: body 4 | # -- 5 | 6 | $0 7 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/br: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:
3 | # key: br 4 | # -- 5 |
-------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/code: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: ... 3 | # key: code 4 | # -- 5 | 6 | $0 7 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/code.class: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: ... 3 | # key: code 4 | # -- 5 | 6 | $0 7 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/div: -------------------------------------------------------------------------------- 1 | # name: ... 2 | # key: div 3 | # -- 4 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/div.class: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:
...
3 | # key: div 4 | # -- 5 |
6 | $0 7 |
-------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/div.id: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:
...
3 | # key: div 4 | # -- 5 |
6 | $0 7 |
-------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/div.id-class: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:
...
3 | # key: div 4 | # -- 5 |
6 | $0 7 |
-------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/dov: -------------------------------------------------------------------------------- 1 | # name: ... 2 | # key: dov 3 | # -- 4 | a mirror up here $3 5 | 6 | 7 | 8 | $0 9 | 10 | 11 | actually some other shit and $3 12 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/form: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | #name :
3 | # key: form 4 | # -- 5 |
6 | $0 7 |
-------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/head: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: ... 3 | # key: head 4 | # -- 5 | 6 | $0 7 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/header/h1: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:

...

3 | # key: h1 4 | # -- 5 |

$1

-------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/header/h2: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:

...

3 | # key: h2 4 | # -- 5 |

$1

-------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/header/h3: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:

...

3 | # key: h3 4 | # -- 5 |

$1

-------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/header/h4: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:

...

3 | # key: h4 4 | # -- 5 |

$1

-------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/header/h5: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:
...
3 | # key: h5 4 | # -- 5 |
$1
-------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/header/h6: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:
...
3 | # key: h6 4 | # -- 5 |
$1
-------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/hr: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:
3 | # key: hr 4 | # -- 5 |
-------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/href: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: ... 3 | # key: href 4 | # -- 5 | $2 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/html: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: ... 3 | # key: html 4 | # -- 5 | 6 | $0 7 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/html.xmlns: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: ... 3 | # key: html 4 | # -- 5 | 6 | $0 7 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/i.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee xahlee.org 2 | # name: ... 3 | # key: i 4 | # -- 5 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/img: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: ... 3 | # key: img 4 | # -- 5 | $3 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/input: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: 3 | # key: input 4 | # -- 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/link.stylesheet: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: 3 | # key: link 4 | # -- 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/link.stylesheet-ie: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: 3 | # key: link 4 | # -- 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/list/dd: -------------------------------------------------------------------------------- 1 | # contributor: Rodrigo Setti 2 | # name:
...
3 | # key: dd 4 | # -- 5 |
$1
-------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/list/dl: -------------------------------------------------------------------------------- 1 | # contributor: Rodrigo Setti 2 | # name:
...
3 | # key: dl 4 | # -- 5 |
6 | $0 7 |
-------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/list/dl.id: -------------------------------------------------------------------------------- 1 | # contributor: Rodrigo Setti 2 | # name:
...
3 | # key: dl 4 | # -- 5 |
6 | $0 7 |
-------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/list/dt: -------------------------------------------------------------------------------- 1 | # contributor: Rodrigo Setti 2 | # name:
...
3 | # key: dt 4 | # -- 5 |
$1
-------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/list/li: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:
  • ...
  • 3 | # key: li 4 | # -- 5 |
  • $1
  • -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/list/li.class: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:
  • ...
  • 3 | # key: li 4 | # -- 5 |
  • $2
  • -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/list/ol: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:
      ...
    3 | # key: ol 4 | # -- 5 |
      6 | $0 7 |
    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/list/ol.class: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:
      ...
    3 | # key: ol 4 | # -- 5 |
      6 | $0 7 |
    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/list/ol.id: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:
      ...
    3 | # key: ol 4 | # -- 5 |
      6 | $0 7 |
    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/list/ul: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:
      ...
    3 | # key: ul 4 | # -- 5 |
      6 | $0 7 |
    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/list/ul.class: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:
      ...
    3 | # key: ul 4 | # -- 5 |
      6 | $0 7 |
    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/list/ul.id: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:
      ...
    3 | # key: ul 4 | # -- 5 |
      6 | $0 7 |
    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/mailto: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: ... 3 | # key: mailto 4 | # -- 5 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/meta/doctype: -------------------------------------------------------------------------------- 1 | # name: Doctype HTML 4.01 Strict 2 | # key: doctype 3 | # -- 4 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/meta/doctype.xhml1: -------------------------------------------------------------------------------- 1 | # name: DocType XHTML 1.0 frameset 2 | # key: doctype 3 | # -- 4 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/meta/doctype.xhtml1_1: -------------------------------------------------------------------------------- 1 | # name: DocType XHTML 1.1 2 | # key: doctype 3 | # -- 4 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/meta/doctype.xhtml1_strict: -------------------------------------------------------------------------------- 1 | # name: DocType XHTML 1.0 Strict 2 | # key: doctype 3 | # -- 4 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/meta/doctype.xhtml1_transitional: -------------------------------------------------------------------------------- 1 | # name: DocType XHTML 1.0 Transitional 2 | # key: doctype 3 | # -- 4 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/meta/meta: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: 3 | # key: meta 4 | # -- 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/meta/meta.http-equiv: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: 3 | # key: meta 4 | # -- 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/p: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:

    ...

    3 | # key: p 4 | # -- 5 |

    $1

    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/pre: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:
    ...
    3 | # key: pre 4 | # -- 5 |
    6 |   $0
    7 | 
    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/q.yasnippet: -------------------------------------------------------------------------------- 1 | # contributor: Xah Lee xahlee.org 2 | # name:
    ...
    3 | # key: q 4 | # -- 5 |
    6 | $0 7 |
    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/quote: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name:
    ...
    3 | # key: quote 4 | # -- 5 |
    6 | $1 7 |
    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/script.javascript: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | #name : 3 | # key: script 4 | # -- 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/script.javascript-src: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | #name : 3 | # key: script 4 | # -- 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/span: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: ... 3 | # key: span 4 | # -- 5 | $1 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/span.class: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: ... 3 | # key: span 4 | # -- 5 | $2 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/span.id: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: ... 3 | # key: span 4 | # -- 5 | $2 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/style: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: 3 | # key: style 4 | # -- 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/table/table: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: ...
    3 | # key: table 4 | # -- 5 | 6 | $0 7 |
    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/table/td: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: ... 3 | # key: td 4 | # -- 5 | $2 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/table/th: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: ... 3 | # key: th 4 | # -- 5 | $2 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/table/tr: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: ... 3 | # key: tr 4 | # -- 5 | 6 | $0 7 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/textarea: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: 3 | # key: textarea 4 | # -- 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/html-mode/title: -------------------------------------------------------------------------------- 1 | # contributor: Jimmy Wu 2 | # name: ... 3 | # key: title 4 | # -- 5 | $1 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/latex-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | text-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/latex-mode/begin: -------------------------------------------------------------------------------- 1 | # contributor: Rodrigo Setti 2 | # name: \begin{environment} ... \end{environment} 3 | # key: begin 4 | # -- 5 | 6 | \begin{${1:environment}} 7 | $0 8 | \end{$1} -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/+: -------------------------------------------------------------------------------- 1 | # name: Unordered List 2 | # contributor: Peng Deng 3 | # key: + 4 | # -- 5 | + ${1:Text} 6 | +$0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/-: -------------------------------------------------------------------------------- 1 | # name: Unordered List 2 | # contributor: Peng Deng 3 | # key: - 4 | # -- 5 | - ${1:Text} 6 | -$0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | text-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/_: -------------------------------------------------------------------------------- 1 | # name: Emphasis 2 | # contributor: Peng Deng 3 | # key: _ 4 | # -- 5 | _${1:Text}_ $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/__: -------------------------------------------------------------------------------- 1 | # name: Strong 2 | # contributor: Peng Deng 3 | # key: __ 4 | # -- 5 | **${1:Text}** $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/`: -------------------------------------------------------------------------------- 1 | # name: Inline Code 2 | # contributor: Peng Deng 3 | # key: ` 4 | # -- 5 | \`${1:Code}\` $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/h1.1: -------------------------------------------------------------------------------- 1 | # name: Header 1 (#) 2 | # contributor: Peng Deng 3 | # key: h1 4 | # -- 5 | # ${1:Header 1} # 6 | 7 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/h1.2: -------------------------------------------------------------------------------- 1 | # name: Header 1 (=) 2 | # contributor: Peng Deng 3 | # key: h1 4 | # -- 5 | ${1:Header 1} 6 | ${1:$(make-string (string-width text) ?\=)} 7 | 8 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/h2.1: -------------------------------------------------------------------------------- 1 | # name: Header 2 (##) 2 | # contributor: Peng Deng 3 | # key: h2 4 | # -- 5 | ## ${1:Header 1} ## 6 | 7 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/h2.2: -------------------------------------------------------------------------------- 1 | # name: Header 2 (-) 2 | # contributor: Peng Deng 3 | # key: h2 4 | # -- 5 | ${1:Header 2} 6 | ${1:$(make-string (string-width text) ?\-)} 7 | 8 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/h3: -------------------------------------------------------------------------------- 1 | # name: Header 3 2 | # contributor: Peng Deng 3 | # key: h3 4 | # -- 5 | ### ${1:Header 3} ### 6 | 7 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/h4: -------------------------------------------------------------------------------- 1 | # name: Header 4 2 | # contributor: Peng Deng 3 | # key: h4 4 | # -- 5 | #### ${1:Header 4} #### 6 | 7 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/h5: -------------------------------------------------------------------------------- 1 | # name: Header 5 2 | # contributor: Peng Deng 3 | # key: h5 4 | # -- 5 | ##### ${1:Header 5} ##### 6 | 7 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/h6: -------------------------------------------------------------------------------- 1 | # name: Header 6 2 | # contributor: Peng Deng 3 | # key: h6 4 | # -- 5 | ###### ${1:Header 6} ###### 6 | 7 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/hr.1: -------------------------------------------------------------------------------- 1 | # name: Horizontal Rule (-) 2 | # contributor: Peng Deng 3 | # key: hr 4 | # -- 5 | 6 | ---------- 7 | 8 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/hr.2: -------------------------------------------------------------------------------- 1 | # name: Horizontal Rule (*) 2 | # contributor: Peng Deng 3 | # key: hr 4 | # -- 5 | 6 | ******* 7 | 8 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/img: -------------------------------------------------------------------------------- 1 | # name: Image 2 | # contributor: Peng Deng 3 | # key: img 4 | # -- 5 | ![${1:Alt Text}](${2:URL} $3) $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/link: -------------------------------------------------------------------------------- 1 | # name: Link 2 | # contributor: Peng Deng 3 | # key: link 4 | # -- 5 | [${1:Link Text}](${2:URL} $3) $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/ol: -------------------------------------------------------------------------------- 1 | # name: Ordered List 2 | # contributor: Peng Deng 3 | # key: ol 4 | # -- 5 | ${1:1}. ${2:Text} 6 | ${1:$(number-to-string (1+ (string-to-number text)))}. $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/rimg: -------------------------------------------------------------------------------- 1 | # name: Referenced Image 2 | # contributor: Peng Deng 3 | # key: rimg 4 | # -- 5 | ![${1:Alt Text}][$2] $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/rlb: -------------------------------------------------------------------------------- 1 | # name: Reference Label 2 | # contributor: Peng Deng 3 | # key: rlb 4 | # -- 5 | [${1:Reference}]: ${2:URL} $3 6 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/markdown-mode/rlink: -------------------------------------------------------------------------------- 1 | # name: Reference Link 2 | # contributor: Peng Deng 3 | # key: rlink 4 | # -- 5 | [${1:Link Text}][$2] $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/.yas-make-groups: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/extensions/yasnippet/snippets/nxml-mode/.yas-make-groups -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | text-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/body: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: ... 3 | # key: body 4 | # -- 5 | 6 | $0 7 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/br: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name:
    3 | # key: br 4 | # -- 5 |
    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/code: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: ... 3 | # key: code 4 | # -- 5 | 6 | $0 7 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/div: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: ... 3 | # key: div 4 | # -- 5 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/form: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | #name :
    3 | # key: form 4 | # -- 5 |
    6 | $0 7 |
    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/head: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: ... 3 | # key: head 4 | # -- 5 | 6 | $0 7 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/header/h1: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name:

    ...

    3 | # key: h1 4 | # -- 5 |

    $1

    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/header/h2: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name:

    ...

    3 | # key: h2 4 | # -- 5 |

    $1

    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/header/h3: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name:

    ...

    3 | # key: h3 4 | # -- 5 |

    $1

    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/header/h4: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name:

    ...

    3 | # key: h4 4 | # -- 5 |

    $1

    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/header/h5: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name:
    ...
    3 | # key: h5 4 | # -- 5 |
    $1
    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/header/h6: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name:
    ...
    3 | # key: h6 4 | # -- 5 |
    $1
    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/hr: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name:
    3 | # key: hr 4 | # -- 5 |
    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/href: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: ... 3 | # key: href 4 | # -- 5 | $2 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/html: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: ... 3 | # key: html 4 | # -- 5 | 6 | $0 7 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/img: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: ... 3 | # key: img 4 | # -- 5 | $2 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/input: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: 3 | # key: input 4 | # -- 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/li: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name:
  • ...
  • 3 | # key: li 4 | # -- 5 |
  • $1
  • -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/link: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: 3 | # key: link 4 | # -- 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/meta/doctype: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: DocType XHTML 1.1 3 | # key: doctype 4 | # -- 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/meta/doctype.xhtml1_strict: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: DocType XHTML 1.0 Strict 3 | # key: doctype 4 | # -- 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/meta/doctype.xhtml1_transitional: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: DocType XHTML 1.0 Transitional 3 | # key: doctype 4 | # -- 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/meta/meta: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: 3 | # key: meta 4 | # -- 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/name: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: 3 | # key: name 4 | # -- 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/ol: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name:
      ...
    3 | # key: ol 4 | # -- 5 |
      6 | $0 7 |
    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/p: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name:

    ...

    3 | # key: p 4 | # -- 5 |

    $1

    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/pre: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name:
    ...
    3 | # key: pre 4 | # -- 5 |
    6 |   $0
    7 | 
    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/quote: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name:
    ...
    3 | # key: quote 4 | # -- 5 |
    6 | $1 7 |
    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/span: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: ... 3 | # key: span 4 | # -- 5 | $1 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/style: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: 3 | # key: style 4 | # -- 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/table: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: ...
    3 | # key: table 4 | # -- 5 | 6 | $0 7 |
    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/tag.1l: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: ... 3 | # key: tag 4 | # -- 5 | <${1:tag}>$2$0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/tag.2l: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: \n...\n 3 | # key: tag 4 | # -- 5 | <${1:tag}> 6 | $2 7 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/td: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: ... 3 | # key: td 4 | # -- 5 | $2 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/th: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: ... 3 | # key: th 4 | # -- 5 | $2 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/title: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: ... 3 | # key: title 4 | # -- 5 | $1 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/tr: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name: ... 3 | # key: tr 4 | # -- 5 | 6 | $0 7 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/nxml-mode/ul: -------------------------------------------------------------------------------- 1 | # contributor: Anders Bach Nielsen 2 | # name:
      ...
    3 | # key: ul 4 | # -- 5 |
      6 | $0 7 |
    -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/objc-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | cc-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/objc-mode/prop: -------------------------------------------------------------------------------- 1 | # name: foo { ... } ; setFoo { ... } 2 | # key: prop 3 | # -- 4 | - (${1:id})${2:foo} 5 | { 6 | return $2; 7 | } 8 | 9 | - (void)set${2:$(capitalize text)}:($1)aValue 10 | { 11 | [$2 autorelease]; 12 | $2 = [aValue retain]; 13 | } 14 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/perl-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | text-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/perl-mode/eval: -------------------------------------------------------------------------------- 1 | # name: eval { ... } if ($@) { ... } 2 | # key: eval 3 | # -- 4 | eval { 5 | ${1:# do something risky...} 6 | }; 7 | if (\$@) { 8 | ${2:# handle failure...} 9 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/perl-mode/for: -------------------------------------------------------------------------------- 1 | # name: for (...) { ... } 2 | # key: for 3 | # -- 4 | for (my \$${1:var} = 0; \$$1 < ${2:expression}; \$$1++) { 5 | ${3:# body...} 6 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/perl-mode/fore: -------------------------------------------------------------------------------- 1 | # name: foreach ... { ... } 2 | # key: fore 3 | # -- 4 | foreach my \$${1:x} (@${2:array}) { 5 | ${3:# body...} 6 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/perl-mode/if: -------------------------------------------------------------------------------- 1 | # name: if (...) { ... } 2 | # key: if 3 | # -- 4 | if ($1) { 5 | $0 6 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/perl-mode/ife: -------------------------------------------------------------------------------- 1 | # name: if (...) { ... } else { ... } 2 | # key: ife 3 | # -- 4 | if ($1) { 5 | $2 6 | } else { 7 | $3 8 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/perl-mode/ifee: -------------------------------------------------------------------------------- 1 | # name: if, elsif, else ... 2 | # key: ifee 3 | # -- 4 | if ($1) { 5 | ${2:# body...} 6 | } elsif ($3) { 7 | ${4:# elsif...} 8 | } else { 9 | ${5:# else...} 10 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/perl-mode/sub: -------------------------------------------------------------------------------- 1 | # name: sub ... { ... } 2 | # key: sub 3 | # -- 4 | sub ${1:function_name} { 5 | $0 6 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/perl-mode/unless: -------------------------------------------------------------------------------- 1 | # name: unless (...) { ... } 2 | # key: unless 3 | # -- 4 | unless ($1) { 5 | $0 6 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/perl-mode/while: -------------------------------------------------------------------------------- 1 | # name: while (...) { ... } 2 | # key: while 3 | # -- 4 | while ($1) { 5 | $0 6 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/perl-mode/xfore: -------------------------------------------------------------------------------- 1 | # name: ... foreach ... 2 | # key: xfore 3 | # -- 4 | ${1:expression} foreach @${2:array}; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/perl-mode/xif: -------------------------------------------------------------------------------- 1 | # name: ... if ... 2 | # key: xif 3 | # -- 4 | ${1:expression} if ${2:condition} -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/perl-mode/xunless: -------------------------------------------------------------------------------- 1 | # name: ... unless ... 2 | # key: xunless 3 | # -- 4 | ${1:expression} unless ${2:condition} -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/perl-mode/xwhile: -------------------------------------------------------------------------------- 1 | # name: ... while ... 2 | # key: xwhile 3 | # -- 4 | ${1:expression} while ${2:condition}; -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | text-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/__: -------------------------------------------------------------------------------- 1 | # name: __...__ 2 | # key: __ 3 | # -- 4 | __${init}__ -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/doc: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # name: doc 3 | # contributor: Gabriele Lanaro 4 | # expand-env ((yas/indent-line 'fixed) 5 | # -- 6 | """$0 7 | """ 8 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/for: -------------------------------------------------------------------------------- 1 | # name: for ... in ... : ... 2 | # key: for 3 | # -- 4 | for ${var} in ${collection}: 5 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/from: -------------------------------------------------------------------------------- 1 | #name : from ... import ... 2 | # -- 3 | from $1 import $2 4 | $0 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/ifmain: -------------------------------------------------------------------------------- 1 | # name: if __name__ == '__main__': ... 2 | # key: ifmain 3 | # -- 4 | if __name__ == '__main__': 5 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/init: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # name: init 3 | # contributor: Gabriele Lanaro 4 | # -- 5 | def __init__(self$1): 6 | $0 7 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/ipdb: -------------------------------------------------------------------------------- 1 | # contributor: Fidel Ramos 2 | # -- 3 | import ipdb; ipdb.set_trace() -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/param: -------------------------------------------------------------------------------- 1 | # -*- mode: snippet -*- 2 | # name: param 3 | # key: param 4 | # condition: 'force-in-comment 5 | # -- 6 | :param $1: $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/pdb: -------------------------------------------------------------------------------- 1 | #contributor : matt harrison 2 | #pdb : import pdb; pdb.set_trace() 3 | # -- 4 | import pdb; pdb.set_trace() 5 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/prop: -------------------------------------------------------------------------------- 1 | # contributor: Mads D. Kristensen 2 | # name: prop 3 | # key: prop 4 | # -- 5 | def ${1:foo}(): 6 | doc = """${2:Doc string}""" 7 | def fget(self): 8 | return self._$1 9 | def fset(self, value): 10 | self._$1 = value 11 | def fdel(self): 12 | del self._$1 13 | return locals() 14 | $1 = property(**$1()) 15 | 16 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/prop.fun: -------------------------------------------------------------------------------- 1 | # contributor: Mads D. Kristensen 2 | # name: prop 3 | # desc: property with fget/fset/fdel 4 | # expand-env: ((yas/indent-line 'fixed) (yas/wrap-around-region 'nil)) 5 | # -- 6 | def ${1:foo}(): 7 | doc = """${2:Doc string}""" 8 | def fget(self): 9 | return self._$1 10 | def fset(self, value): 11 | self._$1 = value 12 | def fdel(self): 13 | del self._$1 14 | return locals() 15 | $1 = property(**$1()) 16 | 17 | $0 18 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/propg: -------------------------------------------------------------------------------- 1 | # contributor: Julio Carlos Menendez 2 | # name: _get_foo ... foo=property(...) 3 | # key: propg 4 | # -- 5 | def _get_${1:foo}(self): 6 | return self._$1 7 | 8 | $1 = property(_get_$1) 9 | 10 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/propsg: -------------------------------------------------------------------------------- 1 | # contributor: Julio Carlos Menendez 2 | # name: _get_foo ... _set_foo ... foo=property(...) 3 | # key: propsg 4 | # -- 5 | def _set_${1:foo}(self, value): 6 | self._$1 = value 7 | 8 | def _get_$1(self): 9 | return self._$1 10 | 11 | $1 = property(_get_$1, _set_$1) 12 | 13 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/super: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # name: super 3 | # contributor: Gabriele Lanaro 4 | # -- 5 | super(${1:`(prev-class-name)`},self).${2:`(prev-def-name)`}(${3:`(prev-def-args)`}) 6 | $0 7 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/testcase: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # name: unittest.TestCase normal 3 | # contributor: Gabriele Lanaro 4 | # -- 5 | class ${1:TestCase}(${2:unittest.TestCase}): 6 | $0 7 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/try.except: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | try: 4 | ${1:pass} 5 | except ${2:Exception}, ${3:e}: 6 | ${4:raise $3} -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/try.exceptelse: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | try: 4 | ${1:pass} 5 | except ${2:Exception}, ${3:e}: 6 | ${4:raise $3} 7 | else: 8 | ${5:pass} -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/try.exceptelsefinally: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | try: 4 | ${1:pass} 5 | except ${2:Exception}, ${3:e}}: 6 | ${4:raise} 7 | else: 8 | ${5:pass} 9 | finally: 10 | ${6:pass} -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/try.exceptfinally: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | try: 4 | ${1:pass} 5 | except ${2:Exception}, ${3:e}: 6 | ${4:raise $3} 7 | finally: 8 | ${5:pass} -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/utf8: -------------------------------------------------------------------------------- 1 | # contributor: Fidel Ramos (haplo) 2 | # -- 3 | # -*- coding: utf-8 -*- 4 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/python-mode/while: -------------------------------------------------------------------------------- 1 | # name: while ... : ... 2 | # key: while 3 | # -- 4 | while ${condition}: 5 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/rst-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | text-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/rst-mode/chap: -------------------------------------------------------------------------------- 1 | # name: Chapter title 2 | # key: chap 3 | # -- 4 | ${1:Chapter} 5 | ${1:$(make-string (string-width text) ?\=)} 6 | 7 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/rst-mode/sec: -------------------------------------------------------------------------------- 1 | # name: Section title 2 | # key: sec 3 | # -- 4 | ${1:Section} 5 | ${1:$(make-string (string-width text) ?\-)} 6 | 7 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/rst-mode/tit: -------------------------------------------------------------------------------- 1 | # name: Document title 2 | # key: tit 3 | # -- 4 | ${1:$(make-string (string-width text) ?\=)} 5 | ${1:Title} 6 | ${1:$(make-string (string-width text) ?\=)} 7 | 8 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/.yas-make-groups: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelanaro/emacs-for-python/2f284d14d03c69adce1dcac9ef3fb297ee95dfa9/extensions/yasnippet/snippets/ruby-mode/.yas-make-groups -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | text-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/collections/all: -------------------------------------------------------------------------------- 1 | # name: all? { |...| ... } 2 | # key: all 3 | # -- 4 | all? { |${e}| $0 } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/collections/any: -------------------------------------------------------------------------------- 1 | # name: any? { |...| ... } 2 | # key: any 3 | # -- 4 | any? { |${e}| $0 } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/collections/classify: -------------------------------------------------------------------------------- 1 | # name: classify { |...| ... } 2 | # key: classify 3 | # -- 4 | classify { |${e}| $0 } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/collections/collect: -------------------------------------------------------------------------------- 1 | # name: collect { |...| ... } 2 | # key: collect 3 | # -- 4 | collect { |${e}| $0 } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/collections/deli: -------------------------------------------------------------------------------- 1 | # name: delete_if { |...| ... } 2 | # key: deli 3 | # -- 4 | delete_if { |${e} $0 } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/collections/det: -------------------------------------------------------------------------------- 1 | # name: detect { |...| ... } 2 | # key: det 3 | # -- 4 | detect { |${e}| $0 } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/collections/ea: -------------------------------------------------------------------------------- 1 | # name: each { |...| ... } 2 | # key: ea 3 | # -- 4 | each { |${e}| $0 } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/collections/eac: -------------------------------------------------------------------------------- 1 | # name: each_cons(...) { |...| ... } 2 | # key: eac 3 | # -- 4 | each_cons(${1:2}) { |${group}| $0 } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/collections/eai: -------------------------------------------------------------------------------- 1 | # name: each_index { |i| ... } 2 | # key: eai 3 | # -- 4 | each_index { |${i}| $0 } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/collections/eav: -------------------------------------------------------------------------------- 1 | # name: each_value { |val| ... } 2 | # key: eav 3 | # -- 4 | each_value { |${val}| $0 } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/collections/eawi: -------------------------------------------------------------------------------- 1 | # name: each_with_index { |e, i| ... } 2 | # key: eawi 3 | # -- 4 | each_with_index { |${e}, ${i}| $0 } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/collections/inject: -------------------------------------------------------------------------------- 1 | # name: inject(...) { |...| ... } 2 | # key: inject 3 | # -- 4 | inject(${1:0}) { |${2:injection}, ${3:element}| $0 } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/collections/reject: -------------------------------------------------------------------------------- 1 | # name: reject { |...| ... } 2 | # key: reject 3 | # -- 4 | reject { |${1:element}| $0 } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/collections/select: -------------------------------------------------------------------------------- 1 | # name: select { |...| ... } 2 | # key: select 3 | # -- 4 | select { |${1:element}| $0 } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/collections/zip: -------------------------------------------------------------------------------- 1 | #name : zip(...) { |...| ... } 2 | # key: collectionszip 3 | # -- 4 | zip(${enums}) { |${row}| $0 } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/control structure/forin: -------------------------------------------------------------------------------- 1 | # name: for ... in ...; ... end 2 | # key: forin 3 | # -- 4 | for ${1:element} in ${2:collection} 5 | $0 6 | end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/control structure/if: -------------------------------------------------------------------------------- 1 | # name: if ... end 2 | # key: if 3 | # -- 4 | if ${1:condition} 5 | $0 6 | end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/control structure/ife: -------------------------------------------------------------------------------- 1 | # name: if ... else ... end 2 | # key: ife 3 | # -- 4 | if ${1:condition} 5 | $2 6 | else 7 | $3 8 | end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/control structure/tim: -------------------------------------------------------------------------------- 1 | # name: times { |n| ... } 2 | # key: tim 3 | # -- 4 | times { |${n}| $0 } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/control structure/until: -------------------------------------------------------------------------------- 1 | # name: until ... end 2 | # key: until 3 | # -- 4 | until ${condition} 5 | $0 6 | end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/control structure/upt: -------------------------------------------------------------------------------- 1 | # name: upto(...) { |n| ... } 2 | # key: upt 3 | # -- 4 | upto(${n}) { |${i}| 5 | $0 6 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/control structure/when: -------------------------------------------------------------------------------- 1 | # name: when ... end 2 | # key: when 3 | # -- 4 | when ${condition} 5 | $0 6 | end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/control structure/while: -------------------------------------------------------------------------------- 1 | # name: while ... end 2 | # key: while 3 | # -- 4 | while ${condition} 5 | $0 6 | end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/definitions/Comp: -------------------------------------------------------------------------------- 1 | # name: include Comparable; def <=> ... end 2 | # key: Comp 3 | # -- 4 | include Comparable 5 | 6 | def <=> other 7 | $0 8 | end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/definitions/am: -------------------------------------------------------------------------------- 1 | # name: alias_method new, old 2 | # key: am 3 | # -- 4 | alias_method :${new_name}, :${old_name} -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/definitions/cla: -------------------------------------------------------------------------------- 1 | # name: class << self ... end 2 | # key: cla 3 | # -- 4 | class << ${self} 5 | $0 6 | end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/definitions/cls: -------------------------------------------------------------------------------- 1 | # name: class ... end 2 | # contributor: hitesh 3 | # key: cls 4 | # -- 5 | class ${1:`(let ((fn (capitalize (file-name-nondirectory 6 | (file-name-sans-extension 7 | (or (buffer-file-name) 8 | (buffer-name (current-buffer)))))))) 9 | (cond 10 | ((string-match "_" fn) (replace-match "" nil nil fn)) 11 | (t fn)))`} 12 | $0 13 | end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/definitions/mm: -------------------------------------------------------------------------------- 1 | # name: def method_missing ... end 2 | # key: mm 3 | # -- 4 | def method_missing(method, *args) 5 | $0 6 | end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/definitions/r: -------------------------------------------------------------------------------- 1 | # name: attr_reader ... 2 | # key: r 3 | # -- 4 | attr_reader : -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/definitions/rw: -------------------------------------------------------------------------------- 1 | # name: attr_accessor ... 2 | # key: rw 3 | # -- 4 | attr_accessor : -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/definitions/w: -------------------------------------------------------------------------------- 1 | # name: attr_writer ... 2 | # key: w 3 | # -- 4 | attr_writer : -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/general/#: -------------------------------------------------------------------------------- 1 | # name: # => 2 | # key: # 3 | # -- 4 | # => -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/general/=b: -------------------------------------------------------------------------------- 1 | # name: =begin rdoc ... =end 2 | # key: =b 3 | # -- 4 | =begin rdoc 5 | $0 6 | =end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/general/app: -------------------------------------------------------------------------------- 1 | # name: if __FILE__ == $PROGRAM_NAME ... end 2 | # key: app 3 | # -- 4 | if __FILE__ == $PROGRAM_NAME 5 | $0 6 | end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/general/bm: -------------------------------------------------------------------------------- 1 | # name: Benchmark.bmbm(...) do ... end 2 | # key: bm 3 | # -- 4 | Benchmark.bmbm(${1:10}) do |x| 5 | $0 6 | end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/general/case: -------------------------------------------------------------------------------- 1 | # name: case ... end 2 | # key: case 3 | # -- 4 | case ${1:object} 5 | when ${2:condition} 6 | $0 7 | end -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/general/dee: -------------------------------------------------------------------------------- 1 | # name: deep_copy(...) 2 | # key: dee 3 | # -- 4 | Marshal.load(Marshal.dump($0)) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/general/rb: -------------------------------------------------------------------------------- 1 | # name: /usr/bin/ruby -wKU 2 | # key: rb 3 | # -- 4 | #!/usr/bin/ruby -wKU -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/general/req: -------------------------------------------------------------------------------- 1 | # name: require "..." 2 | # key: req 3 | # -- 4 | require "$0" -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/general/rreq: -------------------------------------------------------------------------------- 1 | # name: require File.join(File.dirname(__FILE__), ...) 2 | # key: rreq 3 | # -- 4 | require File.join(File.dirname(__FILE__), $0) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/ruby-mode/general/y: -------------------------------------------------------------------------------- 1 | # name: :yields: arguments (rdoc) 2 | # key: y 3 | # -- 4 | :yields: $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | text-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/act: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: def act = { ..} 3 | # key: act 4 | # -- 5 | def act = { 6 | loop { 7 | react { 8 | $0 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/act.arg: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: def act(arg: T) = { ..} 3 | # key: act 4 | # -- 5 | def act(${1:arg}: ${2:type}) = { 6 | loop { 7 | react { 8 | $0 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/actor: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: val a = actor { ..} 3 | # key: actor 4 | # -- 5 | val a = actor { 6 | loop { 7 | react { 8 | $0 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/ano: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: (args) => ... 3 | # key: ano 4 | # -- 5 | ($1) => ${2:body} $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/app: -------------------------------------------------------------------------------- 1 | # Author: Anders Bach Nielsen 2 | # name: object name extends Application 3 | # key: app 4 | # -- 5 | object ${1:name} extends Application { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/arr.new: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: Array[T](..) 3 | # key: arr 4 | # -- 5 | Array[${1:value}](${2:args}) $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/arr.val-new: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: val a = Array[T](..) 3 | # key: arr 4 | # -- 5 | val ${1:arr} = Array[${2:value}](${3:args}) $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/asof: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: asInstanceOf[T] 3 | # key: asof 4 | # -- 5 | asInstanceOf[${1:type}] $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/ass: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: assert(x === y) 3 | # key: ass 4 | # -- 5 | assert(${1:x} === ${2:y}) $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/ass.true: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: assert(true) 3 | # key: ass 4 | # -- 5 | assert(true) $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/at.author: -------------------------------------------------------------------------------- 1 | # Author: Anders Bach Nielsen 2 | # name: @author name 3 | # key: at 4 | # -- 5 | @author ${1:name} $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/at.param: -------------------------------------------------------------------------------- 1 | # Author: Anders Bach Nielsen 2 | # name: @param name description 3 | # key: at 4 | # -- 5 | @param ${1:name} ${2:description} $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/at.return: -------------------------------------------------------------------------------- 1 | # Author: Anders Bach Nielsen 2 | # name: @return description 3 | # key: at 4 | # -- 5 | @return ${1:description} $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/at.version: -------------------------------------------------------------------------------- 1 | # Author: Anders Bach Nielsen 2 | # name: @version number 3 | # key: at 4 | # -- 5 | @version ${1:0.1} $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/bang: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: actor ! message 3 | # key: bang 4 | # -- 5 | ${1:actor} ! ${2:message} $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/case: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: case pattern => 3 | # key: case 4 | # -- 5 | case ${1:pattern} => $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/case.match-all: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: case _ => 3 | # key: case 4 | # -- 5 | case _ => $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/cast: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: asInstanceOf[T] 3 | # key: cast 4 | # -- 5 | asInstanceOf[${1:type}] $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/cc: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: case class T(arg: A) 3 | # key: cc 4 | # -- 5 | case class ${1:name}(${2:arg}: ${3:type}) $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/cl: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: class T { .. } 3 | # key: cl 4 | # -- 5 | class ${1:name} { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/cl.abs: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: abstract class T { .. } 3 | # key: cl 4 | # -- 5 | abstract class ${1:name} { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/cl.abs-arg: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: abstract class T(args) { .. } 3 | # key: cl 4 | # -- 5 | abstract class ${1:name}(${2:args}) { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/cl.arg: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: class T(args) { .. } 3 | # key: cl 4 | # -- 5 | class ${1:name}(${2:args}) { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/clof: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: classOf[T] 3 | # key: clof 4 | # -- 5 | classOf[${1:type}] $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/co: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: case object T 3 | # key: co 4 | # -- 5 | case object ${1:name} $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/cons: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: element1 :: element2 3 | # key: cons 4 | # -- 5 | ${1:element1} :: ${2:element2} $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/cons.nil: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: element1 :: Nil 3 | # key: cons 4 | # -- 5 | ${1:element1} :: Nil $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/def.arg: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: def f(arg: T) = ... 3 | # key: def 4 | # -- 5 | def ${1:name}(${2:args}) = $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/def.arg-body: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: def f(arg: T) = {...} 3 | # key: def 4 | # -- 5 | def ${1:name}(${2:args}) = { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/def.arg-ret: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: def f(arg: T): R = ... 3 | # key: def 4 | # -- 5 | def ${1:name}(${2:args}): ${3:Unit} = $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/def.arg-ret-body: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: def f(arg: T): R = {...} 3 | # key: def 4 | # -- 5 | def ${1:name}(${2:args}): ${3:Unit} = { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/def.body: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: def f = {...} 3 | # key: def 4 | # -- 5 | def ${1:name} = { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/def.ret: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: def f: R = ... 3 | # key: def 4 | # -- 5 | def ${1:name}: ${2:Unit} = $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/def.ret-body: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: def f: R = {...} 3 | # key: def 4 | # -- 5 | def ${1:name}: ${3:Unit} = { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/def.simple: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: def f = ... 3 | # key: def 4 | # -- 5 | def ${1:name} = $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/doc.class: -------------------------------------------------------------------------------- 1 | # Author: Anders Bach Nielsen 2 | # name: /** cls/trt/obj name */ 3 | # key: doc 4 | # -- 5 | /** 6 | * `(scala-mode-find-clstrtobj-name-doc)` 7 | * ${1:description} 8 | * $0 9 | */ -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/doc.def: -------------------------------------------------------------------------------- 1 | # Author: Anders Bach Nielsen 2 | # name: /** method name */ 3 | # key: doc 4 | # -- 5 | /** 6 | * `(scala-mode-def-and-args-doc)` 7 | */ -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/doc.file: -------------------------------------------------------------------------------- 1 | # Author: Anders Bach Nielsen 2 | # name: /** file name */ 3 | # key: doc 4 | # -- 5 | /** 6 | * `(scala-mode-file-doc)` 7 | * $0 8 | * @author ${1:name} 9 | * @version ${2:0.1} 10 | */ -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/doc.file-scala: -------------------------------------------------------------------------------- 1 | # Author: Anders Bach Nielsen 2 | # name: /** scala file */ 3 | # key: doc 4 | # -- 5 | /* __ *\ 6 | ** ________ ___ / / ___ Scala $3 ** 7 | ** / __/ __// _ | / / / _ | (c) 2005-`(format-time-string "%Y")` , LAMP/EPFL ** 8 | ** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** 9 | ** /____/\___/_/ |_/____/_/ | | ** 10 | ** |/ ** 11 | \* */ 12 | /** 13 | * $0 14 | * @author ${1:name} 15 | * @version ${2:0.1} 16 | * $Id$ 17 | */ -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/doc.file-scala-api: -------------------------------------------------------------------------------- 1 | # Author: Anders Bach Nielsen 2 | # name: /** scala api file */ 3 | # key: doc 4 | # -- 5 | /* __ *\ 6 | ** ________ ___ / / ___ Scala API ** 7 | ** / __/ __// _ | / / / _ | (c) 2005-`(format-time-string "%Y")`, LAMP/EPFL ** 8 | ** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** 9 | ** /____/\___/_/ |_/____/_/ | | ** 10 | ** |/ ** 11 | \* */ 12 | /** 13 | * $0 14 | * @author ${1:name} 15 | * @version ${2:0.1} 16 | * $Id$ 17 | */ -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/doc.scaladoc: -------------------------------------------------------------------------------- 1 | # Author: Anders Bach Nielsen 2 | # name: /** ... */ 3 | # key: doc 4 | # -- 5 | /** 6 | * ${1:description} 7 | * $0 8 | */ -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/expect: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: expect(value) { ..} 3 | # key: expect 4 | # -- 5 | expect(${1:reply}) { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/ext: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: extends T 3 | # key: ext 4 | # -- 5 | extends $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/for.extract: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: x <- xs 3 | # key: for 4 | # -- 5 | ${1:x} <- ${2:xs} -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/for.if: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: for (x <- xs if guard) { ... } 3 | # key: for 4 | # -- 5 | for (${1:x} <- ${2:xs} if ${3:guard}) { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/for.loop: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: for (x <- xs) { ... } 3 | # key: for 4 | # -- 5 | for (${1:x} <- ${2:xs}) { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/for.multi: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: for {x <- xs \ y <- ys} { yield } 3 | # key: for 4 | # -- 5 | for { 6 | ${1:x} <- ${2:xs} 7 | ${3:x} <- ${4:xs} 8 | } { 9 | yield $0 10 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/foreach: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: foreach(x => ..) 3 | # key: foreach 4 | # -- 5 | foreach(${1:x} => ${2:body}) $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/hmap.new: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: new HashMap[K, V] 3 | # key: hmap 4 | # -- 5 | new HashMap[${1:key}, ${2:value}] $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/hmap.val-new: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: val m = new HashMap[K, V] 3 | # key: hmap 4 | # -- 5 | val ${1:m} = new HashMap[${2:key}, ${3:value}] $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/hset.new: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: new HashSet[K] 3 | # key: hset 4 | # -- 5 | new HashSet[${1:key}] $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/hset.val-new: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: val m = new HashSet[K] 3 | # key: hset 4 | # -- 5 | val ${1:m} = new HashSet[${2:key}] $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/if: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: if (cond) { .. } 3 | # key: if 4 | # -- 5 | if (${1:condition}) { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/if.else: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: if (cond) { .. } else { .. } 3 | # key: if 4 | # -- 5 | if (${1:condition}) { 6 | $2 7 | } else { 8 | $0 9 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/imp: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: import .. 3 | # key: imp 4 | # -- 5 | import $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/intercept: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: intercept(classOf[T]) { ..} 3 | # key: intercept 4 | # -- 5 | intercept(classOf[${1:Exception]}) { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/isof: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: isInstanceOf[T] 3 | # key: isof 4 | # -- 5 | isInstanceOf[${1:type}] $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/ls.new: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: List(..) 3 | # key: ls 4 | # -- 5 | List(${1:args}, ${2:args}) $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/ls.val-new: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: val l = List(..) 3 | # key: ls 4 | # -- 5 | val ${1:l} = List(${2:args}, ${3:args}) $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/main: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: def main(args: Array[String]) = { ... } 3 | # key: main 4 | # -- 5 | def main(args: Array[String]) = { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/map: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: map(x => ..) 3 | # key: map 4 | # -- 5 | map(${1:x} => ${2:body}) $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/map.new: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: Map(key -> value) 3 | # key: map 4 | # -- 5 | Map(${1:key} -> ${2:value}) $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/match: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: cc match { .. } 3 | # key: match 4 | # -- 5 | ${1:cc} match { 6 | case ${2:pattern} => $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/match.can: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: can match { case Full(res) => .. } 3 | # key: match 4 | # -- 5 | ${1:option} match { 6 | case Full(res) => $0 7 | 8 | case Empty => 9 | 10 | case Failure(msg, _, _) => 11 | 12 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/match.option: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: option match { case None => .. } 3 | # key: match 4 | # -- 5 | ${1:option} match { 6 | case None => $0 7 | case Some(res) => 8 | 9 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/mix: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: trait T { .. } 3 | # key: mix 4 | # -- 5 | trait ${1:name} { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/ob: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: object name extends T 3 | # key: ob 4 | # -- 5 | object ${1:name} extends ${2:type} $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/pac: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: package .. 3 | # key: pac 4 | # -- 5 | package $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/pr.newline: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: println(..) 3 | # key: pr 4 | # -- 5 | println(${1:obj}) $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/pr.simple: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: print(..) 3 | # key: pr 4 | # -- 5 | print(${1:obj}) $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/pr.string: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: println("..") 3 | # key: pr 4 | # -- 5 | println("${1:msg}") $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/pr.trace: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: println("obj: " + obj) 3 | # key: pr 4 | # -- 5 | println("${1:obj}: " + ${1:obj}) $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/pri: -------------------------------------------------------------------------------- 1 | #Author : Jonas Bonèr 2 | #name : private 3 | # key: pri 4 | # -- 5 | private $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/pri.param: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: private[this] 3 | # key: pri 4 | # -- 5 | private[${1:this}] $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/pro: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: protected 3 | # key: pro 4 | # -- 5 | protected $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/pro.param: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: protected[this] 3 | # key: pro 4 | # -- 5 | protected[${1:this}] $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/suite: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: class T extends Suite { .. } 3 | # key: suite 4 | # -- 5 | import org.scalatest._ 6 | 7 | class ${1:name} extends Suite { 8 | $0 9 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/test: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: @Test def testX = ... 3 | # key: test 4 | # -- 5 | //@Test 6 | def test${1:name} = { 7 | $0 8 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/throw: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: throw new Exception 3 | # key: throw 4 | # -- 5 | throw new ${1:Exception}(${2:msg}) $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/tr: -------------------------------------------------------------------------------- 1 | # Author: Anders Bach Nielsen 2 | # name: trait T { .. } 3 | # key: tr 4 | # -- 5 | trait ${1:name} { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/tr.ext: -------------------------------------------------------------------------------- 1 | # Author: Anders Bach Nielsen 2 | # name: trait T extends C { .. } 3 | # key: tr 4 | # -- 5 | trait ${1:name} extends ${2:class} { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/tr.ext-with: -------------------------------------------------------------------------------- 1 | # Author: Anders Bach Nielsen 2 | # name: trait T1 extends C with T2 { .. } 3 | # key: tr 4 | # -- 5 | trait ${1:name} extends ${2:class} with ${3:trait} { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/tr.with: -------------------------------------------------------------------------------- 1 | # Author: Anders Bach Nielsen 2 | # name: trait T1 with T2 { .. } 3 | # key: tr 4 | # -- 5 | trait ${1:name} with ${2:trait} { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/try: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: try { .. } catch { case e => ..} 3 | # key: try 4 | # -- 5 | try { 6 | $0 7 | } catch { 8 | case ${1:e}: ${2:Exception} => 9 | ${1:println(\"ERROR: \" + e) // TODO: handle exception}\n} 10 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/try.catch-finally: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: try { .. } catch { case e => ..} finally { ..} 3 | # key: try 4 | # -- 5 | try { 6 | $0 7 | } catch { 8 | case ${1:e}: ${2:Exception} => 9 | ${1:println(\"ERROR: \" + e) // TODO: handle exception}\n} 10 | } finally { 11 | 12 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/try.finally: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: try { .. } finally { .. } 3 | # key: try 4 | # -- 5 | try { 6 | 7 | } finally { 8 | $0 9 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/tup.arrow: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: element1 -> element2 3 | # key: tup 4 | # -- 5 | ${1:element1} -> ${2:element2} $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/tup.paren: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: (element1, element2) 3 | # key: tup 4 | # -- 5 | (${1:element1}, ${2:element2}) $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/val: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: val name = .. 3 | # key: val 4 | # -- 5 | val ${1:name} = ${2:obj} $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/val.new: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: val name = new .. 3 | # key: val 4 | # -- 5 | val ${1:name} = new ${2:obj} $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/val.ret: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: val name: T = .. 3 | # key: val 4 | # -- 5 | val ${1:name}: ${2:T} = ${3:obj} $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/var: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: var name = .. 3 | # key: var 4 | # -- 5 | var ${1:name} = ${2:obj} $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/var.new: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: var name = new .. 3 | # key: var 4 | # -- 5 | var ${1:name} = new ${2:obj} $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/var.ret: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: var name: T = .. 3 | # key: var 4 | # -- 5 | var ${1:name}: ${2:T} = ${3:obj} $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/whi: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: while(cond) { .. } 3 | # key: whi 4 | # -- 5 | while (${1:condition}) { 6 | $0 7 | } -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/scala-mode/with: -------------------------------------------------------------------------------- 1 | # Author: Jonas Bonèr 2 | # name: with T 3 | # key: with 4 | # -- 5 | with $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/snippet-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | text-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/snippet-mode/field: -------------------------------------------------------------------------------- 1 | # name: ${ ... } field 2 | # contributor: joaotavora 3 | # key: $f 4 | # key: field 5 | # -- 6 | \${${1:${2:n}:}$3${4:\$(${5:lisp-fn})}\}$0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/snippet-mode/mirror: -------------------------------------------------------------------------------- 1 | # name: ${n:$(...)} mirror 2 | # key: $m 3 | # contributor: joaotavora 4 | # key: mirror 5 | # -- 6 | \${${2:n}:${4:\$(${5:reflection-fn})}\}$0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/snippet-mode/vars: -------------------------------------------------------------------------------- 1 | # -*- mode: snippet -*- 2 | # name: Snippet header 3 | # contributor: joaotavora 4 | # key: vars 5 | # -- 6 | # name: $1${2: 7 | # key: ${3:trigger-key}}${4: 8 | # keybinding: ${5:keybinding}}${6: 9 | # expand-env: (${7:})} 10 | # contributor: $6 11 | # -- 12 | $0 -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/sql-mode/.yas-parents: -------------------------------------------------------------------------------- 1 | text-mode 2 | -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/sql-mode/column: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: , ColumnName ColumnType NOT NULL... 3 | # key: column 4 | # -- 5 | , ${1:Name} ${2:Type} ${3:NOT NULL} -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/sql-mode/constraint: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: CONSTRAINT [..] PRIMARY KEY ... 3 | # key: constraint 4 | # -- 5 | CONSTRAINT [${1:PK_Name}] PRIMARY KEY ${2:CLUSTERED} ([${3:ColumnName}]) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/sql-mode/constraint.1: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: CONSTRAINT [..] FOREIGN KEY ... 3 | # key: constraint 4 | # -- 5 | CONSTRAINT [${1:FK_Name}] FOREIGN KEY ${2:CLUSTERED} ([${3:ColumnName}]) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/sql-mode/create: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: create table ... 3 | # key: create 4 | # -- 5 | CREATE TABLE [${1:dbo}].[${2:TableName}] 6 | ( 7 | ${3:Id} ${4:INT IDENTITY(1,1)} ${5:NOT NULL} 8 | $0 9 | CONSTRAINT [${6:PK_}] PRIMARY KEY ${7:CLUSTERED} ([$3]) 10 | ) 11 | GO -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/sql-mode/create.1: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: create procedure ... 3 | # key: create 4 | # -- 5 | CREATE PROCEDURE [${1:dbo}].[${2:Name}] 6 | ( 7 | $3 $4 = ${5:NULL} ${6:OUTPUT} 8 | ) 9 | AS 10 | BEGIN 11 | $0 12 | END 13 | GO -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/sql-mode/references: -------------------------------------------------------------------------------- 1 | # contributor: Alejandro Espinoza Esparza 2 | # name: REFERENCES ... 3 | # key: references 4 | # -- 5 | REFERENCES ${1:TableName}([${2:ColumnName}]) -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/text-mode/email: -------------------------------------------------------------------------------- 1 | # name: (user's email) 2 | # key: email 3 | # -- 4 | `(replace-regexp-in-string "@" "@NOSPAM." user-mail-address)` -------------------------------------------------------------------------------- /extensions/yasnippet/snippets/text-mode/time: -------------------------------------------------------------------------------- 1 | # name: (current time) 2 | # key: time 3 | # -- 4 | `(current-time-string)` -------------------------------------------------------------------------------- /python-libs/rope/__init__.py: -------------------------------------------------------------------------------- 1 | """rope, a python refactoring library""" 2 | 3 | INFO = __doc__ 4 | VERSION = '0.9.3' 5 | COPYRIGHT = """\ 6 | Copyright (C) 2006-2010 Ali Gholami Rudi 7 | Copyright (C) 2009-2010 Anton Gritsay 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of GNU General Public License as published by the 11 | Free Software Foundation; either version 2 of the license, or (at your 12 | opinion) any later version. 13 | 14 | This program is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details.""" 18 | -------------------------------------------------------------------------------- /python-libs/rope/base/__init__.py: -------------------------------------------------------------------------------- 1 | """Base rope package 2 | 3 | This package contains rope core modules that are used by other modules 4 | and packages. 5 | 6 | """ 7 | 8 | __all__ = ['project', 'libutils', 'exceptions'] 9 | -------------------------------------------------------------------------------- /python-libs/rope/contrib/__init__.py: -------------------------------------------------------------------------------- 1 | """rope IDE tools package 2 | 3 | This package contains modules that can be used in IDEs 4 | but do not depend on the UI. So these modules will be used 5 | by `rope.ui` modules. 6 | 7 | """ 8 | -------------------------------------------------------------------------------- /python-libs/ropemode/__init__.py: -------------------------------------------------------------------------------- 1 | """ropemode, a helper for using rope refactoring library in IDEs""" 2 | 3 | INFO = __doc__ 4 | VERSION = '0.1-rc2' 5 | COPYRIGHT = """\ 6 | Copyright (C) 2007-2008 Ali Gholami Rudi 7 | 8 | This program is free software; you can redistribute it and/or modify it 9 | under the terms of GNU General Public License as published by the 10 | Free Software Foundation; either version 2 of the license, or (at your 11 | opinion) any later version. 12 | 13 | This program is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details.""" 17 | -------------------------------------------------------------------------------- /scripts/mypylint.sh: -------------------------------------------------------------------------------- 1 | pylint -f parseable -r n $1 2 | exit 0 3 | -------------------------------------------------------------------------------- /snippets/django/html-mode/block: -------------------------------------------------------------------------------- 1 | #contributor : Fidel Ramos 2 | #name : {% block ... %}...{% endblock %} 3 | # -- 4 | {% block $1 %} 5 | $2 6 | {% endblock %} -------------------------------------------------------------------------------- /snippets/django/html-mode/blocktrans: -------------------------------------------------------------------------------- 1 | #contributor : Fidel Ramos 2 | #name : {% blocktrans %}...{% endblocktrans %} 3 | # -- 4 | {% blocktrans %}$1{% endblocktrans %} -------------------------------------------------------------------------------- /snippets/django/html-mode/blocktrans.with: -------------------------------------------------------------------------------- 1 | #contributor : Fidel Ramos 2 | #name : {% blocktrans with ... %}...{% endblocktrans %} 3 | # -- 4 | {% blocktrans with $1 %}$2{% endblocktrans %} -------------------------------------------------------------------------------- /snippets/django/html-mode/ifelse: -------------------------------------------------------------------------------- 1 | #contributor : Fidel Ramos 2 | #name : {% if ... %}...{% else %}...{% endif %} 3 | # -- 4 | {% if $1 %} 5 | $2 6 | {% else %} 7 | $3 8 | {% endif %} -------------------------------------------------------------------------------- /snippets/django/html-mode/trans: -------------------------------------------------------------------------------- 1 | #contributor : Fidel Ramos 2 | #name : {% trans "..." %} 3 | # -- 4 | {% trans "$1" %} -------------------------------------------------------------------------------- /snippets/django/python-mode/auto: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.AutoField() -------------------------------------------------------------------------------- /snippets/django/python-mode/boolean: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.BooleanField(${2:default=True}) -------------------------------------------------------------------------------- /snippets/django/python-mode/char: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.CharField(${2:blank=True}, max_length=${3:100}) -------------------------------------------------------------------------------- /snippets/django/python-mode/commaseparatedinteger: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.CommaSeparatedIntegerField(max_length=$2) -------------------------------------------------------------------------------- /snippets/django/python-mode/date: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.DateField(${2:default=datetime.datetime.today}) -------------------------------------------------------------------------------- /snippets/django/python-mode/decimal: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.DecimalField(max_digits=$2, decimal_places=$3) -------------------------------------------------------------------------------- /snippets/django/python-mode/dtime: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.DateTimeField(${2:editable=False}) -------------------------------------------------------------------------------- /snippets/django/python-mode/email: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.EmailField() -------------------------------------------------------------------------------- /snippets/django/python-mode/file: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.FileField(upload_to=${1:/path/for/upload}) -------------------------------------------------------------------------------- /snippets/django/python-mode/filepath: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.FilePathField(path="${1:/location/of/choices}"${2:, match="${3:regex}"}${4:, recursive=True}) -------------------------------------------------------------------------------- /snippets/django/python-mode/fk: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.ForeignKey(${2:RELATED_MODEL}) -------------------------------------------------------------------------------- /snippets/django/python-mode/float: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.FloatField() -------------------------------------------------------------------------------- /snippets/django/python-mode/image: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.ImageField(upload_to="${2:/dir/path}"${3:, height_field=$4}${5:, width_field=$6}) -------------------------------------------------------------------------------- /snippets/django/python-mode/integer: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.IntegerField(${2:blank=True, null=True}) -------------------------------------------------------------------------------- /snippets/django/python-mode/ipaddress: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.IPAddressField(${2:blank=True}) -------------------------------------------------------------------------------- /snippets/django/python-mode/manytomany: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.ManyToManyField(${2:RELATED_MODEL}) -------------------------------------------------------------------------------- /snippets/django/python-mode/model: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | class ${1:Modelname}(models.Model): 4 | $0 5 | 6 | def __unicode__(self): 7 | return self.{$2:unicode_value} -------------------------------------------------------------------------------- /snippets/django/python-mode/nullboolean: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.NullBooleanField(${2:default=True}) -------------------------------------------------------------------------------- /snippets/django/python-mode/phonenumber: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.PhoneNumberField(${2:blank=True}) -------------------------------------------------------------------------------- /snippets/django/python-mode/positiveinteger: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.PositiveIntegerField(${2:blank=True, null=True}) -------------------------------------------------------------------------------- /snippets/django/python-mode/positivesmallinteger: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.PositiveSmallIntegerField(${2:blank=True, null=True}) -------------------------------------------------------------------------------- /snippets/django/python-mode/sendmail: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | mail.send_mail("${1:Subject}", "${2:Message}", "${3:from@example.com}", ${4:["to@example.com"]}${5:, fail_silently=True}) 4 | -------------------------------------------------------------------------------- /snippets/django/python-mode/slug: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:slug} = models.SlugField() -------------------------------------------------------------------------------- /snippets/django/python-mode/smallinteger: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.SmallIntegerField(${2:blank=True, null=True}) -------------------------------------------------------------------------------- /snippets/django/python-mode/text: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.TextField(${2:blank=True}) -------------------------------------------------------------------------------- /snippets/django/python-mode/time: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.TimeField(${2:blank=True}) -------------------------------------------------------------------------------- /snippets/django/python-mode/url: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.URLField(${2:blank=True}, verify_exists=${3:True}) -------------------------------------------------------------------------------- /snippets/django/python-mode/xml: -------------------------------------------------------------------------------- 1 | # This was cloned from a TextMate bundle for yasnippet. 2 | # -- 3 | ${1:FIELDNAME} = models.XMLField(schema_path=${2:/path/to/RelaxNG}${3:, blank=True}) --------------------------------------------------------------------------------