Skip to content

Instantly share code, notes, and snippets.

@djbrugh
Created May 21, 2014 01:14
Show Gist options
  • Save djbrugh/460d54ddcc43627da89d to your computer and use it in GitHub Desktop.
Save djbrugh/460d54ddcc43627da89d to your computer and use it in GitHub Desktop.
Sublime Text 3 macro for inserting \onslide<> and placing the curser between the angle brackets. Used when writing Beamer files. For ST3 to see this macro, it needs to be installed in the ST3 Packages/User folder. On my systems this folder is stored in Dropbox so it can be symlinked to the folder on the local mac.
[
{
"args":
{
"characters": "\\onslide"
},
"command": "insert"
},
{
"args":
{
"contents": "<${1:+-}>$0"
},
"command": "insert_snippet"
},
{
"args":
{
"characters": ">"
},
"command": "insert"
},
{
"args": null,
"command": "left_delete"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment