Commit Graph

939 Commits

Author SHA1 Message Date
4d017ae19e Replace :yas-minor-mode with set-yas-minor-mode! 2018-06-15 18:03:50 +02:00
c0251aacee Replace :lookup with set-lookup-handlers! autodef
And update all internal references.
2018-06-15 17:27:48 +02:00
f81a0e6f41 Remove redundant def-setting! docstrings
def-setting! will now grab the autodef's docstring if it has an
:obsolete property defined.
2018-06-15 16:54:39 +02:00
588359cc5f Replace :eval/:repl with autodef functions
+ :eval => set-eval-handler!
+ :repl => set-repl-handler!
+ Updates all internal references.
2018-06-15 16:20:20 +02:00
7b1db08ea2 Replace :devdocs with set-devdocs! autodef 2018-06-15 16:20:20 +02:00
b99ab59578 Replace :docset with set-docset! autodef 2018-06-15 16:20:20 +02:00
f801939ce7 test-evil: load :feature evil module 2018-06-15 04:46:13 +02:00
5a427b1c2b Move custom evil arg types back to config.el
No need to autoload that.
2018-06-15 04:45:09 +02:00
cbb5b2ed7d Fix unknown interactive code error in evil tests 2018-06-15 04:03:22 +02:00
eaca8c58fa Move unit tests from ert to buttercup
Easier to organize and write. Now I can hopefully strive for better
coverage!
2018-06-15 03:42:01 +02:00
2496e0348d Add :when support to after!
This lets you delay a body of code until an arbitrary condition is
met (which is checked whenever a file is loaded).

Also refactors set-file-template! to wait until +file-templates-alist is
defined.
2018-06-15 03:42:01 +02:00
d8b1e469bc Introduce autodefs to replace some settings
+ :popup -> set-popup-rule!
+ :popups -> set-popup-rules!
+ :company-backend -> set-company-backend!
+ :evil-state -> set-evil-initial-state!

I am slowly phasing out the setting system (def-setting! and set!),
starting with these.

What are autodefs? These are functions that are always defined, whether
or not their respective modules are enabled. However, when their modules
are disabled, they are replaced with macros that no-op and don't
waste time evaluating their arguments.

The old set! function will still work, for a while.
2018-06-15 03:42:01 +02:00
37946080e2 Add :yas-minor-mode setting to feature/snippets 2018-06-07 02:51:46 +02:00
f22eeff763 Add treemacs-mode to evil-escape-excluded-major-modes
Fixes an unresponsive "j" key in treemacs-mode.
2018-06-07 02:51:46 +02:00
69a796ff60 Don't invoke doom/escape too eagerly from evil
This fixes an issue where certain evil plugins would call
evil-force-normal-state non-interactively, causing `doom-escape-hook` to
wreck havoc. Instead, this should only happen when
evil-force-normal-state is called interactively (e.g. via ESC in normal
mode).

Fixes evil-mc-make-cursor-move-next-line and
evil-mc-make-cursor-move-prev-line.
2018-06-07 02:51:45 +02:00
530bdca097 Refactor persp-mode-map keybinds
Use define-key! instead of individual define-key's
2018-06-05 19:50:56 +02:00
e4e2fb55ed feature/workspaces: remove non-side-window fix
This was fixed upstream in persp-mode#90.
2018-06-05 18:39:50 +02:00
bc4fb8f18e Fix helm macro errors due to load order
Some packages (like evil-collection and dumb-jump) use helm macros, but
Doom cannot ensure helm will be installed by the time these packages are
byte-compiled during installation. In fact, the default load order
prevents this.

Rather than imposing hard load order requirements, we just make sure
helm is higher on the packages list, so it gets installed sooner.
2018-06-05 14:08:29 +02:00
c9a3c9e615 Disable evil-collection-minibuffer 2018-06-05 13:23:46 +02:00
d5934ec8f7 feature/evil: update evil-shift-width manually (experimental) 2018-06-05 13:23:37 +02:00
fa4a9a38d4 Less intrusive error prefix for flycheck popups
The default character was taller than a line. My OCD won't have it.
2018-06-05 03:21:26 +02:00
9c62ef9dfa Fix flycheck-posframe errors #653
The +childframe check was too simple (and unnecessary, since the
posframe function autoloaded).
2018-06-05 03:20:19 +02:00
1d9ae834f2 Minor refactors & docstring revision
These are not the refactors you are looking for.
2018-06-04 21:17:49 +02:00
818cb27724 Refactor feature/file-templates
This removes its dependency on the feature/snippets.
2018-06-03 23:43:27 +02:00
48fdc8a5b5 feature/evil: fix missing keymap in key def 2018-06-03 18:11:49 +02:00
1e81a35461 Minimize dependence on map!
This is in preparation for general.el integration coming in 2.1.1. It is
very likely that map! will change (and even more, be split into several
macros). Not much, but change none-the-less. Specifically, the state
keywords (e.g. :nvi, :n, :i) will be removed in favor of a :state
property that takes a list, e.g. (normal visual insert).

In any case, both map! and general are also relatively expensive
compared to define-key and evil-define-key* (and the new define-key!
macro), so use that when we can.

This also means changes to either API won't affect Doom's modules in the
long term.
2018-06-03 15:46:00 +02:00
de014a817b Move :lookup setting to autoload.el 2018-06-02 18:20:09 +02:00
43152d774f Fix commented out :config causing errors
Semicolons, what have you done?
2018-06-01 16:32:38 +02:00
553867bf61 Remove evil-collection-helm hack (it's disabled) 2018-06-01 16:20:11 +02:00
dc2dad0af3 Disable evil-collection-ruby-mode
May indirectly fix broken :localleader keybinds on ruby-mode-map
2018-06-01 16:19:49 +02:00
002f514b22 Minor refactor of evil-mc->smartparens integration 2018-06-01 13:40:48 +02:00
3c967cf3a3 Resume evil-mc upon switching to insert mode #618
I believe this is intuitive, but I've designed it to be easily disabled
with:

  (remove-hook 'evil-insert-state-entry-hook #'+evil-mc|resume-cursors)
2018-06-01 13:40:47 +02:00
4f4495ca2a Move ispell-dictionary default to feature/spellcheck #630
Makes more sense to be here.
2018-06-01 02:25:38 +02:00
c2e2c4c11e Fix git-link not loading on SPC-g-I from fresh emacs start 2018-05-31 23:39:17 +10:00
9b3decaaa1 Merge evil-collection-helm into completion/helm 2018-05-31 13:59:21 +02:00
601c9a654e Merge evil-collection-dired into emacs/dired 2018-05-31 13:59:21 +02:00
183ccbb8f1 Merge evil-collection-ivy into completion/ivy
Disables evil-collection-ivy. Another step toward the removal of
evil-collection from Doom.
2018-05-31 13:59:21 +02:00
1f5dae9176 Merge evil-collection-anaconda into lang/python #628
This is the first step of removing evil-collection from Doom.
2018-05-31 13:59:21 +02:00
d443a9d2dd Respect git-commit style/length conventions
See https://chris.beams.io/posts/git-commit/
2018-05-30 19:16:22 +02:00
c63cd0a688 feature/spellcheck: minor refactor 2018-05-30 01:44:56 +02:00
b4ebb2abca feature/evil: remove ; evil-snipe alias 2018-05-30 01:38:36 +02:00
05c098234c Update git-gutter on magit-{un,}stage{file,} commands 2018-05-29 17:52:26 +02:00
7a61615666 Disable evil-snipe in Info-mode 2018-05-29 15:47:17 +02:00
05c8daf24a Support non-symbol entries in +evil-collection-disabled-list 2018-05-29 15:35:20 +02:00
947fe345c3 Minor, general refactor
In some contexts, map-put is superior to add-to-list.
2018-05-29 15:34:13 +02:00
28c13c230f Temporary fix for with-helm-buffer error caused by evil-collection-helm 2018-05-29 02:09:35 +02:00
a018bc75f6 feature/evil: add +evil-collection-disabled-list
Use this list to disable certain features of evil-collection. It should
be set before evil-collection is loaded (which shouldn't be until after
doom has fully loaded).
2018-05-29 02:08:34 +02:00
e2979e5b82 Fix +workspace/delete when one workspace is left 2018-05-29 00:42:33 +02:00
edc09ecab8 Make evil-mc cooperate with smartparens better 2018-05-28 17:33:52 +02:00
3b85720c9c Fix incorrect uses of add-to-list 2018-05-28 12:26:03 +02:00