Alexander-Miller/treemacs@96a808f067 -> Alexander-Miller/treemacs@820b09db10 FStarLang/fstar-mode.el@36ffb46259 -> FStarLang/fstar-mode.el@3bbfe93abd JuliaEditorSupport/julia-emacs@0f4d74f904 -> JuliaEditorSupport/julia-emacs@5c940c4ba3 ProofGeneral/PG@85cde55a86 -> ProofGeneral/PG@af2e7b9a4e Silex/docker.el@3bea08f1d2 -> Silex/docker.el@464105ed8b Wilfred/helpful@6a4d5e0760 -> Wilfred/helpful@03756fa6ad abo-abo/swiper@e33b028ed4 -> abo-abo/swiper@2529a23f9f agda/agda@49a12eab7f -> agda/agda@900bdaa335 alexluigit/dirvish@ecb7c42e20 -> alexluigit/dirvish@e8ec5765da ardumont/markdown-toc@d2fb4cbd95 -> ardumont/markdown-toc@1b0c5ae7f3 bastibe/org-journal@cf72173233 -> bastibe/org-journal@e581bf5530 clojure-emacs/cider@fdfa7c2200 -> clojure-emacs/cider@12f10a6f4b clojure-emacs/clojure-mode@eabe29b076 -> clojure-emacs/clojure-mode@b766094aea company-mode/company-mode@8d599ebc8a -> company-mode/company-mode@41f07c7d40 creichert/ido-vertical-mode.el@b1659e967d -> creichert/ido-vertical-mode.el@35c521789b dgutov/diff-hl@7da881a957 -> dgutov/diff-hl@aa667ac58a dimitri/switch-window@61e425e703 -> dimitri/switch-window@8f771b571a doomelpa/code-review@eeffdd9e20 -> doomelpa/code-review@fba8fe3343 editorconfig/editorconfig-emacs@1a9942746c -> editorconfig/editorconfig-emacs@d2beb3ec2e ema2159/centaur-tabs@7704f2017c -> ema2159/centaur-tabs@a790dc8fb6 emacs-circe/circe@d0e531bd2a -> emacs-circe/circe@e5e64d549f emacs-citar/citar-org-roam@ff38add0aa -> emacs-citar/citar-org-roam@9750cfbbf3 emacs-ess/ESS@56f355acbd -> emacs-ess/ESS@d19efaae12 emacs-helm/helm-org@22d60952f8 -> emacs-helm/helm-org@4744ca7f8b emacs-helm/helm@f948dc4464 -> emacs-helm/helm@5a222a8a6b emacs-lsp/dap-mode@56e92dd86b -> emacs-lsp/dap-mode@b977566657 emacs-lsp/emacs-ccls@28c7930c89 -> emacs-lsp/emacs-ccls@5636ee6c50 emacs-lsp/helm-lsp@cf4ea6fb42 -> emacs-lsp/helm-lsp@54926afd10 emacs-lsp/lsp-dart@2170823139 -> emacs-lsp/lsp-dart@34e2a1191f emacs-lsp/lsp-haskell@cd0f5d251c -> emacs-lsp/lsp-haskell@081d5115ce emacs-lsp/lsp-ivy@bdc730a209 -> emacs-lsp/lsp-ivy@3ee14a24bb emacs-lsp/lsp-java@6cfff8761e -> emacs-lsp/lsp-java@21c89243ad emacs-lsp/lsp-metals@345b4fa80e -> emacs-lsp/lsp-metals@e1d9d04f3b emacs-lsp/lsp-mode@7c0df125c1 -> emacs-lsp/lsp-mode@54251da4ff emacs-lsp/lsp-pyright@b4cee81af4 -> emacs-lsp/lsp-pyright@73377169be emacs-lsp/lsp-sourcekit@3bd9750e7e -> emacs-lsp/lsp-sourcekit@1fb230109e emacs-lsp/lsp-treemacs@312dee2b3a -> emacs-lsp/lsp-treemacs@3e5550f278 emacs-lsp/lsp-ui@09d4080642 -> emacs-lsp/lsp-ui@a0dde8b52b emacs-php/composer.el@6c7e19256f -> emacs-php/composer.el@eba6b953a4 emacs-php/php-mode@5b6cc1c068 -> emacs-php/php-mode@462b62248f emacs-php/psysh.el@ae15a36301 -> emacs-php/psysh.el@223bf55975 emacs-rustic/rustic@22a5ef8bfd -> emacs-rustic/rustic@29f912c750 emacs-straight/auctex@6fb366064c -> emacs-straight/auctex@f58a2b972b emacs-straight/dape@c7a1f1abdb -> emacs-straight/dape@588a907c87 emacs-straight/eglot@6a9e0c76b9 -> emacs-straight/eglot@928c216af5 emacs-straight/org-mode@74dde3abae -> emacs-straight/org-mode@79781bac69 emacs-straight/project@369ac661c8 -> emacs-straight/project@27c6b04914 emacs-straight/sml-mode@021233f60a -> emacs-straight/sml-mode@c33659fd9b emacs-straight/use-package@d79bac4574 -> emacs-straight/use-package@bbfe01bdf1 emacs-straight/vundo@c32481ab48 -> emacs-straight/vundo@5a666b34e4 emacs-tree-sitter/elisp-tree-sitter@8516c9977e -> emacs-tree-sitter/elisp-tree-sitter@12f92ef399 emacs-tree-sitter/tree-sitter-langs@2ff446b4b8 -> emacs-tree-sitter/tree-sitter-langs@4eb4989d1a emacsmirror/org-contrib@8d14a600a2 -> emacsmirror/org-contrib@f1f6b6ec81 emacsorphanage/dart-mode@6229941ec5 -> emacsorphanage/dart-mode@f82ff05230 emacsorphanage/ox-pandoc@34e6ea97b5 -> emacsorphanage/ox-pandoc@5766c70b6d emacsorphanage/quickrun@4b6df453f8 -> emacsorphanage/quickrun@a5c9a5e8c6 ericdallo/hover.el@4ca0638a14 -> ericdallo/hover.el@1b380fa395 erlang/otp@740af6bae5 -> erlang/otp@b9d3ec017d flycheck/flycheck@b9db1379dc -> flycheck/flycheck@16b536b031 fsharp/emacs-fsharp-mode@bf7a11e1ba -> fsharp/emacs-fsharp-mode@8d08f05788 godotengine/emacs-gdscript-mode@3f3739dd88 -> godotengine/emacs-gdscript-mode@5136be407a greghendershott/racket-mode@88d82e249e -> greghendershott/racket-mode@c4cc7c160b hakimel/reveal.js@dfc5690c6d -> hakimel/reveal.js@eb95b14531 haskell/haskell-mode@be2639592f -> haskell/haskell-mode@e9c3567393 https://git.notmuchmail.org/git/notmuch@dfc800c26e7b -> https://git.notmuchmail.org/git/notmuch@d8ebc9cf80b6 https://git.savannah.gnu.org/git/emms.git@8713a0ee985c -> https://git.savannah.gnu.org/git/emms.git@abb4f614dae6 idris-hackers/idris-mode@09de86a8f0 -> idris-hackers/idris-mode@ccf32ed0b5 jcollard/elm-mode@699841865e -> jcollard/elm-mode@90b72cd2c9 jdtsmith/indent-bars@fa293f98ab -> jdtsmith/indent-bars@ea74161b46 jdtsmith/ultra-scroll@b72c507f67 -> jdtsmith/ultra-scroll@f2e4fba601 jimhourihan/glsl-mode@c5f2c2e7ed -> jimhourihan/glsl-mode@86e6bb6cf2 joaotavora/sly@c48defcf58 -> joaotavora/sly@ce17a568ef jrblevin/markdown-mode@d2d960bec1 -> jrblevin/markdown-mode@90ad4af79a jschaf/powershell.el@38727f1cda -> jschaf/powershell.el@9efa1b4d0a magit/magit@bf58615a03 -> magit/magit@531e7ca619 minad/cape@f72ebcaeff -> minad/cape@5546a2db8e minad/consult-flycheck@3bc2141daf -> minad/consult-flycheck@77d3e790a3 minad/consult@f94d557807 -> minad/consult@ee64a2a299 minad/corfu@061d926d0f -> minad/corfu@2e05fe8244 minad/goggles@d71e85ff8d -> minad/goggles@6141d31c51 minad/marginalia@c51fd9e4d4 -> minad/marginalia@2ff4d690f7 minad/org-modern@3cc432dc99 -> minad/org-modern@6158d3d007 minad/vertico@e0bb699ebf -> minad/vertico@304be874be mohkale/consult-yasnippet@834d39acfe -> mohkale/consult-yasnippet@a3482dfbdc msnoigrs/ox-rst@b4ba5c7e95 -> msnoigrs/ox-rst@b73eff187e oantolin/embark@d5df0eff18 -> oantolin/embark@923d0ec52e ocaml/dune@a46193e167 -> ocaml/dune@422986440e ocaml/merlin@2eeb63d002 -> ocaml/merlin@e4c66857ad oer/org-re-reveal@53e9be7d89 -> oer/org-re-reveal@89ed240450 polymode/poly-R@8024e852cf -> polymode/poly-R@fee0b6e999 purcell/package-lint@43012b41ac -> purcell/package-lint@2dc48e5fb9 purescript-emacs/purescript-mode@a3d6ca4ba5 -> purescript-emacs/purescript-mode@8c4736759a pythonic-emacs/pyenv-mode@7faed57eb7 -> pythonic-emacs/pyenv-mode@ba1a8c7bd7 rust-lang/rust-mode@efd830806c -> rust-lang/rust-mode@25d91cff28 seagle0128/doom-modeline@1708db2d35 -> seagle0128/doom-modeline@a85cb28da8 seagle0128/grip-mode@e90e3b47d8 -> seagle0128/grip-mode@96a927dce6 seagle0128/nerd-icons-ivy-rich@5006f91b49 -> seagle0128/nerd-icons-ivy-rich@83c7b60595 sebasmonia/sharper@496e90e337 -> sebasmonia/sharper@5049795848 swift-emacs/swift-mode@2c0b2b72dc -> swift-emacs/swift-mode@e30b9d46e0 szermatt/emacs-bash-completion@a4c8fbc902 -> szermatt/emacs-bash-completion@d0637428fd technomancy/fennel-mode@811f39de12 -> technomancy/fennel-mode@df8e83d6e2 wanderlust/wanderlust@6a0605415d -> wanderlust/wanderlust@d6dcbad228 weijiangan/flycheck-golangci-lint@424ba1b3a1 -> weijiangan/flycheck-golangci-lint@14bf143ea7 ziglang/zig-mode@4ad4edf759 -> ziglang/zig-mode@c46d024733
:editor evil
Description unfold
This holy module brings the Vim editing model to Emacs.
Maintainers
Module flags
- +everywhere
- Enable evilified keybinds everywhere possible. Uses the evil-collection plugin as a foundation.
Packages
- doom-package:evil
- doom-package:evil-args
- doom-package:evil-collection if doom-module:+everywhere
- doom-package:evil-easymotion
- doom-package:evil-embrace
- doom-package:evil-escape
- doom-package:evil-exchange
- doom-package:evil-indent-plus
- doom-package:evil-lion
- doom-package:evil-nerd-commentary
- doom-package:evil-numbers
- doom-package:evil-quick-diff
- doom-package:evil-snipe
- doom-package:evil-surround
- doom-package:evil-textobj-anyblock
- doom-package:evil-vimish-fold
- doom-package:evil-visualstar
- doom-package:exato
Hacks
- The o/O keys will respect and continue commented lines (can be disabled by
setting
+evil-want-o/O-to-continue-comments
tonil
). - In visual mode, * and # will search for the current selection instead of the word-at-point.
- The
:g[lobal]
ex command has been modified to highlight matches. - More of vim's filename modifiers are supported in ex commands (like
:p
,:p:h
or:t
) than vanilla evil-mode offers. - A custom filename modifier is available in Doom:
:P
, which expands to the project root (throws an error if not in a project).
TODO Changelog
This module does not have a changelog yet.
Installation
Enable this module in your doom!
block.
This module has no external requirements.
TODO Usage
This module's usage documentation is incomplete. Complete it?
Ported vim plugins
The following vim plugins have been ported to evil:
Vim Plugin | Emacs Plugin | Keybind(s) |
---|---|---|
vim-commentary | evil-nerd-commenter | omap gc |
vim-easymotion | evil-easymotion | omap gs |
vim-lion | evil-lion | omap gl / gL |
vim-seek or vim-sneak | evil-snipe | mmap s / S, omap z / Z & x / X |
vim-surround | evil-embrace and evil-surround | vmap S, omap ys |
vim-unimpaired | (provided by Doom) | see the list |
This module has also ported vim-unimpaired keybinds to Emacs.
In other modules:
- The doom-module::ui neotree & doom-module::ui treemacs modules provide a
NERDTree
equivalent. -
The doom-module::editor multiple-cursors module contains functionality equal to the following vim plugins:
Custom Text Objects
This module provides a couple extra text objects, along with the built-in ones. For posterity, here are the built-in ones:
- w W words
- s sentences
- p paragraphs
- b parenthesized blocks
- d:][b ( ) { } [ ] < >]] braces, parentheses and brackets
- ' " ` quotes
- t tags
- o symbols
And these are text objects added by this module:
- a C-style function arguments (provided by
evil-args
) - B any block delimited by braces, parentheses or brackets (provided by
evil-textobj-anyblock
) - c Comments
- f For functions (but relies on the major mode to have sane definitions for
beginning-of-defun-function
andend-of-defun-function
) - g The entire buffer
- i j k by indentation (k includes one line above; j includes one line above and
below) (provided by
evil-indent-plus
) - q For quotes (any kind)
- u For URLs
- x XML attributes (provided by
exato
)
Custom Ex Commands
Ex Command | Description |
---|---|
:@ |
Apply macro on selected lines |
:al[ign][!] REGEXP |
Align text to the first match of REGEXP. If BANG, align all matches on each line |
:cp[!] NEWPATH |
Copy the current file to NEWPATH |
:dash QUERY |
Look up QUERY (or the symbol at point) in dash docsets |
:dehtml [INPUT] |
HTML decode selected text / inserts result if INPUT is given |
:enhtml [INPUT] |
HTML encode selected text / inserts result if INPUT is given |
:iedit REGEXP |
Invoke iedit on all matches for REGEXP |
:k[ill]all[!] |
Kill all buffers (if BANG, affect buffer across workspaces) |
:k[ill]b |
Kill all buried buffers |
:k[ill]m[!] REGEXP |
Kill buffers whose name matches REGEXP (if BANG, affect buffers across workspaces) |
:k[ill]o |
Kill all other buffers besides the selected one |
:k[ill] |
Kill the current buffer |
:lo[okup] QUERY |
Look up QUERY on an online search engine |
:mc REGEXP |
Invoke multiple cursors on all matches for REGEXP |
:mv[!] NEWPATH |
Move the current file to NEWPATH |
:na[rrow] |
Narrow the buffer to the selection |
:pad |
Open a scratch pad for running code quickly |
:ral[ign][!] REGEXP |
Right-Align text that matches REGEXP. If BANG, align all matches on each line |
:repl |
Open a REPL and/or copy the current selection to it |
:retab |
Convert indentation to the default within the selection |
:rev[erse] |
Reverse the selected lines |
:rm[!] [PATH] |
Delete the current buffer's file and buffer |
:tcd[!] |
Send cd X to tmux. X = the project root if BANG, X = default-directory otherwise |
TODO Configuration
This module has no configuration documentation yet. Write some?
Troubleshooting
Can't access the universal argument key (C-u)
For maximum Vim emulation, this module commandeers the C-u key for scrolling (as it does in Vim). The same goes for C-u in insert mode (which deletes to BOL). In both cases the universal argument has been moved to <leader> u.
To undo this, use:
;; add to $DOOMDIR/config.el
(setq! evil-want-C-u-scroll nil
evil-want-C-u-delete nil)
The s/S keys behave differently from Vim
Doom replaces the s and S keys with the doom-package:evil-snipe package (a port of vim-seek/vim-sneak for 2-character versions of f/F/t/T).
To disable evil-snipe on s/S, you can either:
- Disable
evil-snipe-mode
by adding(remove-hook 'doom-first-input-hook #'evil-snipe-mode)
to$DOOMDIR/config.el
, - Or disable doom-package:evil-snipe completely with
(package! evil-snipe :disable t)
added to$DOOMDIR/packages.el
, but this will also disable incremental highlighting for the f/F/t/T motions keys. - Or use cl and cc, respectively; they do the same thing.
The Y key behaves differently from Vim (should yank the whole line)
Doom changes the behavior of the Y key in normal mode to yank-to-EOL (equivalent to y$). This was to make it consistent with the C and D capital operators, and because it was redundant with yy, which is easier to type than y$.
If you prefer the old behavior, it can be reversed with:
;; add to $DOOMDIR/config.el
(setq! evil-want-Y-yank-to-eol nil)
Frequently asked questions
How do I remove evil?
- Disable this module.
- Run
$ doom sync
to clean up lingering dependencies and regenerate your autoloads files. - [OPTIONAL] Change
doom-leader-alt-key
anddoom-localleader-alt-key
. These are bound to C-c and C-c l by default.
Ignore
doom-leader-key
anddoom-localleader-key
, they don't apply to non-evil sessions.
Evil-specific configuration and keybindings (defined with map!
) will be
ignored without doom-module::editor evil present (and omitted when byte-compiling).
Include underscores in evil word motions?
A more in-depth answer and explanation for this can be found in Evil's documentation.
TL;DR If you want the underscore to be recognized as word character, you can modify its entry in the syntax-table:
(modify-syntax-entry ?_ "w")
This gives the underscore the word syntax-class. You can use a mode-hook to modify the syntax-table in all buffers of some mode, e.g.
;; For python
(add-hook! 'python-mode-hook (modify-syntax-entry ?_ "w"))
;; For ruby
(add-hook! 'ruby-mode-hook (modify-syntax-entry ?_ "w"))
;; For Javascript
(add-hook! 'js2-mode-hook (modify-syntax-entry ?_ "w"))
How do I disable synchronization between the kill ring and system clipboard?
In vim, operations that put or delete text (kill and yank in Emacs terminology) act on the unnamed register by default. The unnamed register unrelated the system clipboard. Evil uses the kill ring instead of the unnamed register. As the kill ring is synchronized with the system clipboard by default, operations like dd or cw place the killed text in the system clipboard, surprisingly so for users who are used to the vim behavior.
The synchronization between the system clipboard and kill ring can be disabled, making these operations behave closer to their vim counterparts:
(setq select-enable-clipboard nil)
Like in vim, the clipboard can still be accessed by using the + register, e.g. "+dd or "+cw.
TODO Appendix
This module has no appendix yet. Write one?