Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gridaphobe/evil-god-state
https://github.com/gridaphobe/evil-god-state
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gridaphobe/evil-god-state
- Owner: gridaphobe
- License: gpl-2.0
- Created: 2014-05-04T14:52:06.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-04-04T00:16:23.000Z (almost 5 years ago)
- Last Synced: 2024-08-02T01:26:20.202Z (6 months ago)
- Language: Emacs Lisp
- Homepage:
- Size: 200 KB
- Stars: 55
- Watchers: 5
- Forks: 8
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# Evil God State
This is an [evil-mode][] state for using [god-mode][].
It provides a command `evil-execute-in-god-state` that switches to `god-mode` for the next command. I bind it to `,`
```lisp
(evil-define-key 'normal global-map "," 'evil-execute-in-god-state)
```for an automatically-configured leader key.
Since `evil-god-state` includes an indicator in the mode-line, you may want to use `diminish` to keep your mode-line uncluttered, e.g.
```lisp
(add-hook 'evil-god-state-entry-hook (lambda () (diminish 'god-local-mode)))
(add-hook 'evil-god-state-exit-hook (lambda () (diminish-undo 'god-local-mode)))
```It's handy to be able to abort a `evil-god-state' command. The following will make the key unconditionally exit evil-god-state.
```lisp
(evil-define-key 'god global-map [escape] 'evil-god-state-bail)
```[evil-mode]: https://gitorious.org/evil/
[god-mode]: https://github.com/chrisdone/god-mode