Commit graph

78 commits

Author SHA1 Message Date
Vincent Zhang
b2bd730f1e Change github to GitHub. 2019-08-18 03:56:39 +08:00
Vincent Zhang
a6145d435a Display minor modes if minions is installed. 2019-08-12 22:48:00 +08:00
Vincent Zhang
59a5d1e8d2 Fix #203: Add custom faces for the LSP icon. 2019-08-02 00:44:43 +08:00
Vincent Zhang
00ddd1b964 Enhance customizations. 2019-07-20 17:35:03 +08:00
Vincent Zhang
4a4177714f Refactor face group. 2019-07-19 00:03:52 +08:00
Zhu Zihao
c8d2556483 When if-let* or when-let* was defined, don't do alias for it.
Some package may alias it (or define a enhance version) before the loading of
`doom-modeline`

Use `eval-and-compile`, allow byte-compiler see through the form, is better than
using `with-no-warnings` to suppress it rigidly.
2019-07-16 05:59:55 +08:00
Vincent Zhang
d66c803d3a Add customization group: doom-modeline-faces. 2019-07-15 02:34:54 +08:00
Vincent Zhang
10b7e92152 Make variables to customizations. 2019-07-15 01:41:48 +08:00
Vincent Zhang
fed2b288dd Refactor: use quote instead of unnecessary backquote. 2019-07-13 00:55:05 +08:00
Vincent Zhang
324ab847a2 Align right segments after scaling font of the mode-line. 2019-07-09 01:53:37 +08:00
Vincent Zhang
ce7c1006eb Improve: calculate font height. 2019-07-08 23:51:54 +08:00
Vincent Zhang
fd52978a97 Improve icons for the persp-name segment. 2019-07-02 14:07:21 +08:00
JustFdot
fe29b82625 Add icon for persp-name segment 2019-07-01 23:23:33 +05:00
Vincent Zhang
1c092cbd17 Optimize doom-modeline--font-height. 2019-07-01 19:47:47 +08:00
Vincent Zhang
68362f248e Fix: Wrong type argument: number-or-marker-p, unspecified. 2019-07-01 19:42:41 +08:00
Vincent Zhang
2bf802e7f5 Optimize: calculate font height of mode-line.
Use face-attribute instead of frame-char-height.
Close #189.
2019-07-01 18:50:09 +08:00
Vincent Zhang
7d8ec424c8 Change doom-modeline--font-height to function.
See @187.
2019-07-01 18:00:41 +08:00
Vincent Zhang
c12ba0edfc Update font height. 2019-06-25 17:57:40 +08:00
Vincent Zhang
118f7084ff Revert: Refresh the mode-line forcedly after switching frames.
Revert 62f48c062e.
Close #186.
2019-06-10 15:41:13 +08:00
Vincent Zhang
62f48c062e Refresh the mode-line forcedly after switching frames. 2019-06-06 18:21:04 +08:00
Vincent Zhang
94ddb2f68b Use hooks instead of advices. 2019-06-06 17:28:34 +08:00
Vincent Zhang
59c81a0d81 Fix #180: Error for TRAMP python in doom-modeline-env. 2019-05-31 22:04:16 +08:00
Vincent Zhang
c5226e4aae Eliminate compiler warnings. 2019-05-23 16:47:30 +08:00
Vincent Zhang
b2b7e60798 [Optimize] Calculate font height.
Not use font-info which is slow and may hang.
Only create xpm images if available on GUI.

Close #176.
2019-05-23 16:35:15 +08:00
Vincent Zhang
e7ebb24208 Remove obsolete variable: doom-modeline-version. 2019-05-22 15:36:40 +08:00
Vincent Zhang
0076029ac6 Rename: doom-modeline-whitespace -> doom-modeline-spc. 2019-05-22 15:15:48 +08:00
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
230ffe8efc Fix #173: Vertical separators showing up when modeline is inactive. 2019-05-19 03:45:04 +08:00
Vincent Zhang
c300c80260 Refactor vspc and whitespace. 2019-05-16 23:31:52 +08: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
6f54eb240e Update README. 2019-05-14 02:15:57 +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
958756996a Add an icon for helm buffers. 2019-05-10 14:15:21 +08:00
Vincent Zhang
8209edf915 Optimize performance. 2019-05-03 22:20:35 +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
vjoki
ece9ce3600
Add face for doc-face. 2019-04-24 10:51:44 +03:00
Vincent Zhang
8e30b0b06b Fix #160: Remove unnecessary eldoc-eval package. 2019-04-23 20:13:40 +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
3464819e6c Display color icons for major modes by default. 2019-04-12 01:30:25 +08:00
Vincent Zhang
c5b5a4d2d2 Fix #154: shorten branch name of vcs segment. 2019-04-06 15:12:11 +08:00
Vincent Zhang
0ead21b91f Optimize doom-modeline-project-root. 2019-03-29 21:36:47 +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
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
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
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
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
ff68bfa4e6 Fix #140: Only load all-the-icons in GUI. 2019-03-09 01:51:11 +07:00