70e0280db3
Don't byte-compile modeline format functions
...
Fixes unused lexical arg warnings when starting up.
2018-07-30 23:50:03 +02:00
1211c2c7f7
Fix incorrectly rendered icons in modeline #773
...
And possibly fix bytecomp warnings about unused lexical variables.
2018-07-30 23:00:35 +02:00
088480047c
Polish & move new modeline into :ui modeline
...
Removes modeline library out of core-ui and contains them in :ui
doom-modeline and :ui modeline.
:ui modeline will eventually replace :ui doom-modeline, but is still
considered experimental. This update provides makes it much more stable
and closer to being feature complete.
2018-07-29 19:31:32 +02:00
9abafcf74a
Rename def-modeline! -> def-modeline-format!
...
As to differentiate it from the old def-modeline! macro. This only
affects users of the +new modeline.
2018-07-29 17:41:55 +02:00
ba4d72713a
Don't set mode-line if format doesn't exist
2018-07-10 21:48:52 +02:00
0cd32b5f1d
Add selection info segment to new modeline
2018-07-10 21:48:32 +02:00
57020cdfdb
Fix void-variable after-focus-change-function error
...
The condition was the wrong way around.
2018-07-04 21:26:20 +02:00
f5e8c72bb6
Add experimental modeline (disabled by default)
...
This mode-line may have bugs and its implementation details are certain
to change (it doesn't follow naming conventions, for instance). It also
doesn't have all the features of the old modeline (yet).
However, it is easily twice as fast as the original, and a little more
flexible, what with the `mode-line-format-left' and
`mode-line-format-right' variables. It also exposes a more powerful API
for defining modelines and modeline segments (and switching between
them).
It is disabled by default and must be activated with the +new module
flag on the ui/doom-modeline module.
2018-07-04 17:49:44 +02:00
ca2c8b5a45
Minor refactor, across the board
...
Do you see the board? Now look at the other side. That's how far this
refactor extends.
Yes.
2018-06-18 15:02:24 +02:00
d822560b34
Fix void-variable after-focus-change-function error
...
This variable is introduced in the latest Emacs and the condition around
it was inverted.
2018-06-17 02:54:14 +02:00
79413be1f0
Improve doom modeline focus hooks
...
More reliable deactivation when unfocusing or switching away from Emacs.
2018-06-16 21:41:39 +02:00
4d2e1dd526
Fix modeline growing incrementally on big font mode
...
Fixes #575
2018-06-02 21:40:57 +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
80f766c151
ui/doom-modeline: load evil-anzu only if evil is enabled
2018-05-29 15:32:36 +02:00
456dc62051
Fix compile-time void-function errors from modeline
2018-05-29 15:32:36 +02:00
442aa91eea
ui/doom-modeline: optimize/refactor flycheck segment
2018-05-29 14:13:31 +02:00
9ae99deb65
ui/doom-modeline: optimize vcs segment (experimental)
2018-05-29 14:13:31 +02: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
4705153873
Minor refactor
...
+ comment revision
+ delq->map-delete
+ remove obsolete variable
2018-05-09 00:20:01 +02:00
7553f83b04
ui/doom-modeline: minor refactoring
2018-05-04 15:12:44 +02:00
85e5ac4514
ui/doom-modeline: adjust bars when height/width is changed
...
Also when doom-big-font-mode is toggled.
2018-05-04 15:12:44 +02:00
e6c7c8a8cd
ui/doom-modeline: reduce redundant anzu config
2018-05-04 15:12:44 +02:00
d0b183b770
Anzu mode made right.
2018-05-03 21:23:35 +02:00
5c5cbe23db
Enabled vanilla anzu.
2018-05-03 20:12:21 +02:00
c05b16ee6f
Minor refactor/reformatting
2018-05-03 18:03:13 +02:00
630188e27e
ui/doom-modeline: optimize flycheck segment
2018-04-26 05:11:01 -04:00
a6d8a0b4ec
ui/doom-modeline: update flycheck on status-changed #549
2018-04-26 05:11:01 -04:00
4d2d3953b8
ui/doom-modeline: fix off-by-one in selection-info segment
2018-04-25 05:17:56 -04:00
5acd952c47
ui/doom-modeline: fix (some) void-variable errors w/ blank buffer-file-truename
2018-04-23 06:07:12 -04:00
1751c84559
ui/doom-modeline: fix word count in evil line-wise selection #364
2018-04-18 19:51:37 -04:00
c4e176092e
[develop] Fix links.
2018-04-17 20:59:59 -07:00
f3b99779c9
Add doom-after-switch-frame-hook; fix over-eager switch-window hooks
...
Switch-window hooks would fire too frequently; like when switching to
the same window, clicking in windows, or from the minibuffer (e.g.
during ivy sessions).
2018-03-26 06:40:04 -04:00
940ba05e6a
Fix miscounting in anzu (search) modeline segment
2018-03-20 03:40:18 -04:00
b082ba6460
ui/doom-modeline: deactivate mode-line when frame loses focus #458
2018-03-12 13:32:02 -04:00
c6352f055d
ui/doom-modeline: resize mode-line for doom-big-font-mode
2018-03-02 23:26:58 -05:00
7707aec28a
Remove doom group
...
Not really useful, and Doom doesn't encourage using the Emacs Customize
interface.
2018-02-18 03:04:58 -05:00
0b9ac52d27
ui/doom-modeline: remove eldoc-eval #420
...
eldoc has this functionality built-in.
2018-02-13 19:46:25 -05:00
0be42fe473
ui/doom-modeline: fix error caused by nil buffer-file-truename
2018-02-10 15:17:19 -05:00
d01deb5545
ui/doom-modeline: minor refactor
2018-01-31 05:03:28 -05:00
6b453962d7
ui/doom-modeline: silent xpm errors in tty emacs
2018-01-31 05:00:08 -05:00
c52cb38385
ui/doom-modeline: refactor flycheck segment (faster)
2018-01-31 04:24:51 -05:00
50ce083696
ui/doom-modeline: add word-count to selection segment #364
...
Controlled by the buffer-local variable
+doom-modeline-enable-word-count. Use +doom-modeline|enable-word-count
to enable it in certain modes. By default, this is enabled in text-mode
derived buffers.
2018-01-31 04:23:20 -05:00
3146513442
ui/doom-modeline: define bar once
...
A little faster (and simpler) than memoizing the xpm generator.
2018-01-28 21:38:19 -05:00
cd6fb816fd
ui/doom-modeline: set modeline sooner
...
This may address scenarios where the modeline is unset, especially in
terminal Emacs sessions (like when emacs -nw is your EDITOR).
2018-01-28 16:50:32 -05:00
6790d666e0
ui/doom-modeline: init on doom-init-theme-hook
...
Initialize modeline with the theme.
2018-01-15 00:40:24 -05:00
c586eee602
ui/doom-modeline: don't forcibly hide modeline in org-src-mode
2018-01-07 05:56:02 -05:00
a5bb69cf6a
Ensure *Messages* and *scratch* have a modeline
2018-01-07 00:35:23 -05:00
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
76a4ae459d
Fix obsolete (when|if)-let messages in Emacs 26
2017-12-10 14:49:52 -05:00
4a504a07aa
ui/doom-modeline: remove all-the-icons-scale-factor let-bindings #278
2017-12-09 14:51:33 -05:00