Skip to content
Evil operator for evaluating codes, translating text, taking notes, searching via google, etc.
Emacs Lisp
Find file
Latest commit b46b00d @Dewdrops Merge pull request #2 from Devagamster/patch-1
Single typo :)
Failed to load latest commit information.
README.md Single typo :)
evil-extra-operator.el correct autoloads

README.md

English is not my first language, so feel free to correct any of my mistakes.

evil-extra-operator

Evil operator for evaluating codes, translating text, taking notes, searching via google, etc.

Installation

;; 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 (require 'evil-extra-operator).

Commands and default bindings

gr (evil-operator-eval)

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.


gG (evil-operator-google-search)

Operator to search the web via google.


g. (evil-operator-google-translate)

Operator to translate text via google translate. To use this command, you should have google-translate installed.


gh (evil-operator-highlight)

Operator to highlight region. To use this command, you should have highlight.el installed. You can use hlt-eraser-mouse or hlt-eraser which are provided by highlight.el to erase highlighted area.


gs (evil-operator-fold)

Operator to fold region. To use this command, you should have fold-this.el installed. You can use fold-this-unfold-at-point or fold-this-unfold-all which are provided by fold-this.el for unfolding.


go (evil-operator-org-capture)

Operator form of org-capture. So you can use goip to capture current paragraph.


gR (evil-operator-remember)

Like evil-operator-org-capture, but use remember-region instead of org-capture.

See also

tarao's evil-plugins provides operator for comment and moccur.

Something went wrong with that request. Please try again.