skuro
skuro

Reputation: 13514

How can I open a remote file over HTTP with Emacs?

Most of the open source software around expose its code over some HTTP service. I would like to open and browse such code from Emacs, but AFAICS tramp only allows for ssh and ftp.

My first question is thus how to open an HTTP URL for reading from within Emacs. Then, the possibly more advanced question is how to do that from the shell and emacsclient.

How would you do it?

Upvotes: 19

Views: 4626

Answers (2)

phils
phils

Reputation: 73256

M-x browse-url-emacs RET http... RET

You might need to use M-x normal-mode RET afterwards to set the appropriate mode for the buffer.

Upvotes: 20

db48x
db48x

Reputation: 3168

There are two or three html viewers for emacs; I'd use emacs-w3m. If you want to edit something remote via HTTP(S), perhaps Tramp's dav external method will work for you.

Upvotes: 3

Related Questions