Commit Graph

2106 Commits

Author SHA1 Message Date
Henrik Lissner
bcef66b947
Refactor doom/toggle-line-numbers; add doom-line-numbers-visual-style #376
doom-line-numbers-visual-style adds support for the visual
display-line-numbers mode by setting it to a non-nil value.
2018-01-30 03:31:32 -05:00
Henrik Lissner
64a674dcc9
Fix nlinum-relative line numbering #376
Fixed padding; now relative line numbers look consistent with its non-relative
counterpart.
2018-01-30 01:18:30 -05:00
Henrik Lissner
01787fc876
Change doom/toggle-line-numbers to cycle styles #376
Also fixes doom/toggle-line-numbers when doom-line-numbers-style is nil.
2018-01-30 01:10:58 -05:00
Henrik Lissner
1fda25ce9a
Force make commands to traverse symlinks too 2018-01-29 23:23:48 -05:00
Henrik Lissner
e55e798048
Fix doom! not loading modules after byte-compile 2018-01-29 21:22:55 -05:00
Henrik Lissner
bd443322a2
A slightly more efficient unstyled-mode-line fix 2018-01-29 19:34:06 -05:00
Henrik Lissner
e0f6fde7c1
Update doom//run-tests for new doom! 2018-01-29 18:41:55 -05:00
Henrik Lissner
e33e2b9c63
Fix doom-project-* unit tests 2018-01-29 18:38:40 -05:00
Henrik Lissner
e87809ab59
Fix kill-buffer-and-windows unit test 2018-01-29 18:24:59 -05:00
Henrik Lissner
a3e3909368
Set doom-modules sooner
Fixes module lookups within modules (like featurep!).
2018-01-29 18:06:59 -05:00
Henrik Lissner
4e908bd525
Minor refactor & correction 2018-01-29 17:39:08 -05:00
Henrik Lissner
0890826083
window-divider-default-bottom-width = 1 2018-01-29 17:09:09 -05:00
Henrik Lissner
735d129f92
Truly prevent unstyled mode-line flash at startup 2018-01-29 17:06:20 -05:00
Henrik Lissner
3a31949483
Refactor doom! to support nested calls #352
Isolates doom! a little more to allow for nested doom! calls.
2018-01-29 17:01:02 -05:00
Henrik Lissner
8b19e35ef6
Consider dired-mode buffers real 2018-01-28 20:37:40 -05:00
Henrik Lissner
3bd262117d
Initialize project-mode sooner
Fixes a couple projectile errors when parts of Doom try to use
projectile before it's loaded.
2018-01-28 16:28:53 -05:00
Henrik Lissner
d4c1050e32
core-project: fix projectile caching error when buffer-file-name is nil 2018-01-28 04:31:14 -05:00
Henrik Lissner
4f983c139e
Improve doom/describe-{setting,module} commands
Now grabs the setting/module at point
2018-01-28 03:00:29 -05:00
Henrik Lissner
c5b72566ea
Remove help-fns+, add helpful plugin #363 2018-01-21 21:37:15 -05:00
Henrik Lissner
59f33855dd
Fix kill-this-buffer switching to fallback buffer too soon (again) 2018-01-18 23:08:26 -05:00
Henrik Lissner
45c2221316
General update for docstrings and comments & minor refactor 2018-01-15 00:43:28 -05:00
Henrik Lissner
5ee50c6b53
Move wgrep config from core-editor to completion/{ivy,helm} 2018-01-14 02:04:34 -05:00
Henrik Lissner
47d15fdf8a
Make startup benchmark a little more accurate #353
Also sets doom-init-time first thing in doom-post-init-hook.
2018-01-13 15:11:28 -05:00
Henrik Lissner
987805de5f
Fix recursive load errors with multiple doom! calls #352 2018-01-12 14:40:34 -05:00
Henrik Lissner
2f0822ed44
Remove aggressive load of use-package
The autoload in core-packages takes care of it.
2018-01-11 22:18:32 -05:00
Henrik Lissner
2b98e550e8
Reverse load-path to fix precedence issues
Originally, I built the load-path with site-lisp paths first, then
packages. There was a modest ~10% startup boost doing this, because
there were considerably more site packages loaded at startup than
plugins.

However, this meant built-in packages would get precedence over plugins,
which is undesirable. In org's case, I simply modified the load-path
in lang/org/init.el. However, this issue has cropped up again in #340.

Evidently, that 10% boost may not be worth the risk it imposes, so I've
rearranged the load-path with packages first.
2018-01-10 22:47:35 -05:00
Henrik Lissner
d2bab1dc4d
Fix kill-this-buffer's dashboard addiction, the sequel
Again, the dashboard was being switched to too early (there were still
other real buffers to display).
2018-01-09 04:05:33 -05:00
Henrik Lissner
42f4d10d6d
Fix doom//reload-autoloads not reloading autoloads file
doom-packages--async-run doesn't return anything. Whoops!
2018-01-08 22:47:38 -05:00
Henrik Lissner
b57c2e2264
Disarm doom/cleanup-session's oppressive regime
It killed buffers a little too indiscriminantly.
2018-01-08 19:36:02 -05:00
Henrik Lissner
af37d430fb
Fix kill-this-buffer's dashboard addiction
Our kill-this-buffer advice, which tries to ensure the user will always
land on a real buffer after killing another, would prematurely jump to
the dashboard even though there were other available, real buffers.

Also fixes an issue where kill-this-buffer would get stuck switching
between the last buffers (because they aren't killed if they're visible
in other windows). If the only buffers left are visible in other
windows, it will now switch to the fallback buffer (dashboard or
scratch).
2018-01-08 19:32:53 -05:00
Henrik Lissner
7777f9940e
Change add-hook! macro to retain hook order
(add-hook! hook '(1 2 3)) should set hook to `(1 2 3 ,@old-hooks).
Before this, they would be pushed sequentially, resulting in hook =
`(3 2 1 ,@old hooks)`
2018-01-08 14:55:58 -05:00
Henrik Lissner
4bd74d9653
Fix doom-cleanup-hook breaking if hook didn't return an integer 2018-01-07 15:03:45 -05:00
Henrik Lissner
8520c12434
which-key: don't replace current popup 2018-01-07 06:19:54 -05:00
Henrik Lissner
50abff78c8
Fix doom-hide-modeline-mode not respecting doom--modeline-format
feature/popup is using this mode to give certain windows special
modelines.
2018-01-07 05:56:02 -05:00
Henrik Lissner
60fdbf8643
doom/window-enlargen: use maximize-window instead
Just discovered maximize-window, which I've been doing manually in
doom/window-zoom. Bueno.
2018-01-07 01:58:38 -05:00
Henrik Lissner
2d9e63d5bb
General & minor refactoring 2018-01-07 00:15:58 -05:00
Henrik Lissner
25619908a2
Narrow down the purpose of init & post-init hooks
Essential hooks should be added to doom-init-hook. Non-essential and
extra hooks should be added to doom-psot-init-hook.
2018-01-07 00:15:58 -05:00
Henrik Lissner
2734810060
Show error when looking up dependency trees for built-in packages
There's no obvious way to do this, and I don't think it's important
enough to accommodate it.
2018-01-07 00:15:58 -05:00
Henrik Lissner
392f04446f
General refactor (use map.el more)
+ map-delete is shorter and faster than assq-delete-all
+ map-put is simpler than the delete-then-set workflow
+ map-merge is great for merging default and user settings
2018-01-07 00:15:58 -05:00
Henrik Lissner
379914ccd7
doom-initialize: letbind load-path to site load-path instead
PREMATURE OPTIMIZATION DETECTED.

EXTERMINATE. EXTERMINATE. EXTERMINATE.
2018-01-07 00:15:57 -05:00
Henrik Lissner
5cd29479f4
Refactor feature/evil hacks & advice; fix tests 2018-01-07 00:15:57 -05:00
Henrik Lissner
31a4244686
Rethink what Doom loads at startup and manually
Better to simply load what we need, when we need it, rather than set up
autoloads for every litte thing.
2018-01-07 00:15:57 -05:00
Henrik Lissner
0042a56d02
Add new cache library (persistent-soft wrapper) 2018-01-07 00:15:57 -05:00
Henrik Lissner
25ec2bdcbb
Fix kill-this-buffer killing popup buffer instead of window 2018-01-06 17:04:20 -05:00
Henrik Lissner
e894c07453
Load module init.el too from require! macro 2018-01-06 04:14:44 -05:00
Henrik Lissner
b681917082
Remove/replace references to doom-popup-buffer 2018-01-06 03:27:23 -05:00
Henrik Lissner
b28f6ed477
General minor refactor & comment revision 2018-01-06 03:03:02 -05:00
Henrik Lissner
60cded00e6
Decouple doom/escape & evil 2018-01-06 03:00:45 -05:00
Henrik Lissner
3cbddbfd88
Generalize +evil-esc-hook into doom-escape-hook
This lets vanilla Emacs users in on having a universal "escape" key.
2018-01-06 02:38:39 -05:00
Henrik Lissner
91357a3e5d
💥 Replace core-popup with new feature/popup module
This is a breaking change! Update your :popup settings. Old ones will
throw errors!

Doom's new popup management system casts off its shackles (hur hur) and
replaces them with the monster that is `display-buffer-alist`, and
window parameters.

However, this is highly experimental! Expect edge cases.  Particularly
with org-mode and magit (or anything that does its own window
management).

Relevant to #261, #263, #325
2018-01-06 02:17:43 -05:00