Let's say I'm completing a file with counsel-find-file. I then press M-o to show the menu with available actions. If within that menu, I press C-g, I get the message "C-g is not bound".

The expected behavior would be for the menu to quit (and to go back to where I was completing the file name).

How can I set the behavior I want? (I don't know what is the keymap used by Counsel's menu and also don't know how to quit the menu).

  • That's what it does for me (C-g quits the menu and returns me to the file selection interface) – Tyler Jan 22 at 22:29
  • 1
    If that doesn't work for you, likely there's something weird in your configuration that changed the default. The keymap is ivy-minibuffer-map, and it should include (7 . minibuffer-keyboard-quit) when you view it with C-h v. – Tyler Jan 22 at 22:36
  • Do you see the same thing when you start Emacs with emacs -Q (no init file)? If not then bisect your init file to find the culprit. – Drew Jan 22 at 22:55
  • see emacs.stackexchange.com/questions/28429/… for tips about debugging your config, including how to load just one package, and no other customizations – Tyler Jan 23 at 15:01
  • Thanks you. I created an init.el file that only loads Ivy and Counsel but still have the problem. I'm using Emacs 26.3 on Linux. – scaramouche Jan 23 at 19:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.