Commit graph

480 commits

Author SHA1 Message Date
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
Henrik Lissner
017aa6a9f7
editor/rotate-text: conform to hook conventions
And add it<->xit and describe<->xdescribe rotate-text patterns (for
buttercup tests).
2019-07-24 22:13:19 +02:00
Henrik Lissner
82ae3a73f3
def-advice!->defadvice! & conform to new advice conventions
This commit does two things:

- Renames def-advice! to defadvice!, in the spirit of naming convenience
  macros after the function/macro they enhance or replace.
- Correct the names of advice functions to indicate visibility and
  intent. A public advice function like doom-set-jump-a is meant to be
  used elsewhere. A private one like +dired--cleanup-header-line-a
  shouldn't -- it likely won't work anywhere but the function(s) it was
  made to advise.
2019-07-23 17:24:56 +02:00
Henrik Lissner
76cacb5bfe
💥 Rename def-package! -> use-package!
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
2019-07-23 12:50:45 +02:00
Henrik Lissner
c795a988e6
Conform many modules to new conventions 2019-07-23 12:30:47 +02:00
Henrik Lissner
d106272574
Fix ]f/[f (next/previous file) motions 2019-07-22 23:51:12 +02:00
Henrik Lissner
88813ff196
Minor reformatting across the board
Gotta

Look

Nice
2019-07-22 22:34:08 +02:00
Henrik Lissner
ffadd1307d
Disable evil-collection-want-unimpaired-p
We have our own, better vim-unimpaired keybinds.
2019-07-22 13:31:56 +02:00
Henrik Lissner
755835a207
Change ex command from :m[sg] to :messages
The former overwrote :m[ove].
2019-07-22 13:30:42 +02:00
Henrik Lissner
33c220902e
editor/snippets: don't auto-enable yas-global-mode 2019-07-22 02:37:46 +02:00
Henrik Lissner
060ede0e2e
General, minor reformatting across the board
And an offering of blood to our great lord Byte Compiler-sama.
2019-07-22 02:37:45 +02:00