Last active
December 25, 2015 13:59
-
-
Save nofxx/6987409 to your computer and use it in GitHub Desktop.
firefox + better errors + emacs => click to fix error!
This file contains hidden or 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
#!/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}"` |
This file contains hidden or 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
Create a **BOOLEAN** key: | |
network.protocol-handler.expose.emacs;false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create bin/ffemacs on your $HOME, and add that key BOOLEAN in firefox.