Skip to content

Instantly share code, notes, and snippets.

View sloveland's full-sized avatar

Samuel Loveland sloveland

View GitHub Profile
@sloveland
sloveland / EOL.sublime-keymap
Last active August 29, 2015 14:05
keybindings for EOL macros
[
{
"keys": ["super+;"],
"command": "run_macro_file",
"args": {"file": "Packages/User/eol-semicolon.sublime-macro"}
},
{
"keys": ["super+,"],
"command": "run_macro_file",
"args": {"file": "Packages/User/eol-comma.sublime-macro"}
@sloveland
sloveland / eol-comma.sublime-macro
Last active August 29, 2015 14:05
EOL comma and return (Sublime Text Macro)
[
{ "command": "set_mark" },
{ "command": "move_to", "args": {"to": "eol"} },
{ "args": { "characters": "," }, "command": "insert" },
{ "command": "swap_with_mark" }
]
@sloveland
sloveland / eol-semicolon.sublime-macro
Last active April 5, 2018 13:26
EOL semicolon and return (Sublime Text Macro)
[
{ "command": "set_mark" },
{ "command": "move_to", "args": {"to": "eol"} },
{ "command": "insert_snippet", "args": {"contents": "${TM_LINE_TERMINATOR:;}"} },
{ "command": "swap_with_mark" }
]
@sloveland
sloveland / Sam.tmTheme
Last active December 23, 2015 11:59
Syntax Highlighting for TextMate/SublimeText, for those (like me) with red-green colorblindness. Dark gray background with light and dark blues, with some yellow and green for contrast. Optimized for HTML, CSS, Javascript, Ruby, SASS, and LESS. Heavily based on Monokai and Sunburst Themes.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>Samuel Loveland</string>
<key>name</key>
<string>Sam</string>
<key>settings</key>
<array>