A text refinement tool for Emacs powered by gptel. You need to set up gptel before using microtext-refinement.
Use your favorite remote source code installer with use-package, such as quelpa, straight, etc. Below is an example for Emacs 30+:
(use-package microtext-refinement
:vc (:url "https://github.com/cxa/microtext-refinement"))Select a region that you need to refine, then use M-x to call mtr-refine. You can also bind a key to this command, for example:
(use-package microtext-refinement
:vc (:url "https://github.com/cxa/microtext-refinement")
:bind ("M-R" . mtr-refine))mtr-gptel-backend: The default value isnil, which means thatgptel-backendwill be used by default. For instructions on how to add a backend to meet your specific needs, please refer to this link.mtr-prompt-role: Inform the LLM of your requirements. Feel free to customize if you have additional specific needs.mtr-explanation-lang: In which language should the explanation be provided? The default is English.