Commit graph

79 commits

Author SHA1 Message Date
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
Vincent Zhang
82e7020eec Add more faces for buffer path.
Fix #99.
2019-01-23 02:50:58 +08:00
Vincent Zhang
f57444a9b4 Disable git notifications by default. 2019-01-18 01:25:05 +08:00
Vincent Zhang
fe1a703161 Refactor: split one file to core and segments. 2019-01-17 23:46:29 +08:00