• Stars
    star
    225
  • Rank 177,187 (Top 4 %)
  • Language
    Emacs Lisp
  • License
    GNU General Publi...
  • Created about 10 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Customizable key sequence to escape from insert state and everything else in Emacs.

evil-escape

MELPA MELPA Stable

Table of Contents

Customizable key sequence to escape from insert state and everything else in Emacs.

Version 3.0 is a rewrite of evil-escape and removes the previous limitations:

  • escape sequence can now be used in macros
  • there is no limitation on the choice of key for the first key of the sequence.

Press quickly fd (or the 2-keys sequence of your choice) to:

  • escape from all stock evil states to normal state
  • escape from evil-lisp-state to normal state
  • escape from evil-iedit-state to normal state
  • abort evil ex command
  • quit minibuffer
  • abort isearch
  • quit ibuffer
  • quit image buffer
  • quit compilation buffers
  • quit magit buffers
  • quit help buffers
  • quit apropos buffers
  • quit ert buffers
  • quit undo-tree buffer
  • quit paradox
  • quit gist-list menu
  • quit helm-ag-edit
  • hide neotree buffer
  • quit evil-multiedit

And more to come !

Contributions to support more buffers are very welcome: Escape Everything !

Install

The package is available in MELPA.

If you have MELPA in package-archives, use

M-x package-install RET evil-escape RET

If you don't, open evil-escape.el in Emacs and call package-install-from-buffer.

Usage

To toggle the evil-escape mode globally:

M-x evil-escape-mode

Customization

Key sequence

The key sequence can be customized with the variable evil-escape-key-sequence. For instance to change it for jk:

(setq-default evil-escape-key-sequence "jk")

Delay between keys

The delay between the two key presses can be customized with the variable evil-escape-delay. The default value is 0.1. If your key sequence is composed with the two same characters it is recommended to set the delay to 0.2.

(setq-default evil-escape-delay 0.2)

Unordered key sequence

The key sequence can be entered in any order by setting the variable evil-escape-unordered-key-sequence to non nil.

Excluding a major mode

A major mode can be excluded by adding it to the list evil-escape-excluded-major-modes.

Enable only for a list of major modes

An inclusive list of major modes can defined with the variable evil-escape-enable-only-for-major-modes. When this list is non-nil then evil-escape is enabled only for the major-modes in the list.

Inhibit evil-escape

A list of zero arity functions can be defined with variable evil-escape-inhibit-functions, if any of these functions return non nil then evil-escape is inhibited. It is also possible to inhibit evil-escape in a let binding by setting the evil-escape-inhibit variable to non nil.

Assign a key binding directly

It is possible to bind evil-escape' function directly, for instance to execute evil-escape with C-c C-g:

(global-set-key (kbd "C-c C-g") 'evil-escape)

More Repositories

1

spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
Emacs Lisp
23,656
star
2

spacelpa

ELPA repository for stable versions of Spacemacs
Emacs Lisp
91
star
3

evil-lisp-state

An evil state to navigate Lisp code and modify it with smartparens
Emacs Lisp
91
star
4

evil-tutor

Vimtutor adapted to Emacs+Evil and wrapped in a major mode.
Emacs Lisp
87
star
5

evil-iedit-state

Slick Evil states for iedit.
Emacs Lisp
58
star
6

vi-tilde-fringe

Display tildes on empty lines in the Emacs fringe a la Vi.
Emacs Lisp
30
star
7

spacemacs-elpa-mirror

ELPA archive for Spacemacs packages.
Emacs Lisp
28
star
8

spacemacs.org

Spacemacs website.
JavaScript
22
star
9

i3status-keyboard-leds

A python wrapper for i3status adding current status of keyboard leds (Caps lock, Num lock)
Python
19
star
10

develop.spacemacs.org

Development version of Spacemacs website.
JavaScript
17
star
11

windawesome_config

My windawesome confguration trying to clone my i3 configuration.
Python
10
star
12

nose.el

This gives a bunch of functions that handle running nosetests on a particular buffer or part of a buffer. Fork from https://bitbucket.org/durin42/nosemacs/overview
Emacs Lisp
7
star
13

config.mac

Dot files for my mac
Python
6
star
14

breakingbadapi

Breaking Bad API (useful to complete udemy course "The Vue 3 Bootcamp - The Complete Developer Guide"
JavaScript
6
star
15

myledgerpal

My ledger pal helps me to import CSV reports produced by my bank.
Python
2
star
16

evil-iedit-multiple-cursors

Multiple cursors for iedit and Evil.
Emacs Lisp
1
star
17

flymake-elixir

Emacs flymake syntax-checker for elixir .ex files
Emacs Lisp
1
star
18

i3ci

i3 configuration improved
Python
1
star
19

config

Dot files for my Linux boxes
Vim Script
1
star
20

jobgenerator-jenkins

This plugin adds a new job type "Job Generator" which can generate new projects when executed.
Java
1
star