Commit graph

942 commits

Author SHA1 Message Date
Vincent Zhang
be71570911 Bump version. 2019-11-12 01:33:46 +08:00
Vincent Zhang
a80cf92417 Don't enable unicode characters fallback by default.
Close #254.
2019-11-12 01:27:22 +08:00
Vincent Zhang
700c7d3d49 Improve eglot segment. 2019-11-12 00:47:43 +08:00
Vincent Zhang
0553a3f348 Fix #252: Use new stable API eglot-current-server.
See 146108af7a.
2019-11-11 23:59:20 +08:00
Vincent Zhang
33caf3e1d7 New face: doom-modeline-host. 2019-11-11 21:12:36 +08:00
Vincent Zhang
c6c36371b0 Eliminate warnings. 2019-11-11 15:40:29 +08:00
Vincent Zhang
48bbd9b57c Revert "Eliminate warnings."
This reverts commit 27edf5942b.
2019-11-11 15:39:17 +08:00
Vincent Zhang
27edf5942b Eliminate warnings. 2019-11-11 13:34:33 +08:00
Vincent Zhang
e5c573ddcf
Merge pull request #250 from jorams/fix-eglot-hook
Fix Eglot update hook breaking Eglot shutdown
2019-11-09 22:27:33 -06:00
Joram Schrijver
bdb2f151cc Fix Eglot update hook breaking Eglot shutdown
doom-modeline is using various Eglot internals to display its Eglot
segment. One of those internals, eglot--current-server, recently changed
so that it now triggers a cache variable, eglot--cached-current-server,
to be set.

The hook used by doom-modeline is run during shutdown, after the buffer
becomes unmanaged by Eglot, but before all of its internal state has
been updated. The call to eglot--current-server then triggers the cache
variable to be set to an outdated value, which remains after shutdown
completes.

Any further calls to Eglot will end up seeing the incorrectly cached
value, which causes all kinds of breakage.

Note that, with or without this fix, the implementation relies on Eglot
internals and is likely to be fragile.
2019-11-09 21:32:30 +01:00
Vincent Zhang
c73428b414 Add one exra space to avoid the segment-cut issue.
See #241, #242.
2019-11-10 03:53:08 +08:00
Vincent Zhang
083286f2cf Fix #249: Huge space appeared at the beginning of the modeline. 2019-11-08 23:52:13 +08:00
Vincent Zhang
25cd013c03 Fix typo. 2019-11-08 17:57:58 +08:00
Vincent Zhang
30a37d2134 Bump version. 2019-11-08 03:08:00 +08:00
Vincent Zhang
d440b8f3a0 Improve buffer-position segment. 2019-11-08 03:02:36 +08:00
Vincent Zhang
701271488a [Enhancement] Formalize mouse faces. 2019-11-07 18:04:14 +08:00
Vincent Zhang
7edb863a81 Bump version to 2.7.1. 2019-11-06 01:11:46 +08:00
Vincent Zhang
9c2791c054 [Feature] Support icons of modals segment. 2019-11-06 00:58:24 +08:00
Vincent Zhang
e93660e93f [Feature] Support evil state icon.
New option: doom-modeline-evil-state-icon.
The fallback is the unicode character.
Update evil state faces.
2019-11-06 00:37:41 +08:00
Vincent Zhang
44d0f7b871 Refactor. 2019-11-05 21:06:53 +08:00
Vincent Zhang
95809a1b04 Fix #248: Unable to kill *scratch* while starting Emacs.
Check if "*scratch*" and "*Messages*" buffers exist while setting the mode-line
for them.
2019-11-04 22:12:28 +08:00
Vincent Zhang
3eeb090405 Fix performace issue in hydra/lv-message.
See #183.
2019-10-31 19:35:11 +08:00
Vincent Zhang
2cf48d76ae Fix #246: Incompatible with (setq vc-display-status nil). 2019-10-31 16:57:48 +08:00
Vincent Zhang
271e840832 Update docs for displaying icons when using server.
Close #247.
2019-10-31 16:49:09 +08:00
Vincent Zhang
7a5e64e760 Update travis-ci. 2019-10-30 23:53:31 +08:00
Vincent Zhang
280efe94c6 Update encoding segment. 2019-10-30 01:41:37 +08:00
Vincent Zhang
f29b943e20 Fix typo. 2019-10-30 01:31:28 +08:00
Vincent Zhang
b08a8138cf Fix incorrect face of special buffers. 2019-10-29 21:01:45 +08:00
Vincent Zhang
2f3df816c2 Don't display buffer modification state in pure buffers. 2019-10-29 20:33:26 +08:00
Vincent Zhang
60ef755ef2 Fix #244: infinite recursion when opening file via "/ssh:host|sudo:host:".
The advice of generate-new-buffer causes the issue.
Remove it and don't check buffer-file-name for buffer modification state.
2019-10-29 17:36:37 +08:00
Vincent Zhang
3789a96ae0 Change the face of debug icon. 2019-10-29 02:38:40 +08:00
Vincent Zhang
12f291b6c7
Merge pull request #242 from muirrn/remove-extra-checker-space
Fix double space after "checker" segment.
2019-10-27 13:50:31 -05:00
Muir Manders
0443a65d97 Fix double space after "checker" segment.
If there is no checker text (i.e. no errors), you were ending up with
two spaces after the checker icon. Fix by moving the second space into
the "text" conditional.
2019-10-27 11:36:39 -07:00
Vincent Zhang
a8d932e093 Restore to the default mode-line for special buffers. 2019-10-28 01:29:33 +08:00
Vincent Zhang
79c705019a Fix: (wrong-type-argument stringp nil). 2019-10-27 16:21:47 +08:00
Vincent Zhang
b2c0012252 [Feature] EOL (End Of Line) cycle.
Close #240.
2019-10-27 03:31:15 +08:00
Vincent Zhang
a19d82e8cf Revert to doom-modeline-major-mode-icon and doom-modeline-major-mode-color-icon as suggested. 2019-10-26 00:06:10 +08:00
Vincent Zhang
59b1f7fe24 Remove doom-modeline-color-icons. 2019-10-25 14:24:51 +08:00
Vincent Zhang
b76ff9b5d6 Fix #235: it's not possible to disable icon colours.
Rename doom-modeline-color-icons to doom-modeline-buffer-color-icon.
2019-10-25 05:57:02 +08:00
Vincent Zhang
c4e6e3d834 Eliminate warnings. 2019-10-25 04:35:49 +08:00
Vincent Zhang
a3b6432569 Force redisplay to trigger height calculations
ertain functions, including e.g. `fit-window-to-buffer', base
their size calculations on values that are incorrect if the
mode-line has a height different from that of the `default' face
and certain other calculations have not yet taken place for the
window in question.

Force a redisplay before `fit-window-to-buffer' using an advice,
like we already did for `resize-temp-buffer-window'.

Close #183.

Reference:
https://github.com/tarsius/moody/issues/19
https://github.com/magit/transient/issues/63
2019-10-25 02:53:17 +08:00
Vincent Zhang
54fe24786a [New] Option: doom-modeline-number-limit.
The maximum number displayed for notifications.
2019-10-25 01:58:28 +08:00
Vincent Zhang
93135d4220 [Feature] Use built-in battery instead of unmaintained fancy-battery.
See 9b88ae77a0.
2019-10-25 01:28:57 +08:00
Vincent Zhang
22b14c9b8e [NEW] Options: doom-modeline-color-icons & doom-modeline-buffer-icon
Deprecate doom-modeline-major-mode-color-icon and doom-modeline-major-mode-icon.
2019-10-24 20:28:26 +08:00
Vincent Zhang
8f756cf390 Fix #234: Symbol’s value as variable is void: fancy-battery-last-status. 2019-10-23 13:31:55 +08:00
Vincent Zhang
4a58b8d6b1 Update vcs icon. 2019-10-23 03:15:18 +08:00
Vincent Zhang
8bdd0cd2ee Update the icon of git-timemachine. 2019-10-23 03:07:51 +08:00
Vincent Zhang
cfb45c8eef [Feature] Unicode and ASCII fallbacks.
Enhance the segments.
Remove doom-modeline-persp-name-icon.
Refactor.
See #218.
2019-10-23 02:50:04 +08:00
Vincent Zhang
3b956e5d85 Update face: doom-modeline-debug. 2019-10-22 22:26:19 +08:00
Vincent Zhang
ce2cee661c
Merge pull request #233 from amosbird/master
inhibit bogus cursor jump.
2019-10-19 09:59:21 +08:00