Commit Graph

13 Commits

Author SHA1 Message Date
bd0728e9b3 fix(window-select): unset winum-auto-setup-mode-line sooner
Its value is read when winum-mode is activated.
2023-02-23 01:09:32 -05:00
c2f5e41722 tweak(window-select): winum-auto-setup-mode-line = nil
Leave it to modeline modules, plugins, and/or the user to support this
plugin, rather than impose winum's (rather destructive) side-effects on
them all.
2022-10-23 02:30:13 +02:00
ad6a3d0f33 refactor: deprecate featurep! for modulep!
featurep! will be renamed modulep! in the future, so it's been
deprecated. They have identical interfaces, and can be replaced without
issue.

featurep! was never quite the right name for this macro. It implied that
it had some connection to featurep, which it doesn't (only that it was
similar in purpose; still, Doom modules are not features). To undo such
implications and be consistent with its namespace (and since we're
heading into a storm of breaking changes with the v3 release anyway),
now was the best opportunity to begin the transition.
2022-08-14 20:43:35 +02:00
41921f5f07 fix(window-select): allow Switch Window to work with >6 windows 2022-06-17 18:38:39 +02:00
12249753e6 Revert aw-keys to default if +numbers is enabled 2020-02-22 20:40:03 -05:00
f4e641950c Minor, general refactors 2019-11-05 18:46:07 -05:00
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
c1b0ae6ac1 Move winum to ui/window-select module
And update its README
2019-05-09 21:44:19 -04:00
c82faf7f10 General reformatting & minor refactors 2019-02-19 15:53:26 -05:00
09cb4f6716 Major refactor & optimization of how modules load their packages
Now that we are loading package autoloads files (as part of the
generated doom-package-autoload-file when running make autoloads), many
:commands properties are redundant. In fact, many def-package! blocks
are redundant.

In some cases, we can do without a config.el file entirely, and can move
into the autoloads file or rely entirely on package autoloads.

Also, many settings have been moved in their module's autoloads files,
which makes them available ASAP; their use no longer depends on module
load order.

This gained me a modest ~10% boost in startup speed.
2018-05-25 00:46:16 +02:00
fab6fb1270 ui/window-select: use use-package :when/:unless instead of cond
Appease the byte-compiler.
2018-01-05 13:17:04 -05:00
58573a0ce7 Refactor/revise ui/window-select
And bind SPC w C-w (or C-w C-w) to other-window.
2018-01-04 16:16:44 -05:00
f9321b1b3b Module to visually select windows with either ace-window or switch-window
Modularize ace-window and add switch-window as a replacement: Issue #218
2017-10-08 23:34:25 +02:00