Commit graph

37 commits

Author SHA1 Message Date
Henrik Lissner
659f7bfc71
refactor!: deprecate IS-* OS constants
BREAKING CHANGE: This deprecates the IS-(MAC|WINDOWS|LINUX|BSD) family
of global constants in favor of a native `featurep` check:

  IS-MAC      ->  (featurep :system 'macos)
  IS-WINDOWS  ->  (featurep :system 'windows)
  IS-LINUX    ->  (featurep :system 'linux)
  IS-BSD      ->  (featurep :system 'bsd)

The constants will stick around until the v3 release so folks can still
use it -- and there are still some modules that use it, but I'll phase
those uses out gradually.

Fix: #7479
2024-02-04 17:54:29 -05:00
Ellis Kenyo
e47accb773 fix(modeline): update icons for +light 2023-09-15 01:51:09 +02:00
Ellis Kenyő
9787022b83
refactor!: replace all-the-icons with nerd-icons
BREAKING CHANGE: This commit replaces all-the-icons with nerd-fonts. Any
all-the-icons-* function calls or variable references in your private
config will break and should be replaced with their nerd-icons-*
equivalent. That said, Doom will continue to install all-the-icons for
a while, so feel free to load it if you don't want to fully commit to
the change yet.

This change is happening because nerd-icon has wider support for GUI and
TUI Emacs; has a larger, more consistent selection of symbols; plus unicode
coverage.

Fix: #7368
Close: #6675
Close: #7364
2023-09-14 01:03:55 +02:00
Henrik Lissner
07c1534ea3
fix(modeline): void-function +modeline-refresh-bars-h error
Occurs during non-interactive startup of the user's config (e.g. 'doom
doctor'), while :ui (modeline +light) is enabled.

This is a makeshift solution until I get around to finishing the +light
feature.
2022-09-26 00:47:28 +02:00
Henrik Lissner
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
Henrik Lissner
057e6c531c
refactor: replace doom-enlist with ensure-list
doom-enlist is now a deprecated alias for ensure-list, which is built
into Emacs 28.1+ and is its drop-in replacement. We've already
backported it for 27.x users in doom-lib (in 4bf4978).

Ref: 4bf49785fd
2022-08-07 19:43:13 +02:00
Sheng Yang
07f2d17a11 feat(modeline): add pdf pages to +light modeline 2021-09-23 11:41:09 +02:00
Eric Dallo
59aabaead3
:ui modeline: Fix missing arg to function 2021-05-16 00:11:12 -03:00
Eric Dallo
c224e2e771
Move to global-mode-string 2021-05-15 18:30:59 -03:00
Eric Dallo
7ddfb6271d
Add repl modeline 2021-05-15 18:26:37 -03:00
Eric Dallo
8e56aa8706
Add lsp modeline 2021-05-15 18:26:26 -03:00
Henrik Lissner
7808f02646
ui/modeline: add +modeline-mode & +modeline-global-mode 2020-08-27 01:10:07 -04:00
Henrik Lissner
2e2f72a2de
ui/modeline: refactor buffer-id segment 2020-08-27 01:10:07 -04:00
Henrik Lissner
b3006ecabb
ui/modeline: update buffer id when renaming files
And revert 247ce145b, since I wasn't aware
after-set-visited-file-name-hook existed.
2020-08-26 19:54:05 -04:00
Henrik Lissner
848cc117c4
ui/modeline: cache buffer id for +light modeline 2020-08-26 17:23:31 -04:00
Henrik Lissner
6352524d32
Allow def-modeline-var! to overwrite old segments 2020-08-26 16:58:25 -04:00
Henrik Lissner
91ab02951d
Minor refactors across the board 2020-08-20 03:43:50 -04:00
Henrik Lissner
0b349bf1c0
ui/modeline: fix constant redisplay errors
Fixes a wrong-type-argument: stringp error emitted by the buffer-id
segment in :ui (modeline +light).
2020-08-13 03:05:50 -04:00
Henrik Lissner
809eae331f
Fix #3732: hard-to-see flycheck indicators
A temporary measure until I've sorted out custom faces for this module.
It solves difficult-to-see icons in the flycheck segment on some
themes (e.g. doom-molokai).
2020-08-12 02:52:00 -04:00
Henrik Lissner
b091a43fc7
ui/modeline: don't resolve project root over tramp
It can be tremendously slow, and is evaluated on every input. Sometimes
several times on each input.
2020-08-07 02:01:04 -04:00
Henrik Lissner
86843d7569
Fix excessive padding in +light modeline
If encoding segment is hidden, the padding between the VC branch and
syntax checker segments would be too large.
2020-07-23 00:57:57 -04:00
Henrik Lissner
b383ff23cb
ui/modeline: hide encoding if default 2020-07-19 00:57:14 -04:00
Henrik Lissner
fa55a0889a
Enable global-anzu-mode after evil-anzu loads
evil-anzu depends on anzu-mode being enabled to update its results, so
we enable global-anzu-mode when evil-search (or isearch) is first
invoked.
2020-05-27 14:06:17 -04:00
Henrik Lissner
0252f4f36f
Refactor :ui modeline +light 2020-05-25 03:43:40 -04:00
Henrik Lissner
5472d46426
Bump :ui modeline
seagle0128/doom-modeline@c177959 -> seagle0128/doom-modeline@2b30885
emacsorphanage/anzu@3e34fb3 -> emacsorphanage/anzu@7b8688c
emacsorphanage/evil-anzu@9bca6ca -> emacsorphanage/evil-anzu@d3f6ed4

Fixes the anzu number-of-matches display in the modeline for isearch,
iedit, evil-search, and evil-substitution. This was caused by changes
upstream.
2020-05-20 04:46:37 -04:00
Henrik Lissner
ea01e850e4
ui/modeline: add misc-info to project format 2020-02-28 12:20:52 -05:00
Henrik Lissner
d0380c42e7
Rename face: +modeline-bar -> +modeline-bar-active
It shared the name of a variable, which could be confusing.
2020-01-01 21:19:21 -05:00
Henrik Lissner
4808d40736
Convert def-modeline! macro into function
Eager-expansion was causing void-function errors for set-modeline!
2019-12-29 21:23:39 -05:00
Henrik Lissner
4741e322df
ui/modeline: fix VC branch icon 2019-12-21 01:39:10 -05:00
Henrik Lissner
f075c30710
ui/modeline: refactor encoding segment 2019-12-21 01:38:43 -05:00
Henrik Lissner
a54098a098
Fix face-background calls in +modeline-refresh-bars-h
Third argument should be a boolean; symbols are treated as references to
faces to inherit from.
2019-12-20 21:48:28 -05:00
Henrik Lissner
0e4d25d533
ui/modeline: prevent cut-off popups #2219
By forcing resized windows to take non-standard modeline height into
account.
2019-12-20 20:37:55 -05:00
Henrik Lissner
9c73bff4f0
ui/modeline: unset other format hooks
If set-modeline-hook! is used after init.
2019-12-17 15:37:33 -05:00
Henrik Lissner
980fa74630
ui/modeline: make set-modeline-hook! append to hook
So later invokations override earlier ones.
2019-12-17 15:28:34 -05:00
Henrik Lissner
c0302e79aa
ui/modeline: disable pdf modeline for +light users
Temporarily. Until a pdf modeline has been defined.
2019-12-17 15:28:34 -05:00
Henrik Lissner
20a733a861
ui/modeline: major refactor of +light modeline 2019-12-15 01:16:22 -05:00
Henrik Lissner
f236d27d51
ui/modeline: add +light feature
This will one day replace the module.
2019-12-13 20:07:41 -05:00