2017-12-04 07:58:27 +00:00
|
|
|
# Your snippets
|
|
|
|
#
|
|
|
|
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
|
|
|
|
# expand the prefix into a larger code block with templated values.
|
|
|
|
#
|
|
|
|
# You can create a new snippet in this file by typing "snip" and then hitting
|
|
|
|
# tab.
|
|
|
|
#
|
|
|
|
# An example CoffeeScript snippet to expand log to console.log:
|
|
|
|
#
|
|
|
|
# '.source.coffee':
|
|
|
|
# 'Console log':
|
|
|
|
# 'prefix': 'log'
|
|
|
|
# 'body': 'console.log $1'
|
|
|
|
#
|
|
|
|
# Each scope (e.g. '.source.coffee' above) can only be declared once.
|
|
|
|
#
|
|
|
|
# This file uses CoffeeScript Object Notation (CSON).
|
|
|
|
# If you are unfamiliar with CSON, you can read more about it in the
|
|
|
|
# Atom Flight Manual:
|
|
|
|
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson
|
2017-12-28 23:55:32 +00:00
|
|
|
|
|
|
|
'.source.gfm':
|
|
|
|
'Image':
|
|
|
|
'prefix': 'image'
|
|
|
|
'body': """
|
|
|
|
{% include figure-image.html
|
2018-01-18 18:11:41 +00:00
|
|
|
src="$1"
|
|
|
|
alt="$2" %}
|
2017-12-28 23:55:32 +00:00
|
|
|
"""
|
|
|
|
'Image Gallery':
|
|
|
|
'prefix': 'gallery'
|
|
|
|
'body': """
|
|
|
|
{% include figure-gallery.html
|
2018-01-18 18:11:41 +00:00
|
|
|
src="$1"
|
|
|
|
alt="$2" %}
|
2017-12-28 23:55:32 +00:00
|
|
|
"""
|