Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make 'avy-goto-word-1 work with the form-feed character ("^L") (used … #167

Closed
wants to merge 1 commit into from

Conversation

troyp
Copy link

@troyp troyp commented Aug 2, 2016

…to separate functions in emacs lisp files)

In Emacs Lisp files, especially those which are part of Emacs itself, form-feed characters (^L) are used to separate definitions or groups of definitions (and are represented in emacs-lisp-mode as coloured dividers). It would be convenient to be able to jump to these dividers with 'avy-word, but this currently doesn't work (even if the character is added to avy-subword-extra-word-chars).

This patch to 'avy-goto-word-1 simply tests if the character is ^L and if so makes an avy-goto-subword-0 call specifically for ^L. If not, it proceeds as usual.

Possibly this should be limited to emacs-lisp-mode, but that might complicate things if there were avy -all-windows or -other-window commands (I can't see any such commands, but it seems like something that may appear later).

@abo-abo abo-abo closed this in a911903 Aug 3, 2016
@abo-abo
Copy link
Owner

abo-abo commented Aug 3, 2016

Thanks for the suggestion. I've solved it more generally, so now "^A" -- "^Z" work.

@troyp
Copy link
Author

troyp commented Aug 3, 2016

Oh, okay. Great, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants