Sometimes it’s useful to be able to open the file you’re editing in Emacs in an external program. For instance - you might be editing some HTML file and you might want to see how is it looking in a browser. I use the following handy command to do so:
1 2 3 4 5 6 7 8 9 10 11 12 13
On OSX it will use the built-in
open program to decide which program
to open the file with. On Linux & *BSD it will use
xdg-open. On all
other operating systems you’ll be prompted to enter the name of the
program in the minibuffer (with autocompletion for the program name).
With a prefix argument you’ll always be prompted for the name of the program to use.
I find it convenient to bind the command to
This command is naturally part of
Prelude(but is named