Vincent Zhang
825c2bed71
Calculate the actual char height of the mode-line.
...
doom-modeline-height is the minimal height of mode-line. It respects the actual
char height.
2019-05-21 14:35:01 +08:00
Vincent Zhang
4d99a5f11b
Optimize: Make bar look better for big fonts.
2019-05-20 23:17:07 +08:00
Vincent Zhang
ea9c02134c
Remove unused spaces while lsp is not enabled.
2019-05-19 23:04:34 +08:00
Vincent Zhang
46338a560d
[Feature] timemachine mode-line for git-timemachine-mode.
2019-05-19 23:04:03 +08:00
Vincent Zhang
3167beda51
Fix #175 : change "RLF" to "CRLF".
2019-05-19 19:02:27 +08:00
Vincent Zhang
ec4e6b932e
[Feature] overwrite-mode indicator.
...
Close #174 .
2019-05-19 04:09:36 +08:00
Vincent Zhang
230ffe8efc
Fix #173 : Vertical separators showing up when modeline is inactive.
2019-05-19 03:45:04 +08:00
Vincent Zhang
81b91ae666
Add one more space in checker if vc-mode is nil.
2019-05-17 01:59:06 +08:00
Vincent Zhang
613a9ae4cc
Remove one space before checker.
2019-05-17 01:57:48 +08:00
Vincent Zhang
30383defe0
Try to use whitespace.
2019-05-17 01:56:09 +08:00
Vincent Zhang
c300c80260
Refactor vspc and whitespace.
2019-05-16 23:31:52 +08:00
Vincent Zhang
b50388cc61
Merge pull request #169 from vjoki/various-fixes
...
Various fixes
2019-05-16 10:07:48 -05:00
vjoki
caf3a3b770
Various fixes
...
1. Make helm icon color consistent with major-mode icon.
2. Attempt to fix missing colors.
Prevent mode-line face from overriding properties that resulted in lack of colors in checker, lsp, vcs, and buffer-info segments. It's possible that there are still more instances of these.
This is just a quick fix, there should be a better way to do this.
3. Reduce checker jumpiness/flicker by retaining the existing text while the checker is running.
4. Refactor segment whitespace.
Attempt at fixing most of the cases of whitespace with no inactive properties.
Occurs for example when activating helm M-x.
2019-05-15 14:01:13 +03:00
Vincent Zhang
1c5520de94
Fix #172 : invalid format argument order in flymake.
2019-05-15 18:26:24 +08:00
Neri Marschik
b43bbbffba
fix: invalid face reference: mode-line-inactives
2019-05-15 07:34:52 +09:00
Vincent Zhang
4a694ece9b
Improve LSP segment.
2019-05-14 03:54:48 +08:00
Vincent Zhang
356e8d670a
[Feature] options: doom-modeline-buffer-encoding and doom-modeline-indent-info.
2019-05-14 02:12:36 +08:00
Vincent Zhang
edd97bb2a0
[Feature] indent-info segment.
2019-05-14 02:08:37 +08:00
Vincent Zhang
23c9278704
Add one space for the LSP indicator.
2019-05-14 01:56:22 +08:00
Vincent Zhang
8e16fc8380
Fix: void variables error in Emacs 25 with terminal.
2019-05-14 01:19:48 +08:00
Vincent Zhang
1e5a5b6d7b
Fix: Support frame for window number.
2019-05-12 14:17:31 +08:00
Vincent Zhang
93517eb854
Change the segment name of info to info-nodes.
2019-05-12 01:14:48 +08:00
Vincent Zhang
2818d7faa3
Improve pdf mode-line.
2019-05-12 01:02:05 +08:00
Vincent Zhang
958756996a
Add an icon for helm buffers.
2019-05-10 14:15:21 +08:00
Vincent Zhang
586086889e
[Feature] Helm mode-line.
2019-05-10 03:17:15 +08:00
Vincent Zhang
7ce5e477f3
[Feature] Info mode-line.
2019-05-10 02:00:53 +08:00
Vincent Zhang
e902f41638
Fix #168 : when no icons: invalid face attribute and reference.
2019-05-07 00:34:17 +08:00
Vincent Zhang
2bbfcbe685
Show lsp indicator in both active and inactive windows.
2019-05-06 22:55:49 +08:00
Vincent Zhang
6d80564d4a
Refactor LSP segment.
2019-05-06 21:52:36 +08:00
Vincent Zhang
de442a1c28
Make icon colors consistent.
...
1. Same colors of eglot and lsp-mode.
1. Change the color of debug-quit icon.
2019-05-06 18:48:40 +08:00
Vincent Zhang
fc098a6946
Fix #167 : Eglot: Closing file issues error if server is shut down.
...
Also,
1. Change the icon color of eglot.
2. Optimize refreshing eglot.
2019-05-06 18:31:27 +08:00
Vincent Zhang
f9984246d2
Optimize package segment.
...
Leverage paradox--update-mode-line.
2019-05-06 17:43:15 +08:00
Vincent Zhang
0dfbb0c108
Bump version to 2.1.0.
2019-05-06 06:55:48 +08:00
Vincent Zhang
8d8225be5c
Not display window number if only one window with minibuffer.
2019-05-06 06:02:59 +08:00
Vincent Zhang
3e5edc255c
Fix: doom-modeline-major-mode-color-icon is not working.
2019-05-06 04:55:29 +08:00
Vincent Zhang
4795a3b3a8
Fix nil face error and refactor icon faces.
2019-05-06 04:17:39 +08:00
Vincent Zhang
86142a68cf
Add one space padding at the last position of checker segment.
2019-05-06 02:09:10 +08:00
Vincent Zhang
45426588f0
[Feature] New: package mode-line.
2019-05-06 02:06:28 +08:00
vjoki
7bf66dc24a
Make #163 compatible with flymake in Emacs 26
2019-05-04 13:51:02 +03:00
Vincent Zhang
413d414dd9
Refactor.
2019-05-03 23:43:50 +08:00
Vincent Zhang
47886faf1d
Improve battery segment.
2019-05-03 22:07:12 +08:00
Vincent Zhang
ad2c82960b
Change email icon.
2019-05-03 21:53:31 +08:00
Vincent Zhang
d103243e2a
Adjust the position of the last icon.
...
The widths of battery icons > 2 characters.
2019-04-29 11:34:06 +08:00
Vincent Zhang
2812a96c40
Minor fix for fancy-narrow-mode.
2019-04-29 11:19:49 +08:00
vjoki
3ebd0228b2
Fix flymake checker diagnostic counter.
...
Make the flymake checker rely on flymake--severity instead of just flymake--diag-type, because backends can and do (eg. eglot) specify different diag-types.
2019-04-24 18:11:10 +03:00
vjoki
141c9d4934
Remove direct use of font-lock-doc-face.
2019-04-24 10:51:46 +03:00
Andrew Whatson
bcb8be67e6
[Feature] Add indicator for objed state.
2019-04-23 11:24:33 +10:00
Vincent Zhang
2140ded3de
[Enhancement] New modal segment.
...
An indicator for modal editing state, including evil, god, ryo and xah-fly-keys, etc.
2019-04-22 23:35:52 +08:00
Vincent Zhang
108fd78261
[Feature] Add options: doom-modeline-buffer-state-icon and doom-modeline-buffer-modification-icon.
...
Close #158 .
2019-04-20 16:39:40 +08:00
Vincent Zhang
b464b69d26
[Enhancement] Improve the icons of major-mode, buffer state, etc.
...
1. Use the default icons of all-the-icons.
2. Respect all-the-icons-scale-factor correctly.
3. Remove the watchers of all-the-icons-scale-factor. Refresh the buffer to
enable after changing the value.
4. Remove function: doom-modeline-icon-height.
5. Refactor.
2019-04-20 02:39:05 +08:00
Vincent Zhang
8c2ed6b575
Set correct font width for `all-the-icons' for appropriate mode-line width.
...
See https://emacs.stackexchange.com/questions/14420/how-can-i-fix-incorrect-character-width .
2019-04-17 04:14:14 +08:00
Vincent Zhang
1d176b856e
Improve buffer icons.
2019-04-16 20:53:32 +08:00
Vincent Zhang
027a6f4678
Minor update help-echo.
2019-04-15 20:01:03 +08:00
Vincent Zhang
4ed18908a4
Change debug icon for convention.
2019-04-15 19:18:31 +08:00
Vincent Zhang
89c3dc167d
Don't display window number while there is only one window.
2019-04-15 18:01:50 +08:00
Vincent Zhang
f88b05d7e9
Rename segment workspace-number to workspace-name.
2019-04-15 17:50:39 +08:00
Vincent Zhang
3464819e6c
Display color icons for major modes by default.
2019-04-12 01:30:25 +08:00
Vincent Zhang
a4de2b6198
Change the fallback icon and bump version.
2019-04-11 01:03:02 +08:00
Vincent Zhang
c4fe2fbfab
Refactor doom-modeline-update-file-icon.
2019-04-10 15:04:44 +08:00
Vincent Zhang
a4ff475a11
Fix error while opening the special directory.
...
The directory '.HFS+ Private Directory Data'$'\r' on macOS is special, and OS is
unable to handle correctly. file-name-nondirectory returns empty always.
2019-04-10 14:05:31 +08:00
Vincent Zhang
a6814ac4e3
Fix: incorrect icons for some buffers.
2019-04-10 01:26:46 +08:00
Vincent Zhang
4c734d7f3e
Update debug icon and bump version to 1.9.7.
2019-04-10 00:46:32 +08:00
Vincent Zhang
c5b5a4d2d2
Fix #154 : shorten branch name of vcs segment.
2019-04-06 15:12:11 +08:00
Vincent Zhang
eb5685a2b9
Silence warnings.
2019-04-04 01:04:09 +08:00
Vincent Zhang
64f1cf5de1
Fix invalid sate icon in org-narrow.
...
narrow-to-region doesn't work in org-narrow-to-subtree, org-narrow-to-block,
org-narrow-to-element. Don't know the root cause.
2019-04-02 00:24:48 +08:00
Vincent Zhang
78f4ee0b8c
Adjust faces of debug icons.
2019-04-01 18:33:28 +08:00
Vincent Zhang
5cb7c2ddfb
Change buffer icon for unknown type.
2019-03-28 23:24:56 +08:00
Vincent Zhang
99a0bd9f12
Monitor buffer-read-only for all operations.
2019-03-28 16:25:35 +08:00
Vincent Zhang
262e42109c
Fix for run hooks with args in lsp indicator.
2019-03-23 14:02:29 +08:00
Vincent Zhang
7b9a1e5dd6
Update hooks for lsp indicator.
...
See https://github.com/emacs-lsp/lsp-mode/issues/726 .
2019-03-23 01:49:20 +08:00
Vincent Zhang
5774186d18
[Enhancement] Improve lsp indicator.
2019-03-22 22:40:08 +08:00
Vincent Zhang
aebaa760c6
[Performance] Optimize lsp/eglot indicators.
2019-03-22 03:00:45 +08:00
Vincent Zhang
77ac0984eb
[Performance] Improve performance of buffer-info segment.
...
Do not update every time for icons.
2019-03-22 02:46:13 +08:00
Vincent Zhang
67cc091716
Update 5 min later after opening github notifications page.
2019-03-22 02:27:01 +08:00
Vincent Zhang
80d0d40a34
[Performance] Improve the performance of pdf-pages segment.
2019-03-22 02:19:55 +08:00
Vincent Zhang
748824e692
[Optimize] Improve the performance of fancy-battery segment.
2019-03-22 01:52:25 +08:00
Vincent Zhang
3b704ee080
Fix #149 : hang while changing `doom-modeline-icon' from nil to t.
...
Don't delay load all-the-icons for this case:
Load Emacs daemon and enable doom-modeline-icon in Emacs clients.
2019-03-17 22:21:50 +07:00
Vincent Zhang
48bf1f26b7
Update the icons of all buffers while changing doom-modeline-icon.
...
Otherwise, the icons in inactive windows may not be displayed correctly.
2019-03-17 17:54:01 +07:00
Vincent Zhang
d3bebe6b2e
Improve DAP indicator.
2019-03-17 00:01:02 +07:00
Vincent Zhang
2213a238df
[Feature] Support dap-mode in debug indicator.
2019-03-16 23:44:32 +07:00
Vincent Zhang
547d479c6d
Rename function: doom-modeline-update-vcs-icon.
2019-03-16 18:46:57 +07:00
Vincent Zhang
88459ee106
Fix #149 : (setq doom-modeline-icon 1) fails and hangs emacs daemon.
2019-03-16 17:41:11 +07:00
Vincent Zhang
04ed6ec68f
[Enhancement] Support edebug/edebug-x in debug indicator.
2019-03-16 02:50:22 +07:00
Vincent Zhang
b29e5a85e9
Fix: conflict with lsp-on-revert/lsp-on-change.
...
Don't advice doom-modeline-set-selected-window (also bad performance).
And updating the buffer-file-name after selecting window in focus-in-hook (so
append it to the hook, after doom-modeline-set-selected-window).
See #133 and #114#issuecomment-469060334.
2019-03-16 01:20:31 +07:00
Vincent Zhang
fb8220d47e
Add more variable watchers for all-the-icons-scale-factor.
2019-03-14 16:12:11 +07:00
Vincent Zhang
7aa92a7a43
Fix #147 : Buffer does not seem to be associated with any file.
...
Introduced by 605c5615c1
.
2019-03-14 16:00:03 +07:00
Vincent Zhang
2b0f9ea1df
Refactor doom-modeline--symbol-overlay.
2019-03-14 00:19:42 +07:00
Vincent Zhang
34cc69a8df
Ignore user errors in symbol-overlay sub-segment.
2019-03-14 00:15:24 +07:00
Vincent Zhang
92f99bbd96
Silence warnings.
2019-03-13 15:31:17 +07:00
Vincent Zhang
72b4ea3741
Improve persp segment.
2019-03-12 23:26:03 +07:00
Vincent Zhang
605c5615c1
Simplify the variable watchers.
2019-03-12 21:16:34 +07:00
Vincent Zhang
43d0956960
Improve macro segment.
2019-03-12 21:08:06 +07:00
Vincent Zhang
0a38a65d39
Improve multiple-cursor segment.
2019-03-12 20:03:07 +07:00
Vincent Zhang
5985a573f1
Improve LSP segment.
2019-03-12 17:50:18 +07:00
Vincent Zhang
292f7bd238
Optimize performance of lsp indicator.
2019-03-12 00:59:28 +07:00
Vincent Zhang
550f849b81
[Enhancement] Improve lsp indicator for lsp-mode.
2019-03-12 00:51:37 +07:00
Vincent Zhang
ebbdbed858
[Feature] Support eglot state in LSP indicator.
2019-03-12 00:49:30 +07:00
Vincent Zhang
5dc0b5e7cd
Improve faces of multiple-cursors and silence warnings.
2019-03-11 15:38:06 +07:00
Vincent Zhang
dc83e6a4c3
Fix incorrect faces of "%" in global-mode-string.
...
See https://github.com/seagle0128/doom-modeline/issues/121#issuecomment-471335250 .
2019-03-11 15:36:29 +07:00
Vincent Zhang
b3e1dacbee
[Compatibility] Fix incorrect file state with popup.
2019-03-11 00:22:13 +07:00