0

I have bound C-x t to the command thesaurus-choose-synonym-and-replace (from the thesaurus library). When I execute the command, I get a popup under Windows 11 like this:

enter image description here

I can pick items by pressing the first letter, but I would prefer not to have a Windows popup at all. I would prefer, for example, that the menu appear in the minibuffer, since I work faster if I can use the keyboard and not have to use the mouse. How might I accomplish this?

2
  • 1
    AFAICT, the only choices are x-popup-menu and dropdown-list (presumably only the latter is available on Windows). Do C-h v thesaurus-prompt-mechanism for more info.
    – NickD
    Commented Mar 18 at 0:51
  • I changed the value of {thesaurus-prompt-mechanism} from {x-popup-menu} to {dropdown-list}, but still get a Windows popup, not anything like a typical Emacs list. Commented Mar 19 at 2:52

1 Answer 1

1

I guess this isn't vanilla Emacs (i.e., emacs -Q). It's not clear (to me) what library you're using for that command.


But if you are open to another library, maybe try Synonyms. Command synonyms prompts for a word (default: selected word or word under cursor) and lets you see/grab synonyms, with completion.

It doesn't automatically replace the selected word or word at point with any of the synonyms. But you easily could write a command to do that (or just copy and paste one).

1
  • I'll try this and see how it works for me. Commented Mar 19 at 2:53

Your Answer

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

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