Using ace-link with Org Mode

I was checking the ace-link page and discovered something I didn’t
know. You can also configure ace-link to work in Org mode. When
invoked, ace-link-org will build the typical avy tree—such as you
get with ace-jump and friends—and allow you to quickly choose the
desired link by pressing a single1 key. As abo abo says, choosing
the correct link goes from an \(O(n)\) operation, where \(n\) is the
number of visible links, to an \(O(1)\) operation.

I use ace-link all the time for Info and HELP files and occasionally
for eww. The ace-link-setup-default command sets up many file
types but not Org mode. To do that, abo-abo recommends

(define-key org-mode-map (kbd "M-o") 'ace-link-org)

The【Meta+o】binding is already assigned to something to do with faces. Since I’ve
used that exactly zero times in my entire Emacs using years, I had no
hesitation in rebinding it.

Footnotes:

1

Or possibly two or three if you have a lot of links visible
in the buffer.

This entry was posted in General. Bookmark the permalink.