Commit graph

225 commits

Author SHA1 Message Date
Henrik Lissner
04f95c65e7
editor/evil: evil-respect-visual-line-mode = t
evil 0 motion was fixed in
emacs-evil/evil#12bee185bb7b1a6012e2ae424f60055ad9eedf56
2019-12-09 18:33:26 -05:00
chrunchyjesus
a57610ccce add common paths to be ignored in most js projects 2019-12-08 14:20:14 +01:00
Henrik Lissner
2c79ab354a
Add evil-numbers inc commands to evil-mc-custom-known-commands 2019-12-03 20:42:57 -05:00
Brian Wignall
199a6fab79 Fix typos 2019-12-01 22:31:19 -05:00
Henrik Lissner
bf0efe81ae
editor/evil: add :l[ine]diff ex command
Relevant to #2126
2019-12-01 15:41:14 -05:00
Rudi Grinberg
e16d6a8d7c Add evil-quick-diff
This introduces the `g o d` text object for comparing regions. It works
like evil-exchange. Select two regions in sequence with `g o d` and an
ediff buffer of the selections will pop up.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2019-12-01 15:44:16 +07:00
Henrik Lissner
439fac65d7
editor/evil: evil-respect-visual-line-mode = nil
To match vim's behavior.
2019-11-25 20:43:48 -05:00
Henrik Lissner
6232f12dfd
editor/evil: update hacks section in README 2019-11-25 14:02:34 -05:00
Henrik Lissner
26c8f5c6ef
Bytecompiler bytecompiler, won't you shut up 2019-11-23 01:21:25 -05:00
Henrik Lissner
d0021461f7
Fix duplicate snippets
e.g. If you've cloned doom-snippets to $DOOMDIR/snippets.

Also refactors how yas-snippet-dirs is initialized.
2019-11-22 19:07:10 -05:00
Henrik Lissner
263c82def1
Remove references to old ivy/helm search commands
And consolidate ex commands into :pg[rep][!] and :pg[rep]d[!].
2019-11-18 15:06:11 -05:00
Henrik Lissner
449ddb986c
Minor refactors & reformatting across the board 2019-11-15 22:17:31 -05:00
Henrik Lissner
03e9dc1daf
Follow up on 64222c69c
To fix cases where comment-line-break-function's first argument isn't
optional.
2019-11-15 22:17:31 -05:00
Henrik Lissner
46bea60ad3
Add :Read ex command & 'SPC i p' keybind
This can be used to extract paths from evil-ex style paths. e.g. the
following inserts the stdout into the current buffer (assuming we're in
~/some/project/filename.c):

  :R!echo %:P      ~/some/project
  :R!echo %:t      filename.c
  :R!echo %:e      c
  :R!echo %:r      filename
  :R!echo ~/another/project/%:t:r.h
    ~/another/project/filename.h
  :R %             contents of current file

http://vimdoc.sourceforge.net/htmldoc/cmdline.html#filename-modifiers
has a full list of vim filename modifiers. Doom doesn't support all of
them, but it does support most of them.
2019-11-15 22:17:30 -05:00
Henrik Lissner
ad2b905330
editor/evil: fix gr/gR in notmuch & elfeed 2019-11-15 22:17:30 -05:00
Henrik Lissner
5498b17de2
Bind 'gr' to revert-buffer in dired-mode 2019-11-12 16:24:51 -05:00
Henrik Lissner
99cd52e70f
💥 Drop Emacs 25.x support
Emacs 26.1 is Doom's new minimum supported version

Closes #2026
2019-11-08 16:02:06 -05:00
Henrik Lissner
9113eab65a
No-op set-repeater! later if +evil-repeat-keys is nil 2019-11-05 14:55:53 -05:00
Henrik Lissner
8b5714bdfa
editor/evil: bind zn in visual mode too 2019-11-04 12:49:48 -05:00
Henrik Lissner
2bf74158fd
Minor refactors across the board 2019-11-04 03:37:54 -05:00
Henrik Lissner
baac5dfee1
editor/evil: conform functions to naming conventions 2019-11-02 01:40:45 -04:00
Henrik Lissner
4e7cdae570
Merge pull request #1993 from johsi-k/evil-module-typos
editor/evil: correct typos in readme
2019-11-01 13:10:21 -04:00
johsi-k
86bc214eb2 correct typos in evil readme 2019-11-01 14:02:07 +08:00
Henrik Lissner
fd00870ae8
Fix #1401 2019-10-31 20:51:20 -04:00
Henrik Lissner
1c4a170614
Reformat vim-unimpaired-esque keybinds 2019-10-30 22:26:12 -04:00
Henrik Lissner
5f6d9eadb3
Bind '{[,]} c' to jump between comments
I know {[,]} * and {[,]} \\ are the unimpaired keys for this, but
putting it on 'c' makes much more sense and is easier to hit.
2019-10-30 22:23:28 -04:00
Henrik Lissner
1d09e4655a
Fix split-window & update docstring 2019-10-29 18:27:19 -04:00
Henrik Lissner
496a4b1b5f
editor/evil: alphabetize text object keybinds 2019-10-29 18:20:35 -04:00
Henrik Lissner
4657c9e9be
editor/snippets: fix error loading doom-snippets-lib 2019-10-29 01:10:25 -04:00
Henrik Lissner
43030c789e
editor/evil: revert focus-on-split behavior (and refactor advice)
Focus-on-split is being disabled to achieve vim parity. The advice is
still necessary to ensure splitting updates the window buffer list, so
operations like winner-undo undoes correctly.
2019-10-29 01:09:14 -04:00
Henrik Lissner
6982281404
Fix mouse-1 on buttons initiating a selection 2019-10-28 23:23:13 -04:00
Henrik Lissner
f18caa1518
evil-{,v}split-window-{below,right} = t
To match vim's behavior, when splitting windows. The
+evil-window-split-a and +evil-window-vsplit-a advice are still
necessary to preserve proper "window focus" order.
2019-10-28 23:23:13 -04:00
Henrik Lissner
9e2b0c6332
editor/evil: fix autoload for +evil:whole-buffer-textobj 2019-10-28 23:23:13 -04:00
Henrik Lissner
a122dfd6a0
editor/multiple-cursors: extend evil-org support 2019-10-27 14:03:45 -04:00
Henrik Lissner
5f9778edd6
editor/multiple-cursors: fix unbound evil-mc keybinds 2019-10-27 14:03:45 -04:00
Henrik Lissner
3c6f48f9ec
Move evil & corrective keybinds to respective modules
Keybinds that correct behavior or provide or extend vim functionality
were moved to their respective modules, or to the :editor evil module.

Keybinds in the global space, that are particularly opinionated but
potentially harmful or imposing as a default, or likely for users to
change (like leader keys), are kept in config/default.
2019-10-26 23:44:28 -04:00
Henrik Lissner
66c45b2f8d
editor/snippets: update doom-snippets recipe 2019-10-26 13:48:01 -04:00
Henrik Lissner
945eb7e064
editor/multiple-cursors: minor refactor 2019-10-26 02:12:59 -04:00
Henrik Lissner
83387d89e9
editor/evil: move vim-unimpaired motions
To the unimpaired library
2019-10-26 00:37:51 -04:00
Henrik Lissner
f2b77fe2c0
Add whole-buffer (g) and defun (f) text objects 2019-10-26 00:37:12 -04:00
Henrik Lissner
3f759dde23
Optimize file-template find-file hook function 2019-10-25 20:25:20 -04:00
Henrik Lissner
671135053b
Prevent visual 'gzz' placing cursors on invisible lines
e.g. over folded lines
2019-10-24 03:16:35 -04:00
Henrik Lissner
f1d622e0a4
editor/format: disable format-on-save for latex
latexindent causes disruptive 'Please enter text to be indented: (press
CTRL+D when finished)' prompts, and is effectively broken.
2019-10-22 19:21:19 -04:00
Henrik Lissner
65dcd901a0
Move common evil-collection-key-blacklist entries to editor/evil 2019-10-21 06:26:57 -04:00
Henrik Lissner
fb692a843f
README: general revision 2019-10-20 10:58:52 -04:00
Henrik Lissner
3614109c7a
Merge pull request #1902 from flatwhatson/word-wrap-text
editor/word-wrap: improve wrapping in non-code buffers
2019-10-17 02:12:23 -04:00
Andrew Whatson
930d0d134a Improve +word-wrap in non-code buffers
Adds `+word-wrap-text-modes`, a list of modes which shouldn't get any
extra indentation. This is used for text and markdown modes, which
should just indent to the parent depth.

Adds `+word-wrap-visual-modes`, a list of modes which shouldn't enable
`adaptive-wrap-prefix-mode`. This is used to fix the prefix indentation
in `org-mode`, which provides its own implementation.

Tweaks the indent behaviour to treat strings the same as comments so
they don't receive additional indentation.
2019-10-16 00:48:40 +10:00
Nollo
890b96d874 Add: evil bindings for 2 evil-mc functions
evil-mc-make-cursor-in-visual-selection-beg
evil-mc-make-cursor-in-visual-selection-end
2019-10-15 13:56:16 +02:00
Henrik Lissner
3a89c3f79d
editor/fold: fix void-variable hs-block-start-regexp
Which will happen if +fold/next is called before hideshow is loaded.
2019-10-14 13:19:32 -04:00
Henrik Lissner
90b59d00df
editor/evil: update evil-collection-mode-list 2019-10-12 00:48:48 -04:00