GithubHelp home page GithubHelp logo

mlsteele / evil-escape Goto Github PK

View Code? Open in Web Editor NEW

This project forked from syl20bnr/evil-escape

0.0 2.0 0.0 140 KB

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

License: GNU General Public License v3.0

Emacs Lisp 100.00%

evil-escape's Introduction

evil-escape

MELPA MELPA Stable

Table of Contents

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

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 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

And more to come !

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

Install

The package will be available soon 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")

Note: The variable evil-escape-key-sequence must be set before requiring evil-escape.

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)

Note: The variable evil-escape-delay must be set before requiring evil-escape.

Excluding a major mode

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

Limitations

Macro

fd cannot be used during macro recording, use regular ESC instead.

First key

Due to the current implementation only the following characters can be used as the first character of the key sequence:

Keys
b
B
e
E
f
F
G
h
H
j
k
l
K
L
M
n
N
t
T
w
W
{
}
#
%
`
'
(
)
*
,
/
;
?
^
+
_
-

evil-escape's People

Contributors

syl20bnr avatar herbertjones avatar mlsteele avatar razcampagne avatar samdoshi avatar purcell avatar trishume avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.