Skip to content

Instantly share code, notes, and snippets.

@n1k0
Created May 24, 2012 08:23
Show Gist options
  • Save n1k0/2780199 to your computer and use it in GitHub Desktop.
Save n1k0/2780199 to your computer and use it in GitHub Desktop.
SublimeText2 macro and key binding for quickly wrapping text at 80 columns
/**
* Sample key binding (emacs users will hate it, but they're probably not using SublimeText2)
*
*/
[
{ "keys": ["ctrl+w"], "command": "run_macro_file", "args": {"file": "Packages/User/Quick Wrap.sublime-macro"}}
]
/**
* Store this file in ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/Quick\ Wrap.sublime-macro
*
*/
[
{ "command": "toggle_setting", "args": { "setting": "word_wrap" }},
{ "command": "set_setting", "args": {"setting": "wrap_width", "value": 80 }}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment