winterTTr / ace-jump-mode

a quick cursor jump mode for emacs
https://github.com/winterTTr/ace-jump-mode/wiki
605 stars 72 forks source link

ace-jump-line-mode wastes first key #74

Open WorldsEndless opened 9 years ago

WorldsEndless commented 9 years ago

I just installed ace-jump mode this morning and find it excellent. However, when I try to jump to lines, the first ace option is `a' for ALL lines, and I have to press it before it shows me distinct keys to jump to. This means that I need a minimum of two keys to get to my line. Mode doesn't seem to matter. My only modifications are as follows:

(setq ace-jump-mode-submode-list '(ace-jump-line-mode ace-jump-char-mode ace-jump-word-mode)) ;; complementary to ace-isearch
(define-key global-map (kbd "C-c SPC") 'ace-jump-mode

I'm using GNU Emacs 25.0.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.9) of 2015-02-10 on localhost.localdomain

winterTTr commented 9 years ago

Currently, the default behavior for ace jump is global, that means ace jump can help you to go to any line in any opened emacs window.

Your case should be that you open multi emacs window and there is more than 26 lines for all the lines in all opened window, so ace jump need to give a two level selection key.

If you only want to use ace within the current window,

(setq ace-jump-mode-scope 'frame)

Amorymeltzer commented 5 years ago

Works for me!