Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

http

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?

like image 347
skuro Avatar asked Mar 09 '13 09:03

skuro


1 Answers

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.

like image 183
phils Avatar answered Oct 04 '22 20:10

phils