In some emacs documentation there are underlined texts that resemble links. For instance, by M-x list-packages we get the following: document with links

In some GUI version of Emacs like Emacs For Mac OS X (but not xterm), we can actually click on the links and get something like: enter image description here

I wonder whether that's possible for command line? Thanks in advance.

  • 1
    Upvoted for cluing me in to the existence of ELPA -- thanks! I've been using Emacs for a couple of years now, and I'm still discovering new capabilities almost daily. – Aaron Miller May 9 '13 at 20:10
  • @AaronMiller Yeah, Emacs is fairly easy to get hands on, but there are always a million ways to optimize workflow. It's such an almighty platform :) – 4ae1e1 May 9 '13 at 23:07
  • Yeah, all it needs now is a bootloader. :D – Aaron Miller May 10 '13 at 6:02

It's not natively possible (as far as I know) to click on a link in a terminal Emacs session and have Emacs treat it as it would in a session running under X. However, in most (if not all) cases where Emacs offers a hyperlink, RET while point is on the link will have the same effect as a click would.

The alternative would be finding a way for the terminal to pass click events to Emacs, and for Emacs to properly interpret such events once received. I've no doubt that's possible, but I haven't been able to find a way to do it; in the meantime, it should be almost as fast (if not faster) to do something like e.g.

C-s adapti RET RET

to isearch straight to the 'adaptive-wrap' link, then complete the search (the first RET) and activate the link (the second).

  • Great, RET is exactly what I'm looking for! Thanks. – 4ae1e1 May 9 '13 at 18:12
  • Sure! Always glad to help out another Emacs user. – Aaron Miller May 9 '13 at 18:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.