This package is inspired by immersive-translate/immersive-translate .
You must also install karthink/gptel .
(add-to-list 'load-path "/path-to/emacs-immersive-translate/")
(require 'immersive-translate)
(add-hook 'elfeed-show-mode-hook #'immersive-translate-setup)
(add-hook 'nov-pre-html-render-hook #'immersive-translate-setup)
immersive-translate-buffer
Translate the current buffer.
immersive-translate-paragraph
Translate the current paragraph.
immersive-translate-clear
Clear all translations.
immersive-translate-auto-mode
Translate the current paraghraph automatically after Emacs is idle for
immersive-translate-auto-idle
seconds
immersive-translate-auto-idle
Perform translation the next time Emacs is idle for seconds. Used by
immersive-translate-auto-mode
.immersive-translate-exclude-shr-tag
HTML components that should not be translated. This variable applies to any buffer generated by shr.el, such as buffers in
elfeed-show-mode
,nov-mode
andmu4e-view-mode
.immersive-translate-gptel-system-prompt
System prompt used by ChatGPT.
immersive-translate-gptel-user-prompt
User prompt used by ChatGPT.
immersive-translate-disable-predicates
Predicates, return t when the current paragraph should not be translated. Predicate functions don’t take any arguments.