English is not my first language, so feel free to correct any of my mistakes.
Evil operator for evaluating codes, translating text, taking notes, searching via google, etc.
;; change default key bindings (if you want) HERE ;; (setq evil-extra-operator-eval-key (kbd "ge")) (require 'evil-extra-operator) (global-evil-extra-operator-mode 1)
The key binding customization must be placed BEFORE
Commands and default bindings
Operator for evaluating code, i.e., use
grip to evaluate current paragraph,
grr to evaluate current line, or if you are in visual state,
gr to evaluate current active region.
You can customize option
evil-extra-operator-eval-modes-alist to let evil-operator-eval support more language. Example:
(setq evil-extra-operator-eval-modes-alist '((ruby-mode ruby-send-region) (enh-ruby-mode ruby-send-region)))
See document of this option for details.
Operator to search the web via google.
Operator to translate text via google translate. To use this command, you should have google-translate installed.
Operator to highlight region.
To use this command, you should have highlight.el installed.
You can use
hlt-eraser which are provided by highlight.el to erase highlighted area.
Operator to fold region.
To use this command, you should have fold-this.el installed.
You can use
fold-this-unfold-all which are provided by fold-this.el for unfolding.
Operator form of org-capture.
So you can use
goip to capture current paragraph.
Like evil-operator-org-capture, but use remember-region instead of org-capture.