Skip to content
Browse files

Lots of changes

  • Loading branch information...
1 parent b4a6935 commit ace0b1dcb2996be541120056a33097cc13b1a314 @pedz committed May 26, 2012
Showing with 13,911 additions and 6,943 deletions.
  1. +1 −0 .gitignore
  2. +11 −9 init.el
  3. +0 −1 nxhtml/nxhtml/nxhtml-autoload.el
  4. +0 −3,421 others/espresso.el
  5. +0 −3,332 others/js.el
  6. +11,644 −0 others/js2-mode.el
  7. +43 −0 pedz/prvm.el
  8. +1 −1 ruby/rvm
  9. +6 −146 setups/javascript-setup.el
  10. +58 −33 setups/rails-setup.el
  11. +6 −0 setups/yasnippet-setup.el
  12. +251 −0 yasnippet/dropdown-list.el
  13. +3 −0 yasnippet/snippets/text-mode/cc-mode/c++-mode/beginend
  14. +8 −0 yasnippet/snippets/text-mode/cc-mode/c++-mode/class
  15. +3 −0 yasnippet/snippets/text-mode/cc-mode/c++-mode/ns
  16. +3 −0 yasnippet/snippets/text-mode/cc-mode/c++-mode/template
  17. +4 −0 yasnippet/snippets/text-mode/cc-mode/c++-mode/using
  18. +3 −0 yasnippet/snippets/text-mode/cc-mode/c-mode/fopen
  19. +6 −0 yasnippet/snippets/text-mode/cc-mode/c-mode/printf
  20. +7 −0 yasnippet/snippets/text-mode/cc-mode/csharp-mode/attrib
  21. +21 −0 yasnippet/snippets/text-mode/cc-mode/csharp-mode/attrib.1
  22. +21 −0 yasnippet/snippets/text-mode/cc-mode/csharp-mode/attrib.2
  23. +21 −0 yasnippet/snippets/text-mode/cc-mode/csharp-mode/class
  24. +6 −0 yasnippet/snippets/text-mode/cc-mode/csharp-mode/comment
  25. +4 −0 yasnippet/snippets/text-mode/cc-mode/csharp-mode/comment.1
  26. +4 −0 yasnippet/snippets/text-mode/cc-mode/csharp-mode/comment.2
  27. +4 −0 yasnippet/snippets/text-mode/cc-mode/csharp-mode/comment.3
  28. +10 −0 yasnippet/snippets/text-mode/cc-mode/csharp-mode/method
  29. +7 −0 yasnippet/snippets/text-mode/cc-mode/csharp-mode/namespace
  30. +16 −0 yasnippet/snippets/text-mode/cc-mode/csharp-mode/prop
  31. +6 −0 yasnippet/snippets/text-mode/cc-mode/csharp-mode/region
  32. +4 −0 yasnippet/snippets/text-mode/cc-mode/csharp-mode/using
  33. +4 −0 yasnippet/snippets/text-mode/cc-mode/csharp-mode/using.1
  34. +4 −0 yasnippet/snippets/text-mode/cc-mode/csharp-mode/using.2
  35. +6 −0 yasnippet/snippets/text-mode/cc-mode/do
  36. +6 −0 yasnippet/snippets/text-mode/cc-mode/for
  37. +6 −0 yasnippet/snippets/text-mode/cc-mode/if
  38. +3 −0 yasnippet/snippets/text-mode/cc-mode/inc
  39. +3 −0 yasnippet/snippets/text-mode/cc-mode/inc.1
  40. +7 −0 yasnippet/snippets/text-mode/cc-mode/main
  41. +13 −0 yasnippet/snippets/text-mode/cc-mode/objc-mode/prop
  42. +8 −0 yasnippet/snippets/text-mode/cc-mode/once
  43. +6 −0 yasnippet/snippets/text-mode/cc-mode/struct
  44. +3 −0 yasnippet/snippets/text-mode/css-mode/bg
  45. +3 −0 yasnippet/snippets/text-mode/css-mode/bg.1
  46. +3 −0 yasnippet/snippets/text-mode/css-mode/bor
  47. +4 −0 yasnippet/snippets/text-mode/css-mode/cl
  48. +4 −0 yasnippet/snippets/text-mode/css-mode/disp.block
  49. +4 −0 yasnippet/snippets/text-mode/css-mode/disp.inline
  50. +4 −0 yasnippet/snippets/text-mode/css-mode/disp.none
  51. +4 −0 yasnippet/snippets/text-mode/css-mode/ff
  52. +4 −0 yasnippet/snippets/text-mode/css-mode/fs
  53. +4 −0 yasnippet/snippets/text-mode/css-mode/mar.bottom
  54. +4 −0 yasnippet/snippets/text-mode/css-mode/mar.left
  55. +4 −0 yasnippet/snippets/text-mode/css-mode/mar.mar
  56. +4 −0 yasnippet/snippets/text-mode/css-mode/mar.margin
  57. +4 −0 yasnippet/snippets/text-mode/css-mode/mar.right
  58. +4 −0 yasnippet/snippets/text-mode/css-mode/mar.top
  59. +4 −0 yasnippet/snippets/text-mode/css-mode/pad.bottom
  60. +4 −0 yasnippet/snippets/text-mode/css-mode/pad.left
  61. +4 −0 yasnippet/snippets/text-mode/css-mode/pad.pad
  62. +4 −0 yasnippet/snippets/text-mode/css-mode/pad.padding
  63. +4 −0 yasnippet/snippets/text-mode/css-mode/pad.right
  64. +4 −0 yasnippet/snippets/text-mode/css-mode/pad.top
  65. +11 −0 yasnippet/snippets/text-mode/emacs-lisp-mode/.read_me
  66. +11 −0 yasnippet/snippets/text-mode/emacs-lisp-mode/defun
  67. +16 −0 yasnippet/snippets/text-mode/emacs-lisp-mode/dired.process_marked
  68. +17 −0 yasnippet/snippets/text-mode/emacs-lisp-mode/file.process
  69. +17 −0 yasnippet/snippets/text-mode/emacs-lisp-mode/file.read-lines
  70. +17 −0 yasnippet/snippets/text-mode/emacs-lisp-mode/find-replace
  71. +4 −0 yasnippet/snippets/text-mode/emacs-lisp-mode/grabstring
  72. +4 −0 yasnippet/snippets/text-mode/emacs-lisp-mode/grabthing
  73. +6 −0 yasnippet/snippets/text-mode/emacs-lisp-mode/traverse_dir
  74. +27 −0 yasnippet/snippets/text-mode/emacs-lisp-mode/word-or-region
  75. +3 −0 yasnippet/snippets/text-mode/email
  76. +4 −0 yasnippet/snippets/text-mode/erlang-mode/after
  77. +5 −0 yasnippet/snippets/text-mode/erlang-mode/begin
  78. +4 −0 yasnippet/snippets/text-mode/erlang-mode/beh
  79. +5 −0 yasnippet/snippets/text-mode/erlang-mode/case
  80. +4 −0 yasnippet/snippets/text-mode/erlang-mode/compile
  81. +4 −0 yasnippet/snippets/text-mode/erlang-mode/def
  82. +5 −0 yasnippet/snippets/text-mode/erlang-mode/exp
  83. +3 −0 yasnippet/snippets/text-mode/erlang-mode/fun
  84. +6 −0 yasnippet/snippets/text-mode/erlang-mode/if
  85. +5 −0 yasnippet/snippets/text-mode/erlang-mode/ifdef
  86. +5 −0 yasnippet/snippets/text-mode/erlang-mode/ifndef
  87. +5 −0 yasnippet/snippets/text-mode/erlang-mode/imp
  88. +4 −0 yasnippet/snippets/text-mode/erlang-mode/inc
  89. +4 −0 yasnippet/snippets/text-mode/erlang-mode/inc.lib
  90. +8 −0 yasnippet/snippets/text-mode/erlang-mode/loop
  91. +6 −0 yasnippet/snippets/text-mode/erlang-mode/mod
  92. +5 −0 yasnippet/snippets/text-mode/erlang-mode/rcv
  93. +6 −0 yasnippet/snippets/text-mode/erlang-mode/rcv.after
  94. +4 −0 yasnippet/snippets/text-mode/erlang-mode/rec
  95. +7 −0 yasnippet/snippets/text-mode/erlang-mode/try
  96. +4 −0 yasnippet/snippets/text-mode/erlang-mode/undef
  97. +4 −0 yasnippet/snippets/text-mode/f90-mode/au
  98. +4 −0 yasnippet/snippets/text-mode/f90-mode/bd
  99. +4 −0 yasnippet/snippets/text-mode/f90-mode/c
  100. +4 −0 yasnippet/snippets/text-mode/f90-mode/ch
  101. +4 −0 yasnippet/snippets/text-mode/f90-mode/cx
  102. +4 −0 yasnippet/snippets/text-mode/f90-mode/dc
  103. +6 −0 yasnippet/snippets/text-mode/f90-mode/do
  104. +4 −0 yasnippet/snippets/text-mode/f90-mode/dp
  105. +4 −0 yasnippet/snippets/text-mode/f90-mode/eq
  106. +4 −0 yasnippet/snippets/text-mode/f90-mode/ib
  107. +4 −0 yasnippet/snippets/text-mode/f90-mode/ic
  108. +4 −0 yasnippet/snippets/text-mode/f90-mode/ich
  109. +6 −0 yasnippet/snippets/text-mode/f90-mode/if
  110. +4 −0 yasnippet/snippets/text-mode/f90-mode/ii
  111. +4 −0 yasnippet/snippets/text-mode/f90-mode/il
  112. +4 −0 yasnippet/snippets/text-mode/f90-mode/in
  113. +4 −0 yasnippet/snippets/text-mode/f90-mode/inc
  114. +4 −0 yasnippet/snippets/text-mode/f90-mode/intr
  115. +4 −0 yasnippet/snippets/text-mode/f90-mode/ir
  116. +4 −0 yasnippet/snippets/text-mode/f90-mode/l
  117. +4 −0 yasnippet/snippets/text-mode/f90-mode/pa
  118. +6 −0 yasnippet/snippets/text-mode/f90-mode/pr
  119. +4 −0 yasnippet/snippets/text-mode/f90-mode/re
  120. +4 −0 yasnippet/snippets/text-mode/f90-mode/st
  121. +4 −0 yasnippet/snippets/text-mode/f90-mode/su
  122. +4 −0 yasnippet/snippets/text-mode/f90-mode/wr
  123. +6 −0 yasnippet/snippets/text-mode/html-mode/body
  124. +4 −0 yasnippet/snippets/text-mode/html-mode/br
  125. +6 −0 yasnippet/snippets/text-mode/html-mode/code
  126. +6 −0 yasnippet/snippets/text-mode/html-mode/code.class
  127. +5 −0 yasnippet/snippets/text-mode/html-mode/dd
  128. +3 −0 yasnippet/snippets/text-mode/html-mode/div
  129. +6 −0 yasnippet/snippets/text-mode/html-mode/div.class
  130. +6 −0 yasnippet/snippets/text-mode/html-mode/div.id
  131. +6 −0 yasnippet/snippets/text-mode/html-mode/div.id-class
  132. +7 −0 yasnippet/snippets/text-mode/html-mode/dl
  133. +7 −0 yasnippet/snippets/text-mode/html-mode/dl.id
  134. +4 −0 yasnippet/snippets/text-mode/html-mode/doctype
  135. +4 −0 yasnippet/snippets/text-mode/html-mode/doctype.xhml1
  136. +4 −0 yasnippet/snippets/text-mode/html-mode/doctype.xhtml1_1
  137. +4 −0 yasnippet/snippets/text-mode/html-mode/doctype.xhtml1_strict
  138. +4 −0 yasnippet/snippets/text-mode/html-mode/doctype.xhtml1_transitional
  139. +11 −0 yasnippet/snippets/text-mode/html-mode/dov
  140. +5 −0 yasnippet/snippets/text-mode/html-mode/dt
  141. +6 −0 yasnippet/snippets/text-mode/html-mode/form
  142. +5 −0 yasnippet/snippets/text-mode/html-mode/h1
  143. +5 −0 yasnippet/snippets/text-mode/html-mode/h2
  144. +5 −0 yasnippet/snippets/text-mode/html-mode/h3
  145. +5 −0 yasnippet/snippets/text-mode/html-mode/h4
  146. +5 −0 yasnippet/snippets/text-mode/html-mode/h5
  147. +5 −0 yasnippet/snippets/text-mode/html-mode/h6
  148. +6 −0 yasnippet/snippets/text-mode/html-mode/head
  149. +4 −0 yasnippet/snippets/text-mode/html-mode/hr
  150. +4 −0 yasnippet/snippets/text-mode/html-mode/href
  151. +6 −0 yasnippet/snippets/text-mode/html-mode/html
  152. +6 −0 yasnippet/snippets/text-mode/html-mode/html.xmlns
  153. +4 −0 yasnippet/snippets/text-mode/html-mode/img
  154. +4 −0 yasnippet/snippets/text-mode/html-mode/input
  155. +5 −0 yasnippet/snippets/text-mode/html-mode/li
  156. +5 −0 yasnippet/snippets/text-mode/html-mode/li.class
  157. +4 −0 yasnippet/snippets/text-mode/html-mode/link.stylesheet
  158. +6 −0 yasnippet/snippets/text-mode/html-mode/link.stylesheet-ie
  159. +4 −0 yasnippet/snippets/text-mode/html-mode/mailto
  160. +5 −0 yasnippet/snippets/text-mode/html-mode/meta
  161. +5 −0 yasnippet/snippets/text-mode/html-mode/meta.http-equiv
  162. +7 −0 yasnippet/snippets/text-mode/html-mode/ol
  163. +7 −0 yasnippet/snippets/text-mode/html-mode/ol.class
  164. +7 −0 yasnippet/snippets/text-mode/html-mode/ol.id
  165. +4 −0 yasnippet/snippets/text-mode/html-mode/p
  166. +6 −0 yasnippet/snippets/text-mode/html-mode/pre
  167. +6 −0 yasnippet/snippets/text-mode/html-mode/quote
  168. +6 −0 yasnippet/snippets/text-mode/html-mode/script.javascript
  169. +4 −0 yasnippet/snippets/text-mode/html-mode/script.javascript-src
  170. +4 −0 yasnippet/snippets/text-mode/html-mode/span
  171. +4 −0 yasnippet/snippets/text-mode/html-mode/span.class
  172. +4 −0 yasnippet/snippets/text-mode/html-mode/span.id
  173. +6 −0 yasnippet/snippets/text-mode/html-mode/style
  174. +7 −0 yasnippet/snippets/text-mode/html-mode/table
  175. +5 −0 yasnippet/snippets/text-mode/html-mode/td
  176. +4 −0 yasnippet/snippets/text-mode/html-mode/textarea
  177. +5 −0 yasnippet/snippets/text-mode/html-mode/th
  178. +4 −0 yasnippet/snippets/text-mode/html-mode/title
  179. +7 −0 yasnippet/snippets/text-mode/html-mode/tr
  180. +7 −0 yasnippet/snippets/text-mode/html-mode/ul
  181. +7 −0 yasnippet/snippets/text-mode/html-mode/ul.class
  182. +7 −0 yasnippet/snippets/text-mode/html-mode/ul.id
  183. 0 yasnippet/snippets/text-mode/jasmine/.yas-ignore-filenames-as-triggers
  184. +98 −0 yasnippet/snippets/text-mode/jasmine/.yas-setup.el
  185. +10 −0 yasnippet/snippets/text-mode/jasmine/after each.yasnippet
  186. +8 −0 yasnippet/snippets/text-mode/jasmine/any.yasnippet
  187. +10 −0 yasnippet/snippets/text-mode/jasmine/before each.yasnippet
  188. +10 −0 yasnippet/snippets/text-mode/jasmine/describe.yasnippet
  189. +8 −0 yasnippet/snippets/text-mode/jasmine/expect not to be defined.yasnippet
  190. +8 −0 yasnippet/snippets/text-mode/jasmine/expect not to be falsy.yasnippet
  191. +8 −0 yasnippet/snippets/text-mode/jasmine/expect not to be null.yasnippet
  192. +8 −0 yasnippet/snippets/text-mode/jasmine/expect not to be truthy.yasnippet
  193. +8 −0 yasnippet/snippets/text-mode/jasmine/expect not to contain.yasnippet
  194. +8 −0 yasnippet/snippets/text-mode/jasmine/expect not to equal.yasnippet
  195. +8 −0 yasnippet/snippets/text-mode/jasmine/expect not to match.yasnippet
  196. +8 −0 yasnippet/snippets/text-mode/jasmine/expect not.yasnippet
  197. +8 −0 yasnippet/snippets/text-mode/jasmine/expect to be defined.yasnippet
  198. +8 −0 yasnippet/snippets/text-mode/jasmine/expect to be falsy.yasnippet
  199. +8 −0 yasnippet/snippets/text-mode/jasmine/expect to be null.yasnippet
  200. +8 −0 yasnippet/snippets/text-mode/jasmine/expect to be truthy.yasnippet
  201. +8 −0 yasnippet/snippets/text-mode/jasmine/expect to contain.yasnippet
  202. +8 −0 yasnippet/snippets/text-mode/jasmine/expect to equal.yasnippet
  203. +8 −0 yasnippet/snippets/text-mode/jasmine/expect to match.yasnippet
  204. +8 −0 yasnippet/snippets/text-mode/jasmine/expect was called with.yasnippet
  205. +8 −0 yasnippet/snippets/text-mode/jasmine/expect was called.yasnippet
  206. +8 −0 yasnippet/snippets/text-mode/jasmine/expect was not called with.yasnippet
  207. +8 −0 yasnippet/snippets/text-mode/jasmine/expect was not called.yasnippet
  208. +8 −0 yasnippet/snippets/text-mode/jasmine/expect.yasnippet
  209. +10 −0 yasnippet/snippets/text-mode/jasmine/it.yasnippet
  210. +10 −0 yasnippet/snippets/text-mode/jasmine/runs.yasnippet
  211. +8 −0 yasnippet/snippets/text-mode/jasmine/spy on and call fake.yasnippet
  212. +8 −0 yasnippet/snippets/text-mode/jasmine/spy on and call through.yasnippet
  213. +8 −0 yasnippet/snippets/text-mode/jasmine/spy on and return.yasnippet
  214. +8 −0 yasnippet/snippets/text-mode/jasmine/spy on and throw.yasnippet
  215. +8 −0 yasnippet/snippets/text-mode/jasmine/spy on.yasnippet
  216. +8 −0 yasnippet/snippets/text-mode/jasmine/waits.yasnippet
  217. +7 −0 yasnippet/snippets/text-mode/latex-mode/begin
  218. +5 −0 yasnippet/snippets/text-mode/markdown-mode/+
  219. +5 −0 yasnippet/snippets/text-mode/markdown-mode/-
  220. +4 −0 yasnippet/snippets/text-mode/markdown-mode/_
  221. +4 −0 yasnippet/snippets/text-mode/markdown-mode/__
  222. +4 −0 yasnippet/snippets/text-mode/markdown-mode/`
  223. +6 −0 yasnippet/snippets/text-mode/markdown-mode/h1.1
  224. +7 −0 yasnippet/snippets/text-mode/markdown-mode/h1.2
  225. +6 −0 yasnippet/snippets/text-mode/markdown-mode/h2.1
  226. +7 −0 yasnippet/snippets/text-mode/markdown-mode/h2.2
  227. +6 −0 yasnippet/snippets/text-mode/markdown-mode/h3
  228. +6 −0 yasnippet/snippets/text-mode/markdown-mode/h4
  229. +6 −0 yasnippet/snippets/text-mode/markdown-mode/h5
  230. +6 −0 yasnippet/snippets/text-mode/markdown-mode/h6
  231. +7 −0 yasnippet/snippets/text-mode/markdown-mode/hr.1
  232. +7 −0 yasnippet/snippets/text-mode/markdown-mode/hr.2
  233. +4 −0 yasnippet/snippets/text-mode/markdown-mode/img
  234. +4 −0 yasnippet/snippets/text-mode/markdown-mode/link
  235. +5 −0 yasnippet/snippets/text-mode/markdown-mode/ol
  236. +4 −0 yasnippet/snippets/text-mode/markdown-mode/rimg
  237. +5 −0 yasnippet/snippets/text-mode/markdown-mode/rlb
  238. +4 −0 yasnippet/snippets/text-mode/markdown-mode/rlink
  239. +6 −0 yasnippet/snippets/text-mode/nxml-mode/body
  240. +4 −0 yasnippet/snippets/text-mode/nxml-mode/br
  241. +6 −0 yasnippet/snippets/text-mode/nxml-mode/code
  242. +4 −0 yasnippet/snippets/text-mode/nxml-mode/div
  243. +5 −0 yasnippet/snippets/text-mode/nxml-mode/doctype
  244. +5 −0 yasnippet/snippets/text-mode/nxml-mode/doctype.xhtml1_strict
  245. +5 −0 yasnippet/snippets/text-mode/nxml-mode/doctype.xhtml1_transitional
  246. +6 −0 yasnippet/snippets/text-mode/nxml-mode/form
  247. +5 −0 yasnippet/snippets/text-mode/nxml-mode/h1
  248. +5 −0 yasnippet/snippets/text-mode/nxml-mode/h2
  249. +5 −0 yasnippet/snippets/text-mode/nxml-mode/h3
  250. +5 −0 yasnippet/snippets/text-mode/nxml-mode/h4
  251. +5 −0 yasnippet/snippets/text-mode/nxml-mode/h5
  252. +5 −0 yasnippet/snippets/text-mode/nxml-mode/h6
  253. +6 −0 yasnippet/snippets/text-mode/nxml-mode/head
  254. +4 −0 yasnippet/snippets/text-mode/nxml-mode/hr
  255. +4 −0 yasnippet/snippets/text-mode/nxml-mode/href
  256. +6 −0 yasnippet/snippets/text-mode/nxml-mode/html
  257. +4 −0 yasnippet/snippets/text-mode/nxml-mode/img
  258. +4 −0 yasnippet/snippets/text-mode/nxml-mode/input
  259. +4 −0 yasnippet/snippets/text-mode/nxml-mode/li
  260. +4 −0 yasnippet/snippets/text-mode/nxml-mode/link
  261. +5 −0 yasnippet/snippets/text-mode/nxml-mode/meta
  262. +4 −0 yasnippet/snippets/text-mode/nxml-mode/name
  263. +6 −0 yasnippet/snippets/text-mode/nxml-mode/ol
  264. +4 −0 yasnippet/snippets/text-mode/nxml-mode/p
  265. +6 −0 yasnippet/snippets/text-mode/nxml-mode/pre
  266. +6 −0 yasnippet/snippets/text-mode/nxml-mode/quote
  267. +4 −0 yasnippet/snippets/text-mode/nxml-mode/span
  268. +6 −0 yasnippet/snippets/text-mode/nxml-mode/style
  269. +6 −0 yasnippet/snippets/text-mode/nxml-mode/table
  270. +4 −0 yasnippet/snippets/text-mode/nxml-mode/tag.1l
  271. +6 −0 yasnippet/snippets/text-mode/nxml-mode/tag.2l
  272. +4 −0 yasnippet/snippets/text-mode/nxml-mode/td
  273. +4 −0 yasnippet/snippets/text-mode/nxml-mode/th
  274. +4 −0 yasnippet/snippets/text-mode/nxml-mode/title
  275. +6 −0 yasnippet/snippets/text-mode/nxml-mode/tr
  276. +6 −0 yasnippet/snippets/text-mode/nxml-mode/ul
  277. +8 −0 yasnippet/snippets/text-mode/perl-mode/eval
  278. +5 −0 yasnippet/snippets/text-mode/perl-mode/for
  279. +5 −0 yasnippet/snippets/text-mode/perl-mode/fore
  280. +5 −0 yasnippet/snippets/text-mode/perl-mode/if
  281. +7 −0 yasnippet/snippets/text-mode/perl-mode/ife
  282. +9 −0 yasnippet/snippets/text-mode/perl-mode/ifee
  283. +5 −0 yasnippet/snippets/text-mode/perl-mode/sub
  284. +5 −0 yasnippet/snippets/text-mode/perl-mode/unless
  285. +5 −0 yasnippet/snippets/text-mode/perl-mode/while
  286. +3 −0 yasnippet/snippets/text-mode/perl-mode/xfore
  287. +3 −0 yasnippet/snippets/text-mode/perl-mode/xif
  288. +3 −0 yasnippet/snippets/text-mode/perl-mode/xunless
  289. +3 −0 yasnippet/snippets/text-mode/perl-mode/xwhile
  290. +3 −0 yasnippet/snippets/text-mode/python-mode/__
  291. +54 −0 yasnippet/snippets/text-mode/python-mode/class
  292. +35 −0 yasnippet/snippets/text-mode/python-mode/def
  293. +33 −0 yasnippet/snippets/text-mode/python-mode/defm
  294. +4 −0 yasnippet/snippets/text-mode/python-mode/for
  295. +4 −0 yasnippet/snippets/text-mode/python-mode/ifmain
  296. +15 −0 yasnippet/snippets/text-mode/python-mode/prop
  297. +9 −0 yasnippet/snippets/text-mode/python-mode/propg
  298. +12 −0 yasnippet/snippets/text-mode/python-mode/propsg
  299. +4 −0 yasnippet/snippets/text-mode/python-mode/while
  300. +6 −0 yasnippet/snippets/text-mode/rst-mode/chap
Sorry, we could not display the entire diff because too many files (451) changed.
View
1 .gitignore
@@ -1,2 +1,3 @@
*.elc
xhtml-loader.rnc
+tramp
View
20 init.el
@@ -21,10 +21,10 @@ current buffer which is assumed to be *scratch*"
;; Set by emacs' customizing routines -- don't change directly
(custom-set-variables
- ;; custom-set-variables was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
+ ;; custom-set-variables was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
'(ansi-color-for-comint-mode t)
'(ansi-color-names-vector ["black" "red" "green" "yellow" "blue" "magenta" "darkturquoise" "white"])
'(case-fold-search nil)
@@ -36,6 +36,7 @@ current buffer which is assumed to be *scratch*"
'(ecb-tip-of-the-day nil)
'(ecb-wget-setup (quote ("Please_add_wget_to_your_path_or_set_the_fullpath_to_wget" . other)))
'(exec-path (quote ("/usr/bin" "/bin" "/usr/sbin" "/sbin" "/Applications/Emacs.app/Contents/MacOS/libexec" "/Applications/Emacs.app/Contents/MacOS/bin" "/usr/local/bin")))
+ '(explicit-bash-args (quote ("--noediting" "--login" "-i")))
'(ido-mode (quote both) nil (ido))
'(inhibit-startup-screen t)
'(major-mode (quote text-mode))
@@ -57,10 +58,10 @@ current buffer which is assumed to be *scratch*"
;; Ditto from above -- don't change by hand.
(custom-set-faces
- ;; custom-set-faces was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
+ ;; custom-set-faces was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
'(flymake-errline ((((class color)) (:background "DarkRed"))))
'(flymake-warnline ((((class color)) (:background "DarkOrange"))))
'(mmm-code-submode-face ((t (:foreground "Plum"))))
@@ -76,7 +77,7 @@ current buffer which is assumed to be *scratch*"
;; (require 'cedet-setup)
;; (require 'ecb-setup)
(require 'ruby-setup)
-;;(require 'rails-setup)
+(require 'rails-setup)
;; These load as a result of rails mode...
;; (require 'flyspell)
@@ -105,6 +106,7 @@ current buffer which is assumed to be *scratch*"
(eq window-system 'ns))
(require 'mac-setup))
(require 'pedz)
+(require 'yasnippet-setup)
;; This gets loaded because of ido at the first find file so lets just
;; load it now and get it over with.
(require 'tramp)
View
1 nxhtml/nxhtml/nxhtml-autoload.el
@@ -138,7 +138,6 @@ order."
(add-to-list mode-list (cons (car rec) nxmode))))))))
(add-to-list 'auto-mode-alist '("\\.lzx\\'" . laszlo-nxml-mumamo-mode))
- (add-to-list 'auto-mode-alist '("\\.js\\'" . javascript-mode))
(add-to-list 'auto-mode-alist '("\\.css\\'" . css-mode))
(add-to-list 'auto-mode-alist '("\\.rnc\\'" . rnc-mode))
View
3,421 others/espresso.el
0 additions, 3,421 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
3,332 others/js.el
0 additions, 3,332 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
11,644 others/js2-mode.el
11,644 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
43 pedz/prvm.el
@@ -0,0 +1,43 @@
+;;
+;; Simple routines to help use prvm
+;;
+
+;;;###autoload
+(defun delete-path-elements (regexp)
+ "Deletes elements matching REGEXP from the user's PATH environment variable"
+ ; Set new PATH environment variable to...
+ (setenv "PATH"
+ ; the concatination of the elements separated by ":" of ...
+ (mapconcat
+ ; all of the elements that remain after the delq which ...
+ (function (lambda (x) x))
+ ; deletes the nil elements which are ...
+ (delq nil
+ ; mappings of each car to either nil if it matches
+ ; the regular expression else or itself if it does not...
+ (mapcar
+ (function (lambda (path)
+ (if (string-match regexp path)
+ nil
+ path)))
+ ; starting from the PATH environment variable split by ":"
+ (split-string (getenv "PATH") ":")))
+ ":")))
+
+;;;###autoload
+(defun prepend-path (path)
+ "Prepends PATH to the user's PATH environment variable"
+ (save-match-data
+ ; Get PATH environment variable and see if the first path is dot
+ (let* ((temp (getenv "PATH"))
+ (had-leading-dot (string-match "^\\.:" temp)))
+ ; If first path element is dot, then remove it
+ (if had-leading-dot
+ (setq temp (replace-match "" nil nil temp)))
+ ; prepend new path element to front
+ (setq temp (concat path ":" temp))
+ ; if first path element was dot (before), then add it back on
+ (if had-leading-dot
+ (setq temp (concat ".:" temp)))
+ ; set this as the new PATH environment variable
+ (setenv "PATH" temp))))
2 ruby/rvm
@@ -1 +1 @@
-Subproject commit d0b545791f8967d452c6fac8cc12097e89e9f851
+Subproject commit 40200d914c44e5251dc8d37289860bab05838219
View
152 setups/javascript-setup.el
@@ -1,148 +1,8 @@
-;;; 49javascript.el --- Custom javascript-mode configuration
+(autoload 'js2-mode "js2-mode" "Major mode for editing JavaScript code." t)
+(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
+(add-to-list 'auto-mode-alist '("\\.json\\'" . js2-mode))
-;;; Switched to espresso.el on 05/07/2010
-;;; (add-to-list 'auto-mode-alist '("\\.js\\'" . javascript-mode))
-;;; (autoload 'javascript-mode "javascript" nil t)
-;;; Switched again to js.el since it is in the development tree of emacs 23.
-(autoload #'js-mode "js" "Start js-mode" t)
-(add-to-list 'auto-mode-alist '("\\.js$" . js-mode))
-(add-to-list 'auto-mode-alist '("\\.json$" . js-mode))
-
-;;; Never tested from other guy...
-;;; (require 'javascript-mode)
-;;; (add-to-list 'auto-mode-alist '("\\.js$" . javascript-mode))
-;;;
-;;; (if (condition-case nil
-;;; (symbol-function 'c-block-in-arglist-dwim)
-;;; (error nil))
-;;; (defun javascript-fixed-c-lineup-arglist (langelem)
-;;; (save-excursion
-;;; (if (c-block-in-arglist-dwim (c-langelem-2nd-pos c-syntactic-element))
-;;; 0
-;;; (c-lineup-arglist langelem))))
-;;; (defun javascript-fixed-c-lineup-arglist (langelem)
-;;; (c-lineup-arglist langelem)))
-;;;
-;;;
-;;; ;; Ugghh.... So much trouble w/ what cc-mode allows to control or not. Ended
-;;; ;; up pulling everything in to try to get indentation correct, only to discover
-;;; ;; that cc-mode does not currently allow the style I want. Good thing I don't
-;;; ;; have to do much Javascript programming ATM.
-;;;
-;;; ;; Setup a new "C" style to support this Javascript maddness
-;;; (c-add-style
-;;; "javascript"
-;;; ;; Expand all tabs with appropriate number of spaces
-;;; '((indent-tabs-mode . nil)
-;;; (tab-width . 4)
-;;; (c-basic-offset . 4)
-;;; (fill-column . 79)
-;;; (c-ignore-auto-fill . '(string cpp))
-;;; ;; Most of this isn't necessary, but I don't feel like cleaning it
-;;; (c-hanging-braces-alist . ((defun-open after)
-;;; (defun-close before after)
-;;; (defun-block-intro after)
-;;; (brace-list-intro after)
-;;; (brace-entry-open after)
-;;; (statement-cont after)
-;;; (statement-block-open after)
-;;; (statement-block-intro after)
-;;; (statement-case-open after)
-;;; (extern-lang-open after)
-;;; (namespace-open after)
-;;; (module-open after)
-;;; (composition-open after)
-;;; (inexpr-class-open after)
-;;; (inexpr-class-close before after)
-;;; (class-open after)
-;;; (class-close before after)
-;;; (brace-list-open after)
-;;; (brace-list-close before after)
-;;; (inline-open after)
-;;; (inline-close before after)
-;;; (brace-entry-open after)
-;;; (substatement-open after)
-;;; (brace-entry-open after)
-;;; (block-open after)
-;;; (block-close . c-snug-do-while)
-;;; (else-clause after)
-;;; (arglist-cont-nonempty after)
-;;; (arglist-open after)))
-;;; (c-offsets-alist . ((inexpr-class . 0)
-;;; (inexpr-statement . 0)
-;;; (lambda-intro-cont . 0)
-;;; (inlambda . 0)
-;;; (template-args-cont c-lineup-template-args 0)
-;;; (incomposition . 0)
-;;; (inmodule . 0)
-;;; (innamespace . 0)
-;;; (inextern-lang . 0)
-;;; (composition-close . 0)
-;;; (module-close . 0)
-;;; (namespace-close . 0)
-;;; (extern-lang-close . 0)
-;;; (composition-open . 0)
-;;; (module-open . 0)
-;;; (namespace-open . 0)
-;;; (extern-lang-open . 0)
-;;; (objc-method-call-cont
-;;; . c-lineup-ObjC-method-call)
-;;; (objc-method-args-cont
-;;; . c-lineup-ObjC-method-args)
-;;; (objc-method-intro . [0])
-;;; (friend . 0)
-;;; (cpp-define-intro c-lineup-cpp-define 0)
-;;; (cpp-macro-cont . 0)
-;;; (cpp-macro . [0])
-;;; (inclass . 0)
-;;; (stream-op . c-lineup-streamop)
-;;; (arglist-cont-nonempty
-;;; . javascript-fixed-c-lineup-arglist)
-;;; (arglist-cont . 0)
-;;; (comment-intro
-;;; c-lineup-knr-region-comment
-;;; c-lineup-comment)
-;;; (catch-clause . 0)
-;;; (else-clause . 0)
-;;; (do-while-closure . 0)
-;;; (access-label . -)
-;;; (case-label . 0)
-;;; (substatement . 0)
-;;; (statement-case-intro . 0)
-;;; (statement . 0)
-;;; (brace-entry-open . 0)
-;;; (brace-list-entry . 0)
-;;; (brace-list-intro . +)
-;;; (brace-list-close . 0)
-;;; (block-close . 0)
-;;; (block-open . 0)
-;;; (inher-cont . 0)
-;;; (inher-intro . 0)
-;;; (member-init-cont
-;;; . c-lineup-multi-inher)
-;;; (member-init-intro . 0)
-;;; (topmost-intro-cont . 0)
-;;; (topmost-intro . 0)
-;;; (knr-argdecl . 0)
-;;; (func-decl-cont . 0)
-;;; (inline-close . 0)
-;;; (class-close . 0)
-;;; (class-open . 0)
-;;; (defun-block-intro . +)
-;;; (defun-close . 0)
-;;; (defun-open . 0)
-;;; (c . c-lineup-C-comments)
-;;; (string . c-lineup-dont-change)
-;;; (brace-list-open . 0)
-;;; (inline-open . 0)
-;;; (arglist-close . 0)
-;;; (arglist-intro . 0)
-;;; (statement-cont . 0)
-;;; (statement-case-open . 0)
-;;; (label . +)
-;;; (substatement-label . 2)
-;;; (substatement-open . 0)
-;;; (knr-argdecl-intro . 0)
-;;; (statement-block-intro . +)))))
-;;;
+;(autoload #'js-mode "js" "Start js-mode" t)
+;(add-to-list 'auto-mode-alist '("\\.js$" . js-mode))
+;(add-to-list 'auto-mode-alist '("\\.json$" . js-mode))
(provide 'javascript-setup)
View
91 setups/rails-setup.el
@@ -1,44 +1,69 @@
+;; Hook to trigger yasnappits and jasmine mode within the spec.js
+;; files.
-(require 'rails)
+(defun jasmine-mode ()
+ "Not really a 'mode'"
+ (interactive)
+ (js-mode)
+ (yas/minor-mode t)
+ (setq yas/mode-symbol 'jasmine))
-(autoload 'speedbar-make-specialized-keymap "speedbar")
+(add-hook 'rinari-minor-mode-hook
+ #'(lambda ()
+ (if (and buffer-file-name
+ (string-match-p ".*[Ss]pec\.js" buffer-file-name))
+ (jasmine-mode))))
-(defvar rails-project-stop-regexp
- "\\`/\\.\\.\\./\\'"
- "Regexp that will stop the search up the directory tree for
- config/environment.rb")
+;; Used by rgrep. Now you can say "rails" for the files prompt and
+;; get the files with these suffixs
+(add-to-list 'grep-files-aliases (cons "rails" "*.rb *.erb *.js *.css"))
-(defun rails-project:root ()
- "Return RAILS_ROOT if this file is a part of a Rails application,
-else return nil"
- (let ((curdir (expand-file-name default-directory))
- (max 10)
- (found nil))
- (while (and (not found)
- (> max 0)
- (not (string-match rails-project-stop-regexp curdir)))
- (progn
- (if (file-exists-p (concat curdir "config/environment.rb"))
- (progn
- (setq found t))
- (progn
- (setq curdir (expand-file-name (concat curdir "../")))
- (setq max (- max 1))))))
- (if found (expand-file-name curdir))))
+;; The ";;" code was commented out on 2011/05/28. It was not being
+;; loaded anyway. I have switched to Rinari which gets loaded.
-(defun load-log-file ()
- (interactive)
- (widen)
- (ansi-color-apply-on-region (point-min) (point-max))
- (not-modified)
- (toggle-read-only t))
+;; (require 'rails)
+
+;; (autoload 'speedbar-make-specialized-keymap "speedbar")
+
+;; (defvar rails-project-stop-regexp
+;; "\\`/\\.\\.\\./\\'"
+;; "Regexp that will stop the search up the directory tree for
+;; config/environment.rb")
+
+;; (defun rails-project:root ()
+;; "Return RAILS_ROOT if this file is a part of a Rails application,
+;; else return nil"
+;; (let ((curdir (expand-file-name default-directory))
+;; (max 10)
+;; (found nil))
+;; (while (and (not found)
+;; (> max 0)
+;; (not (string-match rails-project-stop-regexp curdir)))
+;; (progn
+;; (if (file-exists-p (concat curdir "config/environment.rb"))
+;; (progn
+;; (setq found t))
+;; (progn
+;; (setq curdir (expand-file-name (concat curdir "../")))
+;; (setq max (- max 1))))))
+;; (if found (expand-file-name curdir))))
+
+;; (defun load-log-file ()
+;; (interactive)
+;; (widen)
+;; (ansi-color-apply-on-region (point-min) (point-max))
+;; (not-modified)
+;; (toggle-read-only t))
-;; As part of nxhtml mode, we set this:
-(defun erb-load ()
- (eruby-html-mumamo-mode))
+;; ;; As part of nxhtml mode, we set this:
+;; (defun erb-load ()
+;; (eruby-html-mumamo-mode))
-(add-to-list 'auto-mode-alist '("\\.html\\.erb\\'" . erb-load))
+;; (add-to-list 'auto-mode-alist '("\\.html\\.erb\\'" . erb-load))
+;;; This code was already commented out on 2011/05/28. It looks like
+;;; it has some interestings stuff in it.
+;;;
;;; The require rails above pulls in ruby mode and tons of other
;;; stuff. I load my changes to ruby-mode at this time.
;;; (load "ruby-changes")
View
6 setups/yasnippet-setup.el
@@ -0,0 +1,6 @@
+
+(require 'yasnippet)
+(setq yas/root-directory "~/.emacs.d/yasnippet/snippets")
+(yas/load-directory yas/root-directory)
+
+(provide 'yasnippet-setup)
View
251 yasnippet/dropdown-list.el
@@ -0,0 +1,251 @@
+;;; dropdown-list.el --- Drop-down menu interface
+;;
+;; Filename: dropdown-list.el
+;; Description: Drop-down menu interface
+;; Author: Jaeyoun Chung [jay.chung@gmail.com]
+;; Maintainer:
+;; Copyright (C) 2008 Jaeyoun Chung
+;; Created: Sun Mar 16 11:20:45 2008 (Pacific Daylight Time)
+;; Version:
+;; Last-Updated: Sun Mar 16 12:19:49 2008 (Pacific Daylight Time)
+;; By: dradams
+;; Update #: 43
+;; URL: http://www.emacswiki.org/cgi-bin/wiki/dropdown-list.el
+;; Keywords: convenience menu
+;; Compatibility: GNU Emacs 21.x, GNU Emacs 22.x
+;;
+;; Features that might be required by this library:
+;;
+;; `cl'.
+;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;
+;;; Commentary:
+;;
+;; According to Jaeyoun Chung, "overlay code stolen from company-mode.el."
+;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;
+;;; Change log:
+;;
+;; 2008/03/16 dadams
+;; Clean-up - e.g. use char-to-string for control chars removed by email posting.
+;; Moved example usage code (define-key*, command-selector) inside the library.
+;; Require cl.el at byte-compile time.
+;; Added GPL statement.
+;; 2008/01/06 Jaeyoun Chung
+;; Posted to gnu-emacs-sources@gnu.org at 9:10 p.m.
+;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;
+;; This program is free software; you can redistribute it and/or
+;; modify it under the terms of the GNU General Public License as
+;; published by the Free Software Foundation; either version 3, or
+;; (at your option) any later version.
+;;
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+;; General Public License for more details.
+;;
+;; You should have received a copy of the GNU General Public License
+;; along with this program; see the file COPYING. If not, write to
+;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+;; Floor, Boston, MA 02110-1301, USA.
+;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;
+;;; Code:
+
+(eval-when-compile (require 'cl)) ;; decf, fourth, incf, loop, mapcar*
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+(defface dropdown-list-face
+ '((t :inherit default :background "lightyellow" :foreground "black"))
+ "*Bla." :group 'dropdown-list)
+
+(defface dropdown-list-selection-face
+ '((t :inherit dropdown-list-face :background "purple"))
+ "*Bla." :group 'dropdown-list)
+
+(defvar dropdown-list-overlays nil)
+
+(defun dropdown-list-hide ()
+ (while dropdown-list-overlays
+ (delete-overlay (pop dropdown-list-overlays))))
+
+(defun dropdown-list-put-overlay (beg end &optional prop value prop2 value2)
+ (let ((ov (make-overlay beg end)))
+ (overlay-put ov 'window t)
+ (when prop
+ (overlay-put ov prop value)
+ (when prop2 (overlay-put ov prop2 value2)))
+ ov))
+
+(defun dropdown-list-line (start replacement &optional no-insert)
+ ;; start might be in the middle of a tab, which means we need to hide the
+ ;; tab and add spaces
+ (let ((end (+ start (length replacement)))
+ beg-point end-point
+ before-string after-string)
+ (goto-char (point-at-eol))
+ (if (< (current-column) start)
+ (progn (setq before-string (make-string (- start (current-column)) ? ))
+ (setq beg-point (point)))
+ (goto-char (point-at-bol)) ;; Emacs bug, move-to-column is wrong otherwise
+ (move-to-column start)
+ (setq beg-point (point))
+ (when (> (current-column) start)
+ (goto-char (1- (point)))
+ (setq beg-point (point))
+ (setq before-string (make-string (- start (current-column)) ? ))))
+ (move-to-column end)
+ (setq end-point (point))
+ (let ((end-offset (- (current-column) end)))
+ (when (> end-offset 0) (setq after-string (make-string end-offset ?b))))
+ (when no-insert
+ ;; prevent inheriting of faces
+ (setq before-string (when before-string (propertize before-string 'face 'default)))
+ (setq after-string (when after-string (propertize after-string 'face 'default))))
+ (let ((string (concat before-string replacement after-string)))
+ (if no-insert
+ string
+ (push (dropdown-list-put-overlay beg-point end-point 'invisible t
+ 'after-string string)
+ dropdown-list-overlays)))))
+
+(defun dropdown-list-start-column (display-width)
+ (let ((column (mod (current-column) (window-width)))
+ (width (window-width)))
+ (cond ((<= (+ column display-width) width) column)
+ ((> column display-width) (- column display-width))
+ ((>= width display-width) (- width display-width))
+ (t nil))))
+
+(defun dropdown-list-move-to-start-line (candidate-count)
+ (decf candidate-count)
+ (let ((above-line-count (save-excursion (- (vertical-motion (- candidate-count)))))
+ (below-line-count (save-excursion (vertical-motion candidate-count))))
+ (cond ((= below-line-count candidate-count)
+ t)
+ ((= above-line-count candidate-count)
+ (vertical-motion (- candidate-count))
+ t)
+ ((>= (+ below-line-count above-line-count) candidate-count)
+ (vertical-motion (- (- candidate-count below-line-count)))
+ t)
+ (t nil))))
+
+(defun dropdown-list-at-point (candidates &optional selidx)
+ (dropdown-list-hide)
+ (let* ((lengths (mapcar #'length candidates))
+ (max-length (apply #'max lengths))
+ (start (dropdown-list-start-column (+ max-length 3)))
+ (i -1)
+ (candidates (mapcar* (lambda (candidate length)
+ (let ((diff (- max-length length)))
+ (propertize
+ (concat (if (> diff 0)
+ (concat candidate (make-string diff ? ))
+ (substring candidate 0 max-length))
+ (format "%3d" (+ 2 i)))
+ 'face (if (eql (incf i) selidx)
+ 'dropdown-list-selection-face
+ 'dropdown-list-face))))
+ candidates
+ lengths)))
+ (save-excursion
+ (and start
+ (dropdown-list-move-to-start-line (length candidates))
+ (loop initially (vertical-motion 0)
+ for candidate in candidates
+ do (dropdown-list-line (+ (current-column) start) candidate)
+ while (/= (vertical-motion 1) 0)
+ finally return t)))))
+
+(defun dropdown-list (candidates)
+ (let ((selection)
+ (temp-buffer))
+ (save-window-excursion
+ (unwind-protect
+ (let ((candidate-count (length candidates))
+ done key (selidx 0))
+ (while (not done)
+ (unless (dropdown-list-at-point candidates selidx)
+ (switch-to-buffer (setq temp-buffer (get-buffer-create "*selection*"))
+ 'norecord)
+ (delete-other-windows)
+ (delete-region (point-min) (point-max))
+ (insert (make-string (length candidates) ?\n))
+ (goto-char (point-min))
+ (dropdown-list-at-point candidates selidx))
+ (setq key (read-key-sequence ""))
+ (cond ((and (stringp key)
+ (>= (aref key 0) ?1)
+ (<= (aref key 0) (+ ?0 (min 9 candidate-count))))
+ (setq selection (- (aref key 0) ?1)
+ done t))
+ ((member key `(,(char-to-string ?\C-p) [up] "p"))
+ (setq selidx (mod (+ candidate-count (1- (or selidx 0)))
+ candidate-count)))
+ ((member key `(,(char-to-string ?\C-n) [down] "n"))
+ (setq selidx (mod (1+ (or selidx -1)) candidate-count)))
+ ((member key `(,(char-to-string ?\f))))
+ ((member key `(,(char-to-string ?\r) [return]))
+ (setq selection selidx
+ done t))
+ (t (setq done t)))))
+ (dropdown-list-hide)
+ (and temp-buffer (kill-buffer temp-buffer)))
+ ;; (when selection
+ ;; (message "your selection => %d: %s" selection (nth selection candidates))
+ ;; (sit-for 1))
+ selection)))
+
+(defun define-key* (keymap key command)
+ "Add COMMAND to the multiple-command binding of KEY in KEYMAP.
+Use multiple times to bind different COMMANDs to the same KEY."
+ (define-key keymap key (combine-command command (lookup-key keymap key))))
+
+(defun combine-command (command defs)
+ "$$$$$ FIXME - no doc string"
+ (cond ((null defs) command)
+ ((and (listp defs)
+ (eq 'lambda (car defs))
+ (= (length defs) 4)
+ (listp (fourth defs))
+ (eq 'command-selector (car (fourth defs))))
+ (unless (member `',command (cdr (fourth defs)))
+ (setcdr (fourth defs) (nconc (cdr (fourth defs)) `(',command))))
+ defs)
+ (t
+ `(lambda () (interactive) (command-selector ',defs ',command)))))
+
+(defvar command-selector-last-command nil "$$$$$ FIXME - no doc string")
+
+(defun command-selector (&rest candidates)
+ "$$$$$ FIXME - no doc string"
+ (if (and (eq last-command this-command) command-selector-last-command)
+ (call-interactively command-selector-last-command)
+ (let* ((candidate-strings
+ (mapcar (lambda (candidate)
+ (format "%s" (if (symbolp candidate)
+ candidate
+ (let ((s (format "%s" candidate)))
+ (if (>= (length s) 7)
+ (concat (substring s 0 7) "...")
+ s)))))
+ candidates))
+ (selection (dropdown-list candidate-strings)))
+ (when selection
+ (let ((cmd (nth selection candidates)))
+ (call-interactively cmd)
+ (setq command-selector-last-command cmd))))))
+
+;;;;;;;;;;;;;;;;;;;;
+
+(provide 'dropdown-list)
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;; dropdown-list.el ends here
View
3 yasnippet/snippets/text-mode/cc-mode/c++-mode/beginend
@@ -0,0 +1,3 @@
+#name : v.begin(), v.end()
+# --
+${1:v}.begin(), $1.end
View
8 yasnippet/snippets/text-mode/cc-mode/c++-mode/class
@@ -0,0 +1,8 @@
+#name : class ... { ... }
+# --
+class ${1:Name}
+{
+public:
+ ${1:$(yas/substr text "[^: ]*")}($2);
+ virtual ~${1:$(yas/substr text "[^: ]*")}();
+};
View
3 yasnippet/snippets/text-mode/cc-mode/c++-mode/ns
@@ -0,0 +1,3 @@
+#name : namespace ...
+# --
+namespace
View
3 yasnippet/snippets/text-mode/cc-mode/c++-mode/template
@@ -0,0 +1,3 @@
+#name : template <typename ...>
+# --
+template <typename ${T}>
View
4 yasnippet/snippets/text-mode/cc-mode/c++-mode/using
@@ -0,0 +1,4 @@
+#name : using namespace ...
+# --
+using namespace ${std};
+$0
View
3 yasnippet/snippets/text-mode/cc-mode/c-mode/fopen
@@ -0,0 +1,3 @@
+#name : FILE *fp = fopen(..., ...);
+# --
+FILE *${fp} = fopen(${"file"}, "${r}");
View
6 yasnippet/snippets/text-mode/cc-mode/c-mode/printf
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name : printf
+# contributor : joaotavora
+# --
+printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);")
+}$2${1:$(if (string-match "%" text) "\);" "")}
View
7 yasnippet/snippets/text-mode/cc-mode/csharp-mode/attrib
@@ -0,0 +1,7 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : private attribute ....;
+# --
+/// <summary>
+/// $3
+/// </summary>
+private $1 $2;
View
21 yasnippet/snippets/text-mode/cc-mode/csharp-mode/attrib.1
@@ -0,0 +1,21 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : private attribute ....; public property ... ... { ... }
+# --
+/// <summary>
+/// $3
+/// </summary>
+private $1 $2;
+
+/// <summary>
+/// $4
+/// </summary>
+/// <value>$5</value>
+public $1 $2
+{
+ get {
+ return this.$2;
+ }
+ set {
+ this.$2 = value;
+ }
+}
View
21 yasnippet/snippets/text-mode/cc-mode/csharp-mode/attrib.2
@@ -0,0 +1,21 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : private _attribute ....; public Property ... ... { ... }
+# --
+/// <summary>
+/// $3
+/// </summary>
+private $1 ${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")};
+
+/// <summary>
+/// ${3:Description}
+/// </summary>
+/// <value><c>$1</c></value>
+public ${1:Type} ${2:Name}
+{
+ get {
+ return this.${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")};
+ }
+ set {
+ this.${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")} = value;
+ }
+}
View
21 yasnippet/snippets/text-mode/cc-mode/csharp-mode/class
@@ -0,0 +1,21 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : class ... { ... }
+# --
+${5:public} class ${1:Name}
+{
+ #region Ctor & Destructor
+ /// <summary>
+ /// ${3:Standard Constructor}
+ /// </summary>
+ public $1($2)
+ {
+ }
+
+ /// <summary>
+ /// ${4:Default Destructor}
+ /// </summary>
+ public ~$1()
+ {
+ }
+ #endregion
+}
View
6 yasnippet/snippets/text-mode/cc-mode/csharp-mode/comment
@@ -0,0 +1,6 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : /// <summary> ... </summary>
+# --
+/// <summary>
+/// $1
+/// </summary>
View
4 yasnippet/snippets/text-mode/cc-mode/csharp-mode/comment.1
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : /// <param name="..."> ... </param>
+# --
+/// <param name="$1">$2</param>
View
4 yasnippet/snippets/text-mode/cc-mode/csharp-mode/comment.2
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : /// <param name="..."> ... </param>
+# --
+/// <returns>$1</returns>
View
4 yasnippet/snippets/text-mode/cc-mode/csharp-mode/comment.3
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : /// <exception cref="..."> ... </exception>
+# --
+/// <exception cref="$1">$2</exception>
View
10 yasnippet/snippets/text-mode/cc-mode/csharp-mode/method
@@ -0,0 +1,10 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : public void Method { ... }
+# --
+/// <summary>
+/// ${5:Description}
+/// </summary>${2:$(if (string= (upcase text) "VOID") "" (format "%s%s%s" "\n/// <returns><c>" text "</c></returns>"))}
+${1:public} ${2:void} ${3:MethodName}($4)
+{
+$0
+}
View
7 yasnippet/snippets/text-mode/cc-mode/csharp-mode/namespace
@@ -0,0 +1,7 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : namespace .. { ... }
+# --
+namespace $1
+{
+$0
+}
View
16 yasnippet/snippets/text-mode/cc-mode/csharp-mode/prop
@@ -0,0 +1,16 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : property ... ... { ... }
+# --
+/// <summary>
+/// $5
+/// </summary>
+/// <value>$6</value>
+$1 $2 $3
+{
+ get {
+ return this.$4;
+ }
+ set {
+ this.$4 = value;
+ }
+}
View
6 yasnippet/snippets/text-mode/cc-mode/csharp-mode/region
@@ -0,0 +1,6 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : #region ... #endregion
+# --
+#region $1
+$0
+#endregion
View
4 yasnippet/snippets/text-mode/cc-mode/csharp-mode/using
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : using ...;
+# --
+using $1;
View
4 yasnippet/snippets/text-mode/cc-mode/csharp-mode/using.1
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : using System;
+# --
+using System;
View
4 yasnippet/snippets/text-mode/cc-mode/csharp-mode/using.2
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : using System....;
+# --
+using System.$1;
View
6 yasnippet/snippets/text-mode/cc-mode/do
@@ -0,0 +1,6 @@
+#name : do { ... } while (...)
+# --
+do
+{
+ $0
+} while (${1:condition});
View
6 yasnippet/snippets/text-mode/cc-mode/for
@@ -0,0 +1,6 @@
+#name : for (...; ...; ...) { ... }
+# --
+for (${1:int i = 0}; ${2:i < N}; ${3:++i})
+{
+ $0
+}
View
6 yasnippet/snippets/text-mode/cc-mode/if
@@ -0,0 +1,6 @@
+#name : if (...) { ... }
+# --
+if (${1:condition})
+{
+ $0
+}
View
3 yasnippet/snippets/text-mode/cc-mode/inc
@@ -0,0 +1,3 @@
+#name : #include "..."
+# --
+#include "$1"
View
3 yasnippet/snippets/text-mode/cc-mode/inc.1
@@ -0,0 +1,3 @@
+#name : #include <...>
+# --
+#include <$1>
View
7 yasnippet/snippets/text-mode/cc-mode/main
@@ -0,0 +1,7 @@
+#name: int main(argc, argv) { ... }
+# --
+int main(int argc, char *argv[])
+{
+ $0
+ return 0;
+}
View
13 yasnippet/snippets/text-mode/cc-mode/objc-mode/prop
@@ -0,0 +1,13 @@
+#name : foo { ... } ; setFoo { ... }
+# --
+- (${1:id})${2:foo}
+{
+ return $2;
+}
+
+- (void)set${2:$(capitalize text)}:($1)aValue
+{
+ [$2 autorelease];
+ $2 = [aValue retain];
+}
+$0
View
8 yasnippet/snippets/text-mode/cc-mode/once
@@ -0,0 +1,8 @@
+#name : #ifndef XXX; #define XXX; #endif
+# --
+#ifndef ${1:_`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_H_}
+#define $1
+
+$0
+
+#endif /* $1 */
View
6 yasnippet/snippets/text-mode/cc-mode/struct
@@ -0,0 +1,6 @@
+#name : struct ... { ... }
+# --
+struct ${1:name}
+{
+ $0
+};
View
3 yasnippet/snippets/text-mode/css-mode/bg
@@ -0,0 +1,3 @@
+#name : background-color: ...
+# --
+background-color: #${1:DDD};
View
3 yasnippet/snippets/text-mode/css-mode/bg.1
@@ -0,0 +1,3 @@
+#name : background-image: ...
+# --
+background-image: url($1);
View
3 yasnippet/snippets/text-mode/css-mode/bor
@@ -0,0 +1,3 @@
+#name : border size style color
+# --
+border: ${1:1px} ${2:solid} #${3:999};
View
4 yasnippet/snippets/text-mode/css-mode/cl
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : clear: ...
+# --
+clear: $1;
View
4 yasnippet/snippets/text-mode/css-mode/disp.block
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : display: block
+# --
+display: block;
View
4 yasnippet/snippets/text-mode/css-mode/disp.inline
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : display: inline
+# --
+display: inline;
View
4 yasnippet/snippets/text-mode/css-mode/disp.none
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : display: none
+# --
+display: none;
View
4 yasnippet/snippets/text-mode/css-mode/ff
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : font-family: ...
+# --
+font-family: $1;
View
4 yasnippet/snippets/text-mode/css-mode/fs
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : font-size: ...
+# --
+font-size: ${12px};
View
4 yasnippet/snippets/text-mode/css-mode/mar.bottom
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : margin-bottom: ...
+# --
+margin-bottom: $1;
View
4 yasnippet/snippets/text-mode/css-mode/mar.left
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : margin-left: ...
+# --
+margin-left: $1;
View
4 yasnippet/snippets/text-mode/css-mode/mar.mar
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : margin: ...
+# --
+margin: $1;
View
4 yasnippet/snippets/text-mode/css-mode/mar.margin
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : margin top right bottom left
+# --
+margin: ${top} ${right} ${bottom} ${left};
View
4 yasnippet/snippets/text-mode/css-mode/mar.right
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : margin-right: ...
+# --
+margin-right: $1;
View
4 yasnippet/snippets/text-mode/css-mode/mar.top
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : margin-top: ...
+# --
+margin-top: $1;
View
4 yasnippet/snippets/text-mode/css-mode/pad.bottom
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : padding-bottom: ...
+# --
+padding-bottom: $1;
View
4 yasnippet/snippets/text-mode/css-mode/pad.left
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : padding-left: ...
+# --
+padding-left: $1;
View
4 yasnippet/snippets/text-mode/css-mode/pad.pad
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : padding: ...
+# --
+padding: $1;
View
4 yasnippet/snippets/text-mode/css-mode/pad.padding
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : padding: top right bottom left
+# --
+padding: ${top} ${right} ${bottom} ${left};
View
4 yasnippet/snippets/text-mode/css-mode/pad.right
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : padding-right: ...
+# --
+padding-right: $1;
View
4 yasnippet/snippets/text-mode/css-mode/pad.top
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : padding-top: ...
+# --
+padding-top: $1;
View
11 yasnippet/snippets/text-mode/emacs-lisp-mode/.read_me
@@ -0,0 +1,11 @@
+TITLE: Emacs Idiom Template Set. Version 1. 2009-02-22
+
+DESCRIPTION: Some useful templates for emacs lisp. This template set is based on useful elisp idioms on common tasks.
+
+LICENSING: GPL version 3.
+
+AUTHOR: Xah Lee
+
+Home Page: latest version at:
+• Emacs Lisp Idiom Templates
+ http://xahlee.org/emacs/elisp_idiom_templates.html
View
11 yasnippet/snippets/text-mode/emacs-lisp-mode/defun
@@ -0,0 +1,11 @@
+#name : function template
+#contributor : Xah Lee
+# --
+(defun $1 ()
+ "thisandthat."
+ (interactive)
+ (let (var1)
+ (setq var1 some)
+ $0
+ )
+)
View
16 yasnippet/snippets/text-mode/emacs-lisp-mode/dired.process_marked
@@ -0,0 +1,16 @@
+#name : process marked files in dired
+#contributor : Xah Lee
+# --
+;; idiom for processing a list of files in dired's marked files
+
+;; suppose myProcessFile is your function that takes a file path
+;; and do some processing on the file
+
+(defun dired-myProcessFile ()
+ "apply myProcessFile function to marked files in dired."
+ (interactive)
+ (require 'dired)
+ (mapc 'myProcessFile (dired-get-marked-files))
+)
+
+;; to use it, type M-x dired-myProcessFile
View
17 yasnippet/snippets/text-mode/emacs-lisp-mode/file.process
@@ -0,0 +1,17 @@
+#name : a function that process a file
+#contributor : Xah Lee
+# --
+(defun doThisFile (fpath)
+ "Process the file at path FPATH ..."
+ (let ()
+ ;; create temp buffer without undo record or font lock. (more efficient)
+ ;; first space in temp buff name is necessary
+ (set-buffer (get-buffer-create " myTemp"))
+ (insert-file-contents fpath nil nil nil t)
+
+ ;; process it ...
+ ;; (goto-char 0) ; move to begining of file's content (in case it was open)
+ ;; ... do something here
+ ;; (write-file fpath) ;; write back to the file
+
+ (kill-buffer " myTemp")))
View
17 yasnippet/snippets/text-mode/emacs-lisp-mode/file.read-lines
@@ -0,0 +1,17 @@
+#name : read lines of a file
+#contributor : Xah Lee
+# --
+(defun read-lines (filePath)
+ "Return a list of lines in FILEPATH."
+ (with-temp-buffer
+ (insert-file-contents filePath)
+ (split-string
+ (buffer-string) "\n" t)) )
+
+;; process all lines
+(mapc
+ (lambda (aLine)
+ (message aLine) ; do your stuff here
+ )
+ (read-lines "inputFilePath")
+)
View
17 yasnippet/snippets/text-mode/emacs-lisp-mode/find-replace
@@ -0,0 +1,17 @@
+#name : find and replace on region
+#contributor : Xah Lee
+# --
+(defun replace-html-chars-region (start end)
+ "Replace “<” to “&lt;” and other chars in HTML.
+This works on the current region."
+ (interactive "r")
+ (save-restriction
+ (narrow-to-region start end)
+ (goto-char (point-min))
+ (while (search-forward "&" nil t) (replace-match "&amp;" nil t))
+ (goto-char (point-min))
+ (while (search-forward "<" nil t) (replace-match "&lt;" nil t))
+ (goto-char (point-min))
+ (while (search-forward ">" nil t) (replace-match "&gt;" nil t))
+ )
+ )
View
4 yasnippet/snippets/text-mode/emacs-lisp-mode/grabstring
@@ -0,0 +1,4 @@
+#name : grab buffer substring
+#contributor : Xah Lee
+# --
+(setq $0 (buffer-substring-no-properties myStartPos myEndPos))
View
4 yasnippet/snippets/text-mode/emacs-lisp-mode/grabthing
@@ -0,0 +1,4 @@
+#name : grab word under cursor
+#contributor : Xah Lee
+# --
+(setq $0 (thing-at-point 'symbol))
View
6 yasnippet/snippets/text-mode/emacs-lisp-mode/traverse_dir
@@ -0,0 +1,6 @@
+#name : traversing a directory
+#contributor : Xah Lee
+# --
+;; apply a function to all files in a dir
+(require 'find-lisp)
+(mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$"))
View
27 yasnippet/snippets/text-mode/emacs-lisp-mode/word-or-region
@@ -0,0 +1,27 @@
+#name : Command that works on region or word
+#contributor : Xah Lee
+# --
+;; example of a command that works on current word or text selection
+(defun down-case-word-or-region ()
+ "Lower case the current word or text selection."
+(interactive)
+(let (pos1 pos2 meat)
+ (if (and transient-mark-mode mark-active)
+ (setq pos1 (region-beginning)
+ pos2 (region-end))
+ (setq pos1 (car (bounds-of-thing-at-point 'symbol))
+ pos2 (cdr (bounds-of-thing-at-point 'symbol))))
+
+ ; now, pos1 and pos2 are the starting and ending positions
+ ; of the current word, or current text selection if exists
+
+ ;; put your code here.
+ $0
+ ;; Some example of things you might want to do
+ (downcase-region pos1 pos2) ; example of a func that takes region as args
+ (setq meat (buffer-substring-no-properties pos1 pos2)) ; grab the text.
+ (delete-region pos1 pos2) ; get rid of it
+ (insert "newText") ; insert your new text
+
+ )
+)
View
3 yasnippet/snippets/text-mode/email
@@ -0,0 +1,3 @@
+#name : (user's email)
+# --
+`(replace-regexp-in-string "@" "@NOSPAM." user-mail-address)`
View
4 yasnippet/snippets/text-mode/erlang-mode/after
@@ -0,0 +1,4 @@
+#name : after ... ->
+# --
+after
+ $1 -> $0
View
5 yasnippet/snippets/text-mode/erlang-mode/begin
@@ -0,0 +1,5 @@
+#name : begin ... end
+# --
+begin
+ $0
+end
View
4 yasnippet/snippets/text-mode/erlang-mode/beh
@@ -0,0 +1,4 @@
+#name : -behaviour(...).
+# --
+-behaviour(${1:gen_server}).
+$0
View
5 yasnippet/snippets/text-mode/erlang-mode/case
@@ -0,0 +1,5 @@
+#name : case ... of ... end
+# --
+case $1 of
+ $0
+end
View
4 yasnippet/snippets/text-mode/erlang-mode/compile
@@ -0,0 +1,4 @@
+#name : -compile(...).
+# --
+-compile([${1:export_all}]).
+$0
View
4 yasnippet/snippets/text-mode/erlang-mode/def
@@ -0,0 +1,4 @@
+#name : -define(...,...).
+# --
+-define($1,$2).
+$0
View
5 yasnippet/snippets/text-mode/erlang-mode/exp
@@ -0,0 +1,5 @@
+#name : -export([]).
+#contributor : hitesh <hitesh.jasani@gmail.com>
+# --
+-export([${1:start/0}]).
+$0
View
3 yasnippet/snippets/text-mode/erlang-mode/fun
@@ -0,0 +1,3 @@
+#name : fun (...) -> ... end
+# --
+fun ($1) -> $0 end
View
6 yasnippet/snippets/text-mode/erlang-mode/if
@@ -0,0 +1,6 @@
+#name : if ... -> ... ; true -> ... end
+# --
+if
+ $1 -> $2;
+ true -> $0
+end
View
5 yasnippet/snippets/text-mode/erlang-mode/ifdef
@@ -0,0 +1,5 @@
+#name : -ifdef(...). ... -endif.
+# --
+-ifdef($1).
+$0
+-endif.
View
5 yasnippet/snippets/text-mode/erlang-mode/ifndef
@@ -0,0 +1,5 @@
+#name : -ifndef(...). ... -endif.
+# --
+-ifndef($1).
+$0
+-endif.
View
5 yasnippet/snippets/text-mode/erlang-mode/imp
@@ -0,0 +1,5 @@
+#name : -import([]).
+#contributor : hitesh <hitesh.jasani@gmail.com>
+# --
+-import(${1:lists}, [${2:map/2, sum/1}]).
+$0
View
4 yasnippet/snippets/text-mode/erlang-mode/inc
@@ -0,0 +1,4 @@
+#name : -include("...").
+# --
+-include("$1").
+$0
View
4 yasnippet/snippets/text-mode/erlang-mode/inc.lib
@@ -0,0 +1,4 @@
+#name : -include_lib("...").
+# --
+-include_lib("$1").
+$0
View
8 yasnippet/snippets/text-mode/erlang-mode/loop
@@ -0,0 +1,8 @@
+#name : loop(...) -> receive _ -> loop(...) end.
+# --
+${1:loop}($2) ->
+ receive
+ ${3:_} ->
+ $1($2)
+ end.
+$0
View
6 yasnippet/snippets/text-mode/erlang-mode/mod
@@ -0,0 +1,6 @@
+#name : -module().
+#contributor : hitesh <hitesh.jasani@gmail.com>
+# --
+-module(${1:`(file-name-nondirectory
+ (file-name-sans-extension (or (buffer-file-name) (buffer-name))))`}).
+$0
View
5 yasnippet/snippets/text-mode/erlang-mode/rcv
@@ -0,0 +1,5 @@
+#name : receive ... -> ... end
+# --
+receive
+ $1 -> $0
+end
View
6 yasnippet/snippets/text-mode/erlang-mode/rcv.after
@@ -0,0 +1,6 @@
+#name : receive after ... -> ... end
+# --
+receive
+after
+ $1 -> $0
+end
View
4 yasnippet/snippets/text-mode/erlang-mode/rec
@@ -0,0 +1,4 @@
+#name : -record(...,{...}).
+# --
+-record($1,{$2}).
+$0
View
7 yasnippet/snippets/text-mode/erlang-mode/try
@@ -0,0 +1,7 @@
+#name : try ... of ... catch after end
+# --
+try $1 of
+ $0
+catch
+after
+end
View
4 yasnippet/snippets/text-mode/erlang-mode/undef
@@ -0,0 +1,4 @@
+#name : -undef(...).
+# --
+-undef($1).
+$0
View
4 yasnippet/snippets/text-mode/f90-mode/au
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : automatic
+# --
+automatic $0
View
4 yasnippet/snippets/text-mode/f90-mode/bd
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : block data
+# --
+block data $0
View
4 yasnippet/snippets/text-mode/f90-mode/c
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : continue
+# --
+continue $0
View
4 yasnippet/snippets/text-mode/f90-mode/ch
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : character
+# --
+character $0
View
4 yasnippet/snippets/text-mode/f90-mode/cx
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : complex
+# --
+complex $0
View
4 yasnippet/snippets/text-mode/f90-mode/dc
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : double complex
+# --
+double complex $0
View
6 yasnippet/snippets/text-mode/f90-mode/do
@@ -0,0 +1,6 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : do while (...) end do
+# --
+do while (${1:condition})
+ $0
+end do
View
4 yasnippet/snippets/text-mode/f90-mode/dp
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : double precision
+# --
+double precision $0
View
4 yasnippet/snippets/text-mode/f90-mode/eq
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : equivalence
+# --
+equivalence $0
View
4 yasnippet/snippets/text-mode/f90-mode/ib
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit byte
+# --
+implicit byte $0
View
4 yasnippet/snippets/text-mode/f90-mode/ic
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit complex
+# --
+implicit complex $0
View
4 yasnippet/snippets/text-mode/f90-mode/ich
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit character
+# --
+implicit character $0
View
6 yasnippet/snippets/text-mode/f90-mode/if
@@ -0,0 +1,6 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : if then end if
+# --
+if ( ${1:condition} ) then
+ $0
+end if
View
4 yasnippet/snippets/text-mode/f90-mode/ii
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit integer
+# --
+implicit integer $0
View
4 yasnippet/snippets/text-mode/f90-mode/il
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit logical
+# --
+implicit logical $0
View
4 yasnippet/snippets/text-mode/f90-mode/in
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit none
+# --
+implicit none
View
4 yasnippet/snippets/text-mode/f90-mode/inc
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : include
+# --
+include $0
View
4 yasnippet/snippets/text-mode/f90-mode/intr
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : intrinsic
+# --
+intrinsic $0
View
4 yasnippet/snippets/text-mode/f90-mode/ir
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit real
+# --
+implicit real $0
View
4 yasnippet/snippets/text-mode/f90-mode/l
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : logical
+# --
+logical $0
View
4 yasnippet/snippets/text-mode/f90-mode/pa
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : parameter
+# --
+parameter $0
View
6 yasnippet/snippets/text-mode/f90-mode/pr
@@ -0,0 +1,6 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : program ... end program ...
+# --
+program ${1:name}
+ $0
+end program ${1:name}
View
4 yasnippet/snippets/text-mode/f90-mode/re
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : read (*,*)
+# --
+read (${1:*},${2:*}) $0
View
4