19

I'm using Helm to perform completions for my interactive commands, but it only lets me cycle through those commands which I have used in the past (i.e. 4 Candidate(s)). I don't want this behavior, instead, when pressing C-n/C-p it should cycle across all pattern matched commands. How do I change this behavior?

enter image description here

1
  • 1
    Are you sure it only let's you cycle through last used commands? I have latest Helm installed and pressing C-n after last history entry correctly moves into the "Emacs commands" section Sep 23, 2014 at 22:13

2 Answers 2

18

C-o is bound to helm-next-source by default. This will cycle through available sources. In this case, the sources are your command history and available commands.

If you were at the top of your history in the example image, then pressed C-o, it'd move you to the first entry in Emacs Commands. C-o again would move you back to the top of the history.

To move to the command list automatically from the bottom of the history, set helm-move-to-line-cycle-in-source to nil.

4

This isn't an answer per se but it might improve the UX to something more of your liking: if you set helm-mode-reverse-history to t it will put the "Emacs Command History" source after "Emacs Commands".

Or from the Emacs docs themselves:

Display history source after current source in helm-mode handled commands.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.