Skip to content

abo-abo/ace-link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

ace-link

GNU Emacs package for selecting a link to jump to

What and why

Currently to jump to a link in an Info-mode or help-mode or org-mode or eww-mode buffer, you can tab through the links to select the one you want. This is an O(N) operation, where the N is the amount of links. This package turns this into an O(1) operation, or at least O(log(N)) if you manage to squeeze thousands of links in one screen:). It does so by assigning a letter to each link using ace-jump-mode.

Install

Either clone from here or install from MELPA (recommended).

Setup

Put this in your ~/.emacs:

(ace-link-setup-default)

This will bind ace-link-info and ace-link-help to o in their respective modes. This shortcut was previously unbound and is very close to l which is the shortcut to go back.

To bind ace-link-org, use something like this:

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

If you use ert, ace-link-help also works on ert results:

(require 'ert)
(define-key ert-results-mode-map "o" 'ace-link-help)

Usage

Just press o when you're in Info-mode or help-mode or eww-mode.

Here's a screencast of browsing Info using ace-link-info:

gif

About

Quickly follow links in Emacs

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 29