Skip to content

Instantly share code, notes, and snippets.

@melvynhills
Created May 21, 2013 23:23
Show Gist options
  • Save melvynhills/5624084 to your computer and use it in GitHub Desktop.
Save melvynhills/5624084 to your computer and use it in GitHub Desktop.
# Fixes key command originally mapped to "html_to_jade_from_selection"
# ~/Library/Application Support/Sublime Text 2/Packages/Sublime-JS-to-CoffeeScript/Default (OSX).sublime-keymap
[
{ "keys": ["shift+alt+s"], "command": "js_to_cs_from_selection"}
]
# Fixes https://github.com/nibblebot/sublime-js2coffee/issues/11
# /usr/local/share/npm/lib/node_modules/js2coffee/lib/helpers.coffee
# L5
CoffeeScript.RESERVED = require '../../coffee-script/lib/coffee-script/lexer'
# Fixes https://github.com/nibblebot/sublime-js2coffee/issues/5
# ~/Library/Application Support/Sublime Text 2/Packages/Sublime-JS-to-CoffeeScript/jstocoffee.py
# L6
import os
my_env = os.environ.copy()
my_env["PATH"] = "/usr/local/bin:/usr/local/sbin:/usr/local/share/npm/bin:" + my_env["PATH"]
#L15
p = subprocess.Popen(cmd, env=my_env, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment