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
Henrik Lissner
b45cc335db
lang/common-lisp: offload to evil-collection-sly
2019-10-12 00:48:48 -04:00
Henrik Lissner
6ba7c97501
Remove the_platinum_searcher support
...
I'm reducing the scope of our project search so we can eventually focus
on ripgrep. By specializing I can extend Doom's features for project
searching.
2019-10-10 22:02:18 -04:00
Henrik Lissner
7654764713
editor/evil: update docstring for +evil:align* commands
2019-10-10 21:38:08 -04:00
Henrik Lissner
aac843511b
Fix :h[elp] ex command
...
To now open documentation for ex commands, otherwise falling back to
apropos. If BANG, then searches Doom's (yet to be published) manual.
2019-10-10 21:31:13 -04:00
Henrik Lissner
a3fa1e07b1
Refactor doom/kill-*-buffer commands
2019-10-10 16:11:42 -04:00
Henrik Lissner
d87310bd55
Replace evil-commentary with evil-nerd-commenter
...
The latter provides a comment text object and better commenting support
across various languages.
2019-10-10 16:11:42 -04:00
Henrik Lissner
07380af819
Add gy operator for yanking without indentation
...
Copies
(a
b
c)
As
(a
b
c)
2019-10-10 16:11:41 -04:00
Akhil Wali
477244ee59
Fix typo in lispy README (modules -> module)
2019-10-08 20:07:07 +13:00
Henrik Lissner
5b5dbe1c47
editor/god: minor refactor
...
+ god-local-mode is autoloaded by the package
+ Use add-hook when add-hook! is unnecessary
+ Move autoload/god.el to autoload.el
2019-10-04 22:14:13 -04:00
Akhil Wali
1560dadb08
Use pushnew! to set god-exempt-major-modes
2019-10-05 09:41:00 +13:00
Akhil Wali
3e11008a7f
Use bound-and-true-p instead of (and (boundp ...))
2019-10-05 09:10:48 +13:00
Akhil Wali
394a1aaac0
Rename god-... -> +god-...
2019-10-05 09:10:48 +13:00
Akhil Wali
d14a910cf4
Rename and refactor god-mode hooks
2019-10-05 09:10:46 +13:00
Akhil Wali
e5288c990b
Add god-mode module
2019-10-05 08:56:09 +13:00
Henrik Lissner
d8526e00a7
Use python-shell-interpreter for .py file tmeplate
2019-10-04 11:57:19 -04:00
Henrik Lissner
d297dc6934
Minor refactor & comment revision across the board
2019-10-03 23:33:59 -04:00
Henrik Lissner
f93d3ca596
editor/evil: evil-escape-delay = 0.15
2019-09-20 23:55:25 -04:00
Henrik Lissner
e10cd8cf2e
Insult byte-compiler's mom
...
Yeah, that shut him up.
2019-09-20 23:10:53 -04:00
Henrik Lissner
8a634bc04d
Fix evil-collection-pdf not loading #1789
...
And prevents evil-collection-pdf from loading pdf-tools' eval-after-load
blocks twice.
2019-09-20 01:22:25 -04:00
Henrik Lissner
fdeb1aa45d
Prevent evil-collection from loading packages twice
...
Triggering eval-after-load blocks (and after!/use-package!) twice.
2019-09-15 16:18:31 -04:00
Henrik Lissner
ab8b31e5bc
Change behavior of BANG for +evil:narrow-buffer
...
BANG = use indirect buffers, otherwise, narrow/widen the current buffer.
2019-09-14 18:32:14 -04:00
Henrik Lissner
20d15c685e
Fix :narrow ex command
2019-09-14 01:56:38 -04:00
Henrik Lissner
1c05773c39
General, minor refactors & comment revision
2019-09-11 23:41:08 -04:00
Henrik Lissner
887bc05478
Ensure evil-escape loads later at startup
...
evil-normal-state-exit-hook is fired prematurely at startup, which makes
it a poor candidate for :after-call deferral.
2019-09-09 23:04:07 -04:00
Henrik Lissner
81ee250c09
Minor refactor & revision across the board
2019-09-03 00:59:46 -04:00
Henrik Lissner
059ede53b6
Update all unit tests
...
To meet changes introduced from the straight branch merge.
2019-09-03 00:59:46 -04:00
Henrik Lissner
f763bf2fd0
Change :mc to take delimited pattern
...
This used to take a regexp after a space: ':mc REGEXP'. It now is
delimited, like :g or :s, e.g.
:mc/REGEXP/FLAGS
:mc/[a-z]
:mc/abc/g
2019-09-02 01:30:04 -04:00
Andrew Whatson
6381a5c0ae
Add :editor word-wrap module
...
Defines a new minor-mode `+word-wrap-mode` which configures
adaptive-wrap-prefix-mode and visual-line-mode for smart soft-wrapping
of code.
Evil users can toggle it with `SPC t w`.
Enable globally with `+global-word-wrap-mode`.
See the README for more details!
2019-08-27 15:04:38 +10:00
Henrik Lissner
8f1de7c998
Fix #1694 : wrong-type-arg stringp errors on some files
2019-08-21 21:17:42 -04:00
Henrik Lissner
fb619bdb0f
Only trigger file-templates for non-existent files #1682
...
Possibly addresses #1401 too
2019-08-19 14:18:17 -04:00
Henrik Lissner
7138d47ef4
Disable evil-want-abbrev-expand-on-insert-exit
...
It may be a vim default, but why would anyone want this?
2019-08-19 12:48:36 -04:00
Henrik Lissner
c8baa2b3f6
editor/evil: refactor ex commands; add evil-traces
...
This commit lazy loads Doom's custom ex commands. To add your own,
you'll need to wrap them in (after! evil-ex ...).
2019-08-15 14:58:41 -04:00
Henrik Lissner
09d13fd60d
Use add-hook! for inline hook defuns
2019-07-27 02:46:49 +02:00
Henrik Lissner
a3e262c7ac
💥 Refactor add-hook! macro & change arg order
...
This update may potentially break your usage of add-hook! if you pass
the :local or :append properties to it. This is how they used to work:
(add-hook! :append 'some-mode-hook #'do-something)
Thsoe properties must now follow the hooks, e.g.
(add-hook! 'some-mode-hook :append #'do-something)
Other changes:
- Various add-hook calls have been renamed to add-hook! because I
incorrectly assumed `defun` always returned its definition's symbol,
when in fact, its return value is "undefined" (so sayeth the
documentation). This should fix #1597 .
- This update adds the ability to add multiple functions to hooks
without a list:
(add-hook! 'some-mode-hook
#'do-something
#'do-something-else)
- The indentation logic has been changed so that consecutive function
symbols at indented at the same level as the first argument, but forms
are indent like a defun.
(add-hook! 'some-mode-hook
#'do-something
#'do-something-else)
(add-hook! 'some-mode-hook
(message "Hello"))
2019-07-26 20:17:29 +02:00
Henrik Lissner
ca295e4c79
Refactor evil-collection initialization
...
- Update comments
- Add code for easily refreshing evil-collection-mode-list
- Load evil-collection-term for multi-term
- Fix buffer-menu, image-mode, elisp and occur modules not loading
2019-07-26 03:12:07 +02:00