Ironically, Blogger does something weird with the edit box, so I can't use it for composing this post. Grr.
If using Firefox, set up the "It's All Text" extension; that will let you just set the program to invoke. For me, using Google Chrome, it's the EditWithEmacs extension. But Chrome does not let the extension run an arbitrary program. So you need to have a small daemon running as yourself, whenever you're logged in, which can invoke the editor for you.
Find the profile directory, to copy out the pycl.py script:
$ cd "Library/Application Support/Google/Chrome/Default"; \
Copy that somewhere, make it executable, perhaps strip the quarantine (xattr -d com.apple.quarantine).
Install MacVim. Install the mvim helper too.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
$ launchctl load -S aqua org.grumpy-troll.EditWithEmacs-pycl.plist
- pycl.py lets you pass arguments to the editor program, but it splits the editor name string on comma, to supply the multiple arguments
- use ProgramArguments instead of Program, which does not split on whitespace.
- Use full paths for the program and the program run from that, as the environ will be rather bare, without $PATH available.
-The Grumpy Troll