SavchenkoValeriy / emacs-powerthesaurus

Powerthesaurus integration for Emacs
GNU General Public License v3.0
269 stars 11 forks source link
convenience emacs powerthesaurus writing

emacs-powerthesaurus emacs-powerthesaurus

License: GPL v3 MELPA

emacs-powerthesaurus is a plugin that integrates Emacs with the amazing powerthesaurus.org service for finding synonyms, antonyms, and related terms.

Installation

Install emacs-powerthesaurus from MELPA with the following command:

M-x package-install [RET] powerthesaurus [RET]

Usage

powerthesaurus-lookup-dwim is the main interactive function, and it retrieves results from powerthesaurus.org. It determines the search term based on the active region or the word at point and prompts the user to select the type of query to perform (synonyms, antonyms, related terms, definitions, or sentences).

By default, synonyms, antonyms, and related terms replace the original term, while sentences and definitions display in a separate pop-up buffer. To override this behavior, use the prefix argument (e.g., C-u M-x powerthesaurus-lookup-dwim).

For quick access to specific query types, use these commands:

For non-interactive use, call the powerthesaurus-lookup function.

Additionally, it defines transient transient

and hydra interfaces hydra

Demo

demo1 demo2 demo3 demo4

Deprecated API

The previous API (prior to version 0.2) is still available but not recommended. It consists of three interactive functions:

Changelog

Version 0.4.0

Version 0.3.0

Version 0.2.2

Version 0.2.1

Version 0.2.0

Acknowledgements

I want to give a huge shoutout to the creators of powerthesaurus.org for creating such an amazing tool.

Also, kudos to the authors of alfred-powerthesaurus who figured out internal APIs and whose work I shamelessly copied.