Opening the File at Point

Xah Lee has posted a nice bit of Elisp that allows you to open the file at point. Of course, Emacs has the ffap command to do that but, as Lee points out, there are a couple of (small) problems with it. Lee's code takes care of opening not just files but also URLs.

If you find yourself needing to do this more than once a month, it may be worth your while to add Lee's code to your .emacs or init.el file. I especially like the way it handles regular files and URLs. If you have special related needs, it would probably be easy to adapt Lee's code to meet those needs as well.

This entry was posted in General and tagged . Bookmark the permalink.
  • Phil

    FWIW, ffap handles URLs just fine, and with more general protocol support than just "https?" (unless you have set ffap-url-regexp to nil, or similar).