Skip to content

Instantly share code, notes, and snippets.

@Davidnet
Created February 18, 2016 23:10
Show Gist options
  • Save Davidnet/5174b66dba625857fa70 to your computer and use it in GitHub Desktop.
Save Davidnet/5174b66dba625857fa70 to your computer and use it in GitHub Desktop.
# 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:
# https://atom.io/docs/latest/using-atom-basic-customization#cson
'.source.gfm':
'inline math mode':
'prefix': 'immode'
'body': '$ $1 $'
'display math mode':
'prefix': 'dmmode'
'body': '$$ $1 $$'
'set':
'prefix': 'set'
'body': '\\\\left\\\\lbrace $1 \\\\right\\\\rbrace'
'math bbmode':
'prefix': 'bbmode'
'body': '\\\\mathbb{ $1 }'
'Operator name':
'prefix': 'operatorname'
'body': '\\\\operatorname{ $1 }'
'goes to':
'prefix': 'goesto'
'body': '\\\\rightarrow'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment