Commit graph

876 commits

Author SHA1 Message Date
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
52f46c1baf Use buffer-list-update-hook instead of advising select-window.
Follow #135.
2019-03-07 04:11:05 +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
Vincent Zhang
5c926b81de Fix #133: buffer-info loses face after frame focus.
Also see #114.
2019-03-05 15:19:33 +07:00
Andrew Whatson
3397c94da5 Highlight project-root for relative-from-project style 2019-03-05 10:46:58 +10: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
933f321092 [Feature] Display mode-line with `variable-pitch' face. 2019-03-04 17:13:29 +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
Vincent Zhang
94d78707a2
Merge pull request #131 from yqrashawn/revert-pr-130
Revert "fix mu4e-alert-mode-line numberp error"
2019-03-04 12:08:48 +07:00
yqrashawn
66779bcb17 Revert "fix mu4e-alert-mode-line numberp error"
This reverts commit b29ce18e68.
2019-03-04 11:31:51 +08:00
Vincent Zhang
59047842b0
Merge pull request #130 from yqrashawn/fix-mu4e-alert
fix mu4e-alert-mode-line numberp error
2019-03-04 09:04:19 +07: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
e8f8a61a74 Fix: failed test cases.
Close #123.
2019-03-01 20:30:58 +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
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
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
Vincent Zhang
266b3cae80
Merge pull request #127 from hlissner/patch-3
Prevent anzu from injecting itself into modeline
2019-03-01 03:34:27 +07:00
Vincent Zhang
eb387b9cb8
Merge pull request #126 from seagle0128/revert-125-patch-2
Revert "Fix matches segment mirroring across all buffers"
2019-03-01 03:23:35 +07:00
Vincent Zhang
88510a8e06
Revert "Fix matches segment mirroring across all buffers" 2019-03-01 03:23:02 +07:00
Vincent Zhang
371c3fcfa2
Merge pull request #125 from hlissner/patch-2
Fix matches segment mirroring across all buffers
2019-03-01 03:20:21 +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
Henrik Lissner
17d8d6e617
Fix matches segment mirroring across all buffers 2019-02-28 15:12:15 -05: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
ef2ab6015f [Docs] Update screenshots in README. 2019-03-01 00:45:29 +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
2ae39ff5ca Fix: display invalid information in mu4e segment. 2019-02-28 20:51:10 +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
461178f5b5 Bump version to 1.8.0. 2019-02-26 15:21:26 +07:00