Skip to content

Instantly share code, notes, and snippets.

@nofxx
Last active December 25, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nofxx/6987409 to your computer and use it in GitHub Desktop.
Save nofxx/6987409 to your computer and use it in GitHub Desktop.
firefox + better errors + emacs => click to fix error!
#!/usr/bin/env ruby
chunk = ARGV.join
head, line = chunk.split("&line=")
trash, file = head.split("file://")
file = file.gsub!("%2F", "/")
args = `ps aux | grep emac[s]` == "" ? "c" : ""
# puts "Running file #{file} ##{line} with args #{args}"
`emacsclient -n#{args} +#{line} "#{file}"`
Create a **BOOLEAN** key:
network.protocol-handler.expose.emacs;false
@nofxx
Copy link
Author

nofxx commented Oct 15, 2013

Create bin/ffemacs on your $HOME, and add that key BOOLEAN in firefox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment