Commit graph

231 commits

Author SHA1 Message Date
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
Vincent Zhang
a496a3d84e
Merge pull request #144 from netromdk/mc-matches
Show number of multiple cursors correctly
2019-03-10 22:18:00 +07:00
Morten Kristensen
a30a3b354a
Don't use inactive face for active mc matches context 2019-03-10 14:20:37 +01:00
Morten Kristensen
dc57152514
Show number of multiple cursors correctly
Before this change nothing was shown in the "matches" section of the modeline.
2019-03-10 13:08:20 +01:00
Vincent Zhang
84a0aac09b [Feature] Show state icons for fancy-narrow. 2019-03-09 02:41:20 +07:00
Vincent Zhang
f5a6fd9d42 Fix #141: All the icons icon misalignment when increasing icon scale. 2019-03-09 02:32:27 +07:00
Vincent Zhang
cc29f43045 Optimize performance.
See #139.
2019-03-08 15:23:59 +07:00
Vincent Zhang
a35a403c99 Show correct buffer faces. 2019-03-07 23:50:04 +07:00
Vincent Zhang
f4582bcbe3 Fix #139: doom-modeline showing buffer is modified when it's not. 2019-03-07 22:57:53 +07:00
Vincent Zhang
729e61a386 Fix: invalid symbol-overlay segment.
The API symbol-overlay-get-list was changed in ad77d6cd1e.
2019-03-07 15:19:54 +07:00
Vincent Zhang
df2397bcc5 Refactor persp segment and silence warnings. 2019-03-07 14:16:13 +07:00
Henrik Lissner
ac8bcc2551
Add evil-mc support to multiple-cursors segment 2019-03-06 23:18:30 -05:00
Vincent Zhang
52f46c1baf Use buffer-list-update-hook instead of advising select-window.
Follow #135.
2019-03-07 04:11:05 +07:00
Vincent Zhang
23b9ffb762 Not support variable-pitch since it breaks icons. 2019-03-07 04:04:03 +07:00
Vincent Zhang
5c926b81de Fix #133: buffer-info loses face after frame focus.
Also see #114.
2019-03-05 15:19:33 +07:00
Vincent Zhang
8e0ed6239b Update buffer file name in evil.
See https://github.com/seagle0128/doom-modeline/issues/129#issuecomment-469327822.
2019-03-05 00:02:09 +07:00
Vincent Zhang
c69ec1e5c5 Fix incorrect faces of buffer file name.
See https://github.com/seagle0128/doom-modeline/issues/114#issuecomment-469060334.
2019-03-04 23:38:33 +07:00
Vincent Zhang
de4c631252 Improve icons for terminal mode. 2019-03-04 21:15:28 +07:00
Vincent Zhang
93d335a54f Fix incorrect help-echo of file icons in org-agenda. 2019-03-04 16:58:24 +07:00
Vincent Zhang
67c352def1 Override u4e-alert-modeline after enabling doom-modeline.
See #130.
2019-03-04 14:15:52 +07:00
yqrashawn
66779bcb17 Revert "fix mu4e-alert-mode-line numberp error"
This reverts commit b29ce18e68.
2019-03-04 11:31:51 +08:00
yqrashawn
b29ce18e68 fix mu4e-alert-mode-line numberp error 2019-03-04 09:45:20 +08:00
Vincent Zhang
d46b5434f2 Fix: invalid faces. 2019-03-04 02:23:33 +07:00
Vincent Zhang
ab7f854d89 Fix invalid mouse-face in inactive windows. 2019-03-04 01:43:53 +07:00
Vincent Zhang
9c283f50bd Fix: invalid icons after setting modeline fonts. 2019-03-04 00:53:20 +07:00
Vincent Zhang
b1b51de36a Update battery thresholds. 2019-03-02 01:06:47 +07:00
Vincent Zhang
6c35035bc8 Refactor mu4e segment. 2019-03-01 23:35:37 +07:00
Vincent Zhang
07782ea9f6 Fix anzu issue.
See https://github.com/seagle0128/doom-modeline/pull/128#issuecomment-468621209.
2019-03-01 18:20:25 +07:00
Vincent Zhang
6942926612 Fix #128 and silence the warnings. 2019-03-01 16:33:02 +07:00
Vincent Zhang
c901459d9d
Merge pull request #128 from hlissner/patch-4
Fix matches segment mirroring across all buffers (part 2)
2019-03-01 16:28:12 +07:00
Vincent Zhang
d96b67576d [Enhancement] Override mode-lines in the global mode string.
For mu4e-alert and fancy-battery.
Refactor and reformat.
2019-03-01 16:18:13 +07:00
Henrik Lissner
6782b0ac30
Fix matches segment mirroring across all buffers
As well as the regression in anzu-replace-query
2019-02-28 19:10:19 -05:00
Vincent Zhang
8896f219e4 Update battery thresholds. 2019-03-01 03:38:06 +07:00
Henrik Lissner
fb8e06a0b4
Prevent anzu from injecting itself into modeline 2019-02-28 15:20:13 -05:00
Vincent Zhang
cbc74f0e9e
Merge pull request #124 from hlissner/patch-1
Hide checker segment when disabled/empty
2019-03-01 03:17:31 +07:00
Vincent Zhang
307352d256 Update battery status in terminal. 2019-03-01 03:04:49 +07:00
Vincent Zhang
8e61cfeff3 Force refresh mode-lien to remove original fancy-battery-mode-line. 2019-03-01 02:56:49 +07:00
Henrik Lissner
386000d47f
Hide checker segment when disabled/empty
For buffers that don't have either mode enabled or a valid checker present.
2019-02-28 14:55:49 -05:00
Vincent Zhang
5f9d9a2e48 [Enhancement] More meaningful icons for battery status. 2019-03-01 02:52:24 +07:00
Vincent Zhang
cd92bf0ffd Remove mu4e-alert's string from global modeline string. 2019-03-01 00:23:49 +07:00
Vincent Zhang
9f2a0183fc [Feature] An indicator for battery status with fancy-battery. 2019-02-28 23:58:47 +07:00
Vincent Zhang
4377c9ea5c Add an icon (mail) for mu4e-alert and update faces. 2019-02-28 15:35:54 +07:00
Vincent Zhang
58267460c6 Update mouse-face. 2019-02-28 14:06:54 +07:00
Vincent Zhang
0e0988331a Fix: invalid icon of irc segment in terminal. 2019-02-28 14:00:27 +07:00
Vincent Zhang
84ff61a660 [Feature] New lsp indicator with an icon. 2019-02-26 15:20:39 +07:00
Vincent Zhang
27b22faf56 [Compatibility] % symbol not displayed in minor mode lighters. 2019-02-26 01:45:11 +07:00
Vincent Zhang
40564fc281 [Compatibility] % symbol not displayed in global string.
Fix #121.
2019-02-25 23:39:58 +07:00
Vincent Zhang
6f189b37bd Fix the mark of read-only buffer. 2019-02-25 16:05:28 +07:00
Vincent Zhang
32eb2cb0a6 Format codes. 2019-02-22 00:13:26 +07:00
Vincent Zhang
bd8e00ff61 Format. 2019-02-19 04:05:52 +08:00
Vincent Zhang
b34f9849d2 Set default file icon. 2019-02-19 04:04:30 +08:00
Vincent Zhang
fc8b61021d Improve: get icons of the current buffer. 2019-02-19 03:05:22 +08:00
Vincent Zhang
3e7df26a30 Display icons for temp buffers. 2019-02-19 02:20:55 +08:00
Vincent Zhang
bec939f4ad Fix: missing or incorrect mode icons. 2019-02-18 22:14:23 +08:00
Vincent Zhang
81635fdf36 Rename doom-modeline-version to doom-modeline-env-version. 2019-02-18 18:57:16 +08:00
Vincent Zhang
11481cc647 Refactor. 2019-02-18 01:44:16 +08:00
Vincent Zhang
37eef920ec New customization: doom-modeline-checker-simple-format.
If non-nil, only display one number for checker information if applicable.
2019-02-18 01:30:59 +08:00
Vincent Zhang
89d6036e1d Clean up unused comments and codes. 2019-02-15 22:05:25 +08:00
Vincent Zhang
947312d209 Update advices for set-selected-window. 2019-02-15 21:22:13 +08:00
Vincent Zhang
38a3930aff Remove doom-modeline--github-open-notifications. 2019-02-14 20:26:48 +08:00
Vincent Zhang
17d197d9a7 Add customization: doom-modeline-enable-word-count. 2019-02-13 00:47:32 +08:00
Vincent Zhang
eab39937cd Fix incorrect file icon.
See https://github.com/seagle0128/doom-modeline/issues/114#issuecomment-462471548.
2019-02-12 17:41:26 +08:00
Vincent Zhang
83bf2c509d Fix errors in process segment. 2019-02-12 04:15:11 +08:00
Vincent Zhang
7ea698723f Fix: invalid faces of icons. 2019-02-12 03:52:01 +08:00
Vincent Zhang
a1e765fa56 [Enhancement] Make modeline color consistent while using minibuffer.
Close #114: Modeline color is inconsistent when using helm.
helm and eldoc-in-minibuffer-mode will trigger this issue.
2019-02-12 02:44:31 +08:00
Vincent Zhang
8e2fff521f
Merge pull request #110 from seanfarley/smf/irc
Add irc / circe segment
2019-02-04 17:18:58 +08:00
Sean Farley
c0cbf56db4 irc: add new segment to display the unread status
This segment is meant for the main modeline and just displays a single,
unread icon if there are any unread irc buffers.
2019-02-03 23:07:57 -08:00
Sean Farley
b6b6691ea3 irc: add new segment to display the unread buffers
This includes a configuration variable that allows the user to customize
the display of the name. The segment is only displayed in the 'special
modeline due to space. Later, we'll add a irc notification for the 'main
modeline.
2019-02-03 22:32:16 -08:00
Connor Nelson
9dd5e8c3d6 Update hooks to also run on undo tree visualize 2019-01-31 15:51:57 -07:00
Vincent Zhang
4f856886d6 Fix error: void-variable mu4e-alert-mode-line. 2019-01-31 00:12:38 +08:00
Vincent Zhang
c76cf1c199 Add new face: doom-modeline-unread-number. 2019-01-30 16:14:49 +08:00
Vincent Zhang
81e356cd3b Add spaces and face for mu4e indicator. 2019-01-30 16:02:34 +08:00
Sean Farley
ad73d3d874 mu4e: add new segment that shows unread emails 2019-01-29 14:48:39 -08:00
Vincent Zhang
54a5f45182 Fix #102: The nyan-cat indicator respects nyan-minimum-window-width. 2019-01-24 15:26:51 +08:00
Vincent Zhang
9ca40d04b1 Improve git notifications segment. 2019-01-24 01:58:17 +08:00
Vincent Zhang
849ba7097f Beautify github notifications. 2019-01-23 17:54:35 +08:00
Vincent Zhang
3440ce4c7c
Revert "mu4e: add new segment that shows unread emails" 2019-01-23 16:56:37 +08:00
Sean Farley
bccad0f6bf mu4e: add new segment that shows unread emails
This is a new segment for `mu4e-alert' that shows unread emails in the
modeline. For now, we enable it where github notifications are enabled
and make it a simple number.

When experimenting with adding an email icon, the modeline seemed a bit
too crowed so there is no icon for this number. We can perhaps add a
flag later to toggle that. Alternatively, we could expose more options
for the `doom-modeline-mu4e-formatter' that could tweak the number and
the icon.
2019-01-22 20:24:31 -08:00
Vincent Zhang
3d3b210325 Watch doom-modeline-buffer-file-name-style. 2019-01-23 03:04:26 +08:00
Vincent Zhang
78a0287515 Don't display persp-nil-name. 2019-01-18 18:09:34 +08:00
Vincent Zhang
fe1a703161 Refactor: split one file to core and segments. 2019-01-17 23:46:29 +08:00