Patrick Nuckolls
e28a7391ef
Update template ( #235 )
...
Moved spaces that were part of the default values out of them as they are always going to be left in, and moved the quotes outside of the docstring default as they will usually be there.
2017-10-30 13:11:25 +00:00
ybiquitous
07389c6723
add 'try...catch' statement snippet to js-mode ( #227 )
...
* add 'try...catch' statement snippet to js-mode
For details, see below link:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch
* change variable name from `e` to `err` for Error object
2017-10-10 20:24:37 +01:00
ybiquitous
29ce99b841
add arrow function snippets to js-mode (ES2015 syntax) ( #226 )
...
* add arrow function snippets to js-mode (ES2015 syntax)
For details, see below link:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions
* Make 'arrow-function' snippet more simple
2017-10-06 17:18:12 +01:00
Nathanael Merlin
143b31a4eb
Add powershell-mode with basic function snippets ( #220 )
2017-10-06 17:16:24 +01:00
Noam Postavsky
65764856df
Put $0 before comment-end ( #221 )
...
* Put $0 before comment-end
* snippets/prog-mode/fixme:
* snippets/prog-mode/todo:
* snippets/prog-mode/xxx: Use comment-start and comment-end directly
instead of `yas-with-comment` so that $0 can be inserted before comment-end.
* * snippets/prog-mode/.yas-setup.el (yas-with-comment): Remove.
2017-10-01 14:06:13 +01:00
ybiquitous
39b8becede
add Promise snippet to js-mode (since ES2015) ( #228 )
...
For details, see below link:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/promise
2017-10-01 12:27:37 +01:00
Andrea Crotti
227845c8b9
move script to the right place
2017-10-01 12:25:27 +01:00
Jürgen Hötzel
314a16ff7e
Add snippet for sh 'until' loop ( #229 )
2017-10-01 12:22:34 +01:00
Davidbrcz
7534870632
Update cc-mode/main ( #222 )
...
The current cc-mode/main snippet does not compile out of the box with gcc or g++.
I reverted it to a more standard code which does not use variable length array with its arguments
2017-09-27 13:09:05 +01:00
ybiquitous
76e5443738
add snippets for 'let' and 'const' statements (ES2015 syntax) ( #225 )
...
For details, see below links:
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const
2017-09-27 13:07:36 +01:00
Andrea Crotti
bcbdc760f8
fixes #223
2017-09-26 18:24:39 +01:00
ybiquitous
70903229b4
add snippets about ES2015 module syntax (import, export) ( #219 )
...
* add snippets about ES2015 module syntax (import, export)
For details, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import
* follow exact 'import' syntax
* add 'group: es6'
2017-09-20 20:34:01 +01:00
ybiquitous
728a66d6c3
rewrite 'class' and 'constructor' for ES2015 syntax in js-mode ( #218 )
...
* rewrite 'class' and 'constructor' for ES2015 syntax in js-mode
* fine tuning
* fine tuning
* add new snippets 'class-es6' and 'init-es6' for backward compatibility
2017-09-20 20:33:21 +01:00
USAMI Kenta
1cb40233f8
Add snippets for php-mode ( #205 )
...
* Add snippets for php-mode
* Fix typo
2017-09-20 19:05:01 +01:00
ybiquitous
643d6a0e10
add "switch" snippet to js-mode ( #217 )
...
Inspired by other language modes (go, cc, php, etc.).
2017-09-15 16:57:11 +01:00
ybiquitous
00e4e12922
insert space between "for" keyword and "(" ( #215 )
...
* insert space between "for" keyword and "("
In order to follow the standard JavaScript coding style.
* trim final newline
2017-09-14 11:04:34 +01:00
ybiquitous
886befad0e
use "forEach" instead of "each" ( #216 )
...
"forEach" is standard API, but "each" is non-standard.
See below:
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach
- https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach
2017-09-14 09:24:11 +01:00
Thibault
5c3bb7ad8f
Fix path for csharp-mode/main ( #212 )
2017-09-08 12:35:24 +01:00
Avelino
e62b18c771
create python snippet bang #! ( #213 )
2017-09-08 12:34:01 +01:00
Philipp
a0bd5a05a7
Fix detection of current file name ( #209 )
...
Fixes #208
2017-09-03 16:57:16 +01:00
Andrea Crotti
77db04c75a
bump version
2017-09-03 16:50:42 +01:00
振宗
e3739ecc73
Update metaclass ( #210 )
2017-09-03 16:50:10 +01:00
Andrea Crotti
d7ebfd1ef0
fix commentary
2017-09-03 16:48:57 +01:00
Jürgen Hötzel
b2f5f4af18
csharp-mode: Add main snippet ( #206 )
2017-08-22 21:57:01 +01:00
Sergey Timanin
5eeac454aa
Correct terraform 'resource' snippet ( #207 )
...
Type definition was missing. As the official Terraform documentation states:
> The resource block defines a resource that exists within the infrastructure. A resource might be a physical component such as an EC2 instance, or it can be a logical resource such as a Heroku application.
From: https://www.terraform.io/intro/getting-started/build.html#configuration
2017-08-22 21:56:01 +01:00
Andrea Crotti
6ff001decd
update version
2017-08-21 11:02:44 +01:00
USAMI Kenta
98a784a7ed
Add PHP basic syntax (statement) for php-mode ( #202 )
...
* Add PHP basic syntax (statement) for php-mode
* Add php-mode/.yas-setup.el
* Replace to function (yas-php-get-class-name-by-file-name)
2017-08-21 11:01:54 +01:00
duianto
50557c37d8
Update README.md, typos ( #204 )
2017-08-20 11:41:46 +01:00
Andrea Crotti
4b3eea3740
spacing
2017-08-15 15:51:01 +01:00
Andrea Crotti
ea56e62a9d
brackets
2017-08-15 15:50:35 +01:00
Andrea Crotti
0ef0fdb3fd
add gratipay
2017-08-15 15:50:08 +01:00
Andrea Crotti
21fc956845
extra cleanup
2017-08-14 12:59:18 +01:00
Andrea Crotti
1c63ef8cc8
not really using this file
2017-08-14 12:43:34 +01:00
Andrea Crotti
9f8a1a7288
melpa badge
2017-08-14 09:48:55 +01:00
Andrea Crotti
24901575cd
docs
2017-08-14 09:48:30 +01:00
Andrea Crotti
0253a7eb57
move everything in snippets as it should be ( #203 )
2017-08-13 12:16:55 +01:00
Andrea Crotti
3226ab8d87
gpl v3
2017-08-11 20:29:58 +01:00
Andrea Crotti
e23f56fd37
change to GPL
2017-08-01 21:07:35 +01:00
Mikhail Krainik
398384d778
Add remote_pry snippets for ruby-mode ( #200 )
2017-07-31 21:48:20 +01:00
Andrea Crotti
ec7f3a03b2
use cl-flet instead of flet
2017-07-29 12:22:06 +01:00
Benjamin Andresen
579b3fcadf
Add: rust-mode: 1.19.0 introduced union ( #198 )
...
https://blog.rust-lang.org/2017/07/20/Rust-1.19.html
2017-07-24 17:56:25 +01:00
Dela Anthonio
44b9d7a81e
cc-mode: Improve readability of main ( #199 )
...
Each array in argv always contains argc amount of strings. Specify it explicitly
for better readability.
2017-07-24 17:55:47 +01:00
Andrea Crotti
885050d347
terraform mode
2017-07-14 21:30:34 +01:00
Nicolò Balzarotti
68cceb8b5f
cc-mode: i++ -> ++i ( #197 )
...
#195
2017-07-14 12:18:42 +01:00
振宗
9b499fce21
Update classmethod snippet ( #194 )
2017-07-11 15:49:35 +01:00
CryptoManiac
3678e75428
Added unicode-literals snippet for python-mode ( #192 )
2017-07-10 22:57:40 +01:00
Noam Postavsky
698a921f4f
Make c++-mode access specifier snippets indent the first line ( #190 )
...
The first line of the expansion usually needs to be unindented
relative to the current offset.
* c++-mode/private:
* c++-mode/protected:
* c++-mode/public: Bind yas-also-auto-indent-first-line to t.
2017-07-10 22:56:29 +01:00
Andrea Crotti
a0a81f603c
add protobuf mode
2017-06-19 15:06:30 +01:00
Tim Jäger
420db5c0fb
Disable recursive snippets in Clojure namespace snippets ( #191 )
...
Previous to this, typing `clojure.test` and then tabbing to go to the next field
would result in an expansion of test.
2017-06-18 15:58:27 +01:00
Andrea Crotti
d672b1fb88
remove redundant "Class" in class snippet
2017-05-03 15:37:08 +01:00