I need to disable the Centaur-Tabs in the Choices buffer of ispell/flyspell. In Centaur Tab's site it says to add a hook, so I tried this:

(add-hook 'ispell-choices-buffer 'centaur-tabs-local-mode)

But I still get the tabs, and I can't see the words:

enter image description here

I'm using Emacs 27.0.91 in Windows 10.


Emacs 26.3 contains an ispell-update-post-hook within ispell-command-loop; however, that hook runs in the working buffer just after the ispell-choices-buffer is created. I have never installed and/or used centaur-tabs, but it is my understanding (based upon a brief review of that library) that most of the code was copied straight from the original tabbar.el written by David Ponce. As such, centaur-tabs almost certainly relies upon the header-line-format variable to generate the view of tabs. Although the following code is untested, perhaps it will suffice to answer the question:

(add-hook 'ispell-update-post-hook
  (lambda ()
    (with-current-buffer ispell-choices-buffer
      (setq header-line-format nil))))
| improve this answer | |

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.