Commit graph

53 commits

Author SHA1 Message Date
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
Vincent Zhang
9bc96d908f [Enhancement] Enable eldoc-in0mmiibuffer-mode after enabling doom-modeline-mode.
Close $42.
2019-03-09 00:59:29 +07:00
Henrik Lissner
a73cc3d112
Rewrite env system
+ Initializes the modeline segment on hack-local-variables-hook, which
  is triggered as late as possible in the major mode activation process,
  when file/dir-local variables have been processed. This allows users
  to exploit file/dir-local variables to modify the behavior of this
  mode-line segment.
+ Add doom-modeline-{before,after}-update-env-hook hooks. Useful for
  injecting environment detection for things like conda and virtualenv.
+ Add customizable executable variables for each language. e.g.
  doom-modeline-env-python-executable
+ Simplify language env definition into a macro.
+ Replaces the version string with "..." while we wait for a new one.
+ Add support for enh-ruby-mode.
2019-03-06 21:04:31 -05:00
Vincent Zhang
80bc70fa82
Merge pull request #132 from flatwhatson/relative-project-highlight
Highlight project-root for relative-from-project style
2019-03-07 04:16:32 +07:00
Vincent Zhang
77cf8a45c4
Merge pull request #135 from Alexander-Miller/select-window
Use buffer-list-update-hook instead of advising select-window.
2019-03-07 04:10:00 +07:00
Vincent Zhang
23b9ffb762 Not support variable-pitch since it breaks icons. 2019-03-07 04:04:03 +07:00
Alexander Miller
eabfed0068 Use buffer-list-update-hook instead of advising select-window. 2019-03-06 12:48:33 +01:00
Andrew Whatson
3397c94da5 Highlight project-root for relative-from-project style 2019-03-05 10:46:58 +10:00
Vincent Zhang
933f321092 [Feature] Display mode-line with `variable-pitch' face. 2019-03-04 17:13:29 +07:00
Vincent Zhang
e8f8a61a74 Fix: failed test cases.
Close #123.
2019-03-01 20:30:58 +07:00
Vincent Zhang
c6e95114ae Fix #123: invalid-regexp "Trailing backslash" on Windows.
Also see https://gitlab.com/bennya/shrink-path.el/issues/2.
2019-03-01 16:46:01 +07:00
Vincent Zhang
5f9d9a2e48 [Enhancement] More meaningful icons for battery status. 2019-03-01 02:52:24 +07:00
Vincent Zhang
81635fdf36 Rename doom-modeline-version to doom-modeline-env-version. 2019-02-18 18:57: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
e57c0aa25a Revert 947312d * Update advices for set-selected-window. 2019-02-16 11:58:44 +08:00
Vincent Zhang
947312d209 Update advices for set-selected-window. 2019-02-15 21:22:13 +08:00
Vincent Zhang
17d197d9a7 Add customization: doom-modeline-enable-word-count. 2019-02-13 00:47:32 +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
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
Vincent Zhang
13d0c0bd21 Update face: doom-modeline-unread-number. 2019-01-30 16:22:19 +08:00
Vincent Zhang
c76cf1c199 Add new face: doom-modeline-unread-number. 2019-01-30 16:14:49 +08:00
Vincent Zhang
8786231f8a
Merge pull request #105 from seanfarley/smf/mu4e
Add mu4e segment that shows unread emails.
2019-01-30 15:59:00 +08:00
Sean Farley
ad73d3d874 mu4e: add new segment that shows unread emails 2019-01-29 14:48:39 -08:00
Vincent Zhang
0feb1c1499 Fix #103: Segments sometimes get stuck with inactive face.
Select current window, but should exclude the child windows.
2019-01-27 06:06:36 +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