If you use Icicles then you can use C-SPC
to go to any marker, choosing it using completion against the text of its line.
With no prefix arg or a positive prefix arg C-SPC
is just set-mark-command
, as usual in Emacs (set the mark).
C-0 C-SPC
(prefix arg 0) invokes command icicle-goto-any-marker
, which lets you choose any marker in any buffer.
C-- C-SPC
(negative prefix arg) invokes icicle-goto-marker
, which lets you choose a marker in the current buffer.
Each of the go-to-marker commands is a multi-command, which means you can act on any number of completion candidates, so you can navigate among the markers that match your current input in the minibuffer (with an empty minibuffer, all markers are candidates).
C-h f icicle-goto-marker
:
icicle-goto-marker
is an interactive Lisp function in
icicles-cmd2.el
.
It is bound to menu-bar search goto icicles icicle-goto-marker
.
(icicle-goto-marker)
Go to a marker in this buffer, choosing it by the line that includes it.
If crosshairs.el
is loaded, then the target position is highlighted.
By default, candidates are sorted in marker order, that is, with
respect to their buffer positions. Use C-M-,
or C-,
to change the
sort order.
During completion you can use these keys:
C-RET
- Goto marker named by current completion candidate
C-down
- Goto marker named by next completion candidate
C-up
- Goto marker named by previous completion candidate
C-next
- Goto marker named by next apropos-completion candidate
C-prior
- Goto marker named by previous apropos-completion candidate
C-end
- Goto marker named by next prefix-completion candidate
C-home
- Goto marker named by previous prefix-completion candidate
<S-delete>
- Delete marker named by current completion candidate
When candidate action and cycling are combined (e.g. C-next
), option
icicle-act-before-cycle-flag
determines which occurs first.
With prefix C-M-
instead of C-
, the same keys (C-M-mouse-2
,
<C-M-f1>
, C-M-down
, and so on) provide help about candidates.
Use mouse-2
, RET
, or S-RET
to choose a candidate as the final
destination, or C-g’
to quit. This is an Icicles command - see
command icicle-mode
.
See also commands icicle-goto-any-marker
and
icicle-goto-global-marker
.