0

For instance: When I am in C-c C-e (export), by pressing # you get extra options. How to know this?

Another example: When in a helm session, by pressing C-c C-f, you activate helm-follow-mode. But this is not obvious.

Is there a "help" shortcut to show potential keys in such buffers? Thanks!

10
  • How about: C-h ?
    – rpluim
    Feb 4 at 10:36
  • Please clarify your question. I get the impression you are really trying to ask what keys are available onthe prefix key C-c in some particular context. (And if so, one answer to that is to use C-h: C-c C-h.)
    – Drew
    Feb 4 at 16:13
  • Assuming you are talking about C-c C-e in Org mode, there is no way to use a general mechanism to see what keys are bound there, simply because that is not a mode with its own keymap, it's a menu constructed by org-export-dispatch internally. The only things that are recognized are the things that the menu shows you: the various key combos to export using a particular backend, whether to use a buffer or a file (and whether to show the result) and various other things among which # inserts a template of options for the category (or backend) of your choice. I know nothing about helm.
    – NickD
    Feb 4 at 18:14
  • BTW, for the Org mode export case, if you don't see the menu, then check the value of org-export-use-expert-ui. If it is non-nil, you might want to set it to nil, so you can see the menu.
    – NickD
    Feb 4 at 18:23
  • Thanks. I have clarified my question. I see that there is not a way to see the available keys in a session. I just learned about the #, which it wasn't obvious. But I had to look it up. Feb 4 at 20:23
1

I second the recommendation to use which-key. It's been a valuable part of my configuration for some time.

1

If I may consider you thought about "..a way to see the available keys in a session." then you are probably looking for documentation depending on the mode you are in right now.

  1. If it is just about keybindings then I highly recommend the which-key package. Basically this allows you to stop in the middle of any prefix-key and displays follow up solutions in a popup-buffer
  2. If it is about the major mode you are interested in, then you should have a look at C-h i. This will let you navigate through most of your installed packages built in documentation. Not every mode/package is fully documented but e.g. the Org-Mode part is great and I actually learned a lot about stuff I wasn't even aware of.
  3. If it is about an overview of the current major and all minor modes that are active then you are probably searching for C-h m that will give you an overview of e.g. active modes, prefix keys and so on.

I hope that helped.

2
  • Thanks for this, not exactly what I asked, but useful in other contexts. One thing: C-h i is boung in my Emacs to "C-h i runs the command info", so it is a list of major topics in Emacs, I understood you said it would give me a list of the major modes I was in. Feb 5 at 5:02
  • You are right. I will edit the answer
    – Tietan
    Feb 6 at 7:25

Your Answer

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

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