1

Due to my Ubuntu 21.04 Wayland being flaky (I suspect), I can't always get the org menu to drop down properly, and I like to do a "Refresh setup current buffer" often. How could I do this with a key chord? Help/Apropos doesn't reveal any likely candidates.

2
  • C-c C-c on any keyword line #+....: will do that.
    – NickD
    Sep 6, 2021 at 17:34
  • Is the menu broken-ness like this?
    – Rusi
    Sep 9, 2021 at 5:03

1 Answer 1

1

You could restart org-mode with M-x org-mode-restart and bind it to a key.

6
  • ... which is exactly what C-c C-c does on a keyword line.
    – NickD
    Sep 8, 2021 at 5:01
  • Yes, however M-x org-mode-restart is like C-c C-c on every single #+... line. It's handy when you have several #+... lines in your document since you don't have to find the specific line causing the problem, if a #+.. is the problem at all, which might not be the case.
    – GNUmon
    Sep 8, 2021 at 8:05
  • You can do C-c C-c on any keyword line, not just the one that caused a problem. You can even add one #+FOO: bar right where you are, do C-c C-c and delete it afterwards.
    – NickD
    Sep 8, 2021 at 13:18
  • 2
    No, no, no: you only do it ONCE on ANY keyword line: it runs org-mode-restart just as if you had done M-x org-mode-restart or whether you bind org-mode-restart to some (other) key and use that. The point is that I don't have to remember yet another obscure used-defined key binding: I (almost) always have a keyword line that I can use C-c C-c on (and I can do M-x org-mode-restart on those rare occasions that there isn't one (or I can add one as pointed out before).
    – NickD
    Sep 8, 2021 at 14:11
  • 2
    Thanks for the clarification NickD, you're absolutely right. I erroneously thought C-c C-c just reloads the option of the #+ line you're on, but that is not the case. Thanks for your comments, I learned something new again! :)
    – GNUmon
    Sep 8, 2021 at 15:11

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.