Skip to content

Instantly share code, notes, and snippets.

@Davidnet
Created March 29, 2016 00:30
Show Gist options
  • Save Davidnet/9e76dae3f84eb50439a3 to your computer and use it in GitHub Desktop.
Save Davidnet/9e76dae3f84eb50439a3 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':y
# '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'
'Special notations sets':
'prefix': 'bbmmode'
'body': '\\\\mathbb{$1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment