Skip to content

Instantly share code, notes, and snippets.

@poritsky
poritsky / Markdown.sublime-settings.json
Last active December 10, 2015 20:48 — forked from anonymous/MarkdownEditorMoleskine.tmTheme
Modified version of Brett Terpstra's MarkdownEditing editor theme, with what I call a "Moleskine" feel. Find out more about MarkdownEditing: http://ttscoff.github.com/MarkdownEditing/
{
"extensions":
[
"md",
"mdown",
"mmd"
],
"trim_trailing_white_space_on_save": false,
"font_face": "Pitch Medium",
"font_size": 15,
@poritsky
poritsky / gist:4265063
Created December 12, 2012 05:22 — forked from anonymous/gist:4265059
Key commands to quickly create Markdown headers in Brett Terpstra's MarkdownEditing plugin for Sublime Text 2. ⌘^1 for #, ⌘^2 for ## and so on. Works on selected text too. Just add the following anywhere in your Default (OSX).sublime-keymap file for MarkdownEditing (or any relevant package for ST2)
{ "keys": ["super+ctrl+1"], "command": "insert_snippet", "args": {"contents": "# $0"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|$)", "match_all": true },
{ "key": "preceding_text", "operator": "not_regex_contains", "operand": "['a-zA-Z0-9_]$", "match_all": true },
{ "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.single", "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true }
]
},