Tuesday, November 2, 2010

Just browsing

It's handy in emacs to be able to go straight to your browser to view a page, and you can do fancy stuff with `webjump' as I mentioned in a previous post.

Another handy function is `browse-url' which will prompt for the url but default to whatever your point is at.

If you're in a html file and you'd like to open that with your browser then `browse-url-of-file' will open it up.

Finally, and I just found this today, if you have some html code in a buffer that isn't even a file, you can open that in your browser to using `browse-url-of-buffer' and emacs will write it to a temporary file and open that in the browser for you.


3 comments:

Anonymous said...

browse-url-of-buffer is nice. Thanks for this (and the webjump info too).

Zita said...

Wow, really you have a good idea and you guys are really intelligent.. Thats great to simplify the work.. I will take down this function. Thanks for sharing. Ecommerce website developers

domain registration india said...

Really great idea and i appreciate your thinking. thank for sharing.