Created
May 24, 2012 08:23
-
-
Save n1k0/2780199 to your computer and use it in GitHub Desktop.
SublimeText2 macro and key binding for quickly wrapping text at 80 columns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
/** | |
* 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"}} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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