Commit graph

449 commits

Author SHA1 Message Date
Vincent Zhang
8fc06950ce [Optimize] Check github notifications asynchronously and enable it by default. 2018-12-24 22:26:07 +08:00
Vincent Zhang
ea39dce5f0 Bump version to 1.2.2. 2018-12-24 21:23:41 +08:00
Vincent Zhang
f2cad71cf6 Disable github notifications by default. 2018-12-24 20:28:11 +08:00
Vincent Zhang
a20da08a11 Fix #73: redundant eyebrowse-mode display in misc-info segment. 2018-12-24 16:13:33 +08:00
Vincent Zhang
6de3d21959 Improve: Use ghub-get instead of ghub+ api. 2018-12-23 23:54:35 +08:00
Vincent Zhang
a30c981f54 Bump: version to v1.2.1. 2018-12-23 01:35:24 +08:00
Vincent Zhang
3e8e100864 Refactor: Rename github-open-notifications-participating. 2018-12-23 01:34:20 +08:00
Vincent Zhang
9a6cdb2717 Docs: update for doom-modeline-github. 2018-12-23 01:17:46 +08:00
Vincent Zhang
af312dddba Docs: update feature section. 2018-12-23 00:32:33 +08:00
Vincent Zhang
b85cc7ba16 Improve: face of doom-modeline-eldoc-bar. 2018-12-23 00:01:42 +08:00
Vincent Zhang
22b9943438 Fix: incorrect height of eldoc bar. 2018-12-22 14:23:43 +08:00
Vincent Zhang
3f5feb3c7f Fix: function definition is void: font-info. 2018-12-22 14:09:02 +08:00
Vincent Zhang
65ea32f20d Fix #72: Keep the same buffer-info in active and inactive modeline. 2018-12-21 19:36:41 +08:00
Vincent Zhang
df41de323d Optimize: debug state. 2018-12-21 18:53:17 +08:00
Vincent Zhang
7158b9d975 Optimize: the position of debug icons. 2018-12-21 18:48:22 +08:00
Vincent Zhang
7519a379d7 Refactor: minor modes. 2018-12-21 02:28:27 +08:00
Vincent Zhang
5cf1857add Feature: #70 Support for the package Minions. 2018-12-21 01:41:39 +08:00
Vincent Zhang
7f95e8b8d8 Optimize: Set height via font. 2018-12-21 00:56:12 +08:00
Vincent Zhang
cbd86384fe Feature: An indicator for debug state. 2018-12-21 00:38:23 +08:00
Vincent Zhang
f71f16a3eb Improve: Use misc-info segment instead of global segment. 2018-12-20 23:05:54 +08:00
Vincent Zhang
0d6e5f7d50 Refactor: Format. 2018-12-19 18:18:24 +08:00
Vincent Zhang
a7dda5edb7 Optimize: different mode-line height in different platforms. 2018-12-19 17:00:36 +08:00
Vincent Zhang
ebf3ddd249 Fix #68: Size of state icons. 2018-12-19 16:27:20 +08:00
Vincent Zhang
888efb61ec Fix: add-variable-watcher is undefined in 25. 2018-12-16 22:22:57 +08:00
Vincent Zhang
4b22534199 Improve: Watch buffer-read-only. 2018-12-16 18:09:26 +08:00
Jin Xue
cf848092e0
Add Pipenv integration 2018-12-14 11:47:14 +08:00
Vincent Zhang
14ac6ddbeb Remove: comments.
Note: This hook will cause magit exception
(add-hook 'after-change-functions 'doom-modeline-update-buffer-file-icon)
2018-12-13 01:04:17 +08:00
Vincent Zhang
eaa1b0d971 Optimize: rendering icons and fetching github notifications. 2018-12-13 01:01:49 +08:00
Vincent Zhang
4a7100b5fd Optimize: material icons. 2018-12-12 22:53:35 +08:00
Vincent Zhang
b7bc345b44 Revert "Improve: remove the spaces in the end."
This reverts commit 2be5f28184.
2018-12-12 13:58:00 +08:00
Vincent Zhang
2be5f28184 Improve: remove the spaces in the end. 2018-12-12 04:15:08 +08:00
Vincent Zhang
9460d50465 Improve: buffer-file-state icon. 2018-12-12 03:57:38 +08:00
Vincent Zhang
997425b9f5 Bump: version to v1.1.0. 2018-12-12 03:28:46 +08:00
Vincent Zhang
1d66c50309 Modernize the icons of buffer file state. 2018-12-12 01:35:19 +08:00
Vincent Zhang
c9699003f6 Beautify flycheck. 2018-12-11 23:27:50 +08:00
Vincent Zhang
1926d456a3 Fix #66: Add a segment for GitHub notifications. 2018-12-11 23:05:34 +08:00
Vincent Zhang
eabb8fb56c Optimize: update persp name. 2018-12-10 02:25:52 +08:00
Ricardo Martins
26b493fe65
Show Rust version in the modeline 2018-12-09 12:29:40 +00:00
Vincent Zhang
a989c93971 Make vcs more obvious. 2018-12-09 14:30:47 +08:00
Vincent Zhang
b0342b30b6 Improve mouse-face for segments. 2018-12-09 02:11:23 +08:00
Vincent Zhang
2e65c9d06b Make doom-modeline-column-zero-based and doom-modeline-percent-position global. 2018-12-08 03:57:38 +08:00
Vincent Zhang
21637ad560 Fix #62: disregards value of column-number-indicator-zero-based.
Same as mode-line-percent-position.
2018-12-08 03:46:12 +08:00
Vincent Zhang
44a46a61cc Treat doom-modeline-def-modeline as a function. 2018-12-08 03:07:41 +08:00
Vincent Zhang
fef210416f Add help-echo and mouse-face to encoding and input-method segments. 2018-12-07 01:35:10 +08:00
Vincent Zhang
851ed76dc1 Bump version to 1.0.0. 2018-12-07 00:45:36 +08:00
Vincent Zhang
1de4baed59 Add help-echo and mouse-click for buffer file name. 2018-12-07 00:43:59 +08:00
Vincent Zhang
83731bca00 Add two enablers for persp-name and lsp segments.
See https://github.com/seagle0128/doom-modeline/issues/59#issuecomment-444842483.
2018-12-07 00:25:48 +08:00
Vincent Zhang
8a2e5ffbda Add help-echo and mouse-click for buffer position and size. 2018-12-07 00:17:29 +08:00
Vincent Zhang
f73eba86fa [Feature] An indicator for LSP state.
See https://github.com/emacs-lsp/lsp-mode/issues/479#issuecomment-443992922.
2018-12-06 03:26:27 +08:00
Vincent Zhang
8d6974bb65 Simplify minor modes.
Remove help-echo and mouse-click since doom-modeline-def-segment
doesn't support mode-line-minor-mode-keymap.

See https://github.com/seagle0128/doom-modeline/issues/59#issuecomment-444423882.
2018-12-06 02:45:22 +08:00
Vincent Zhang
4235da6465 Add new face: doom-modeline-buffer-minor-mode.
See https://github.com/seagle0128/doom-modeline/issues/59#issuecomment-444514463.
2018-12-06 02:12:17 +08:00
Vincent Zhang
9c6d00d3ab Add help-echo and mouse-click to persp-name segment. 2018-12-06 01:58:16 +08:00
Vincent Zhang
aa088e3f52 Fix: No definitions found for: xah-fly-insert-state-q. 2018-12-06 01:32:15 +08:00
Vincent Zhang
5fbb0291d6 Enhance flycheck segment: help-echo, mouse click. 2018-12-06 00:48:10 +08:00
Vincent Zhang
70049ac3bf [Feature] An indicator for xah-fly-keys state. 2018-12-06 00:08:10 +08:00
Vincent Zhang
9accf87eef Eliminate compiler warnings. 2018-12-05 23:09:11 +08:00
Vincent Zhang
84b2ab0abc Remove settings for projectile lighter.
See https://github.com/seagle0128/doom-modeline/issues/59#issuecomment-444423882.
2018-12-05 22:56:06 +08:00
Evgeni Kolev
d6550fafd5
Update file state icon after widening 2018-12-05 13:13:07 +02:00
Vincent Zhang
dbfdf1b0b0 Change faces of input-method segment. 2018-12-05 04:32:14 +08:00
Vincent Zhang
e032bb92c3 Fix error in input-method: (wrong-type-argument stringp nil). 2018-12-05 04:30:01 +08:00
Vincent Zhang
5836f0603c Minor change minor-modes position. 2018-12-05 03:59:13 +08:00
Vincent Zhang
420285ae5f Refactor segments. Only show global and input in active window. 2018-12-05 03:50:50 +08:00
Vincent Zhang
c0b5f1c0ab Fix #59: [Feature] Minor modes segment. Disable by default. 2018-12-05 03:39:07 +08:00
Vincent Zhang
e43da4a963 [Feature] A perspective name segment for persp-mode. 2018-12-05 02:38:36 +08:00
Vincent Zhang
e466611f68 Update formats of buffer-encoding. 2018-12-04 21:09:16 +08:00
Vincent Zhang
ac1605a92c Fix #57: [Enhancement] Display uniquified buffer names in help-echo. 2018-12-04 00:22:20 +08:00
Vincent Zhang
da9fa3ced2 Fix #56: Error when launching Gnus. 2018-12-03 15:24:25 +08:00
Vincent Zhang
1497e12b08 Fix #55: Projectile segment errors on a new clojure project. 2018-12-02 18:53:51 +08:00
Dominik Kellner
e697720c94 Fix calling `projectile-project-root'.
Depending on configuration, `projectile-project-root' raises an error if there
is no project available. This behaviour almost renders Emacs unusable outside
of projects as `doom-modeline-project-root' gets called upon every redisplay of
the modeline, which then causes the error.

This fix just ignores errors thrown by `projectile-project-root' and returns
`nil' instead, which is what we expect anyway.
2018-11-30 08:51:47 +07:00
Vincent Zhang
6975849702 Add function for minimal modeline. 2018-11-29 23:23:39 +08:00
Vincent Zhang
5b507e4b98 Format codes and comments. 2018-11-29 02:34:58 +08:00
Vincent Zhang
fac54da782 Fix #53: Shortening of remote buffers names. 2018-11-28 15:24:13 +08:00
Vincent Zhang
b0750259a3 Use when-let* for safer in symbol overlay panel. 2018-11-28 14:43:29 +08:00
Vincent Zhang
e7de8eef92 Ignore user errors in symbol overlay.. 2018-11-28 14:39:36 +08:00
Vincent Zhang
c48d10a6f9 Bump version to 0.9.0. 2018-11-28 02:50:50 +08:00
Vincent Zhang
88414e30e3 Support symbol-overlay in match panel. 2018-11-28 02:50:07 +08:00
Vincent Zhang
b755888f8b Address bad performance issue on Windows.
https://github.com/seagle0128/doom-modeline/issues/37
2018-11-28 01:35:55 +08:00
Vincent Zhang
36e081f912 Revert "Load hooks for anzu--reset-status immediately."
This reverts commit 752bb05e73.
2018-11-27 23:09:30 +08:00
Vincent Zhang
752bb05e73 Load hooks for anzu--reset-status immediately. 2018-11-27 23:02:48 +08:00
Vincent Zhang
01db5c1040 Fix compiler warnings. 2018-11-27 22:54:35 +08:00
Vincent Zhang
78b2e196f6 Fix #51: add FAQ in README. 2018-11-27 21:51:15 +08:00
Vincent Zhang
58eb5c3b55 Don't show state icon in inactive windows. 2018-11-27 18:13:13 +08:00
Vincent Zhang
6c941d824c Only check uniquify-buffer-name-style is nil or post-forward-angle-brackets. 2018-11-27 16:57:22 +08:00
Vincent Zhang
88a10968d1 Only show buffer names in inactive windows. 2018-11-27 05:54:36 +08:00
Vincent Zhang
e729389ab8 Fix #44 again. 2018-11-27 02:39:54 +08:00
Vincent Zhang
94b1aa2629 Enable major mode icons by default.
Already addressed the performance issue.
Should ensure `all-the-icons` is installed correctly.
2018-11-26 23:53:31 +08:00
Vincent Zhang
8e02bf5f58 Disable icons in terminal by default. 2018-11-26 23:01:03 +08:00
Vincent Zhang
8aeb80f32d Change faces of flycheck icons. 2018-11-26 14:09:22 +08:00
Vincent Zhang
bba86db87f Change icons position. 2018-11-26 14:06:44 +08:00
Vincent Zhang
fa840219a3 Revert "Adjust icons' position."
This reverts commit a95440341e.
2018-11-25 23:10:12 +08:00
Vincent Zhang
a95440341e Adjust icons' position. 2018-11-25 13:47:38 +08:00
Vincent Zhang
1ddf68939e Fix fold icon. 2018-11-25 03:33:24 +08:00
Vincent Zhang
9754dbe996 Fix typo. 2018-11-25 03:31:57 +08:00
Vincent Zhang
87f12fa662 Fix #50: Misplaced major mode icon. 2018-11-25 03:26:01 +08:00
Vincent Zhang
613684d383 Fix invalid icon family. 2018-11-25 03:06:34 +08:00
Vincent Zhang
336cab5ed4 Formalize the face of major mode icon. 2018-11-25 01:10:53 +08:00
Vincent Zhang
f244142693 Disable major-mode icons by default due to incorrect icons. 2018-11-25 00:56:48 +08:00
Vincent Zhang
d4973e2bc6 Optimize performance of updating buffer information (~2x faster). 2018-11-24 17:10:32 +08:00
Vincent Zhang
2b5a3b103e Display file icons by default. 2018-11-24 13:19:14 +08:00
Vincent Zhang
229366ffe5 Optimize performance of displaying file icons. 2018-11-24 13:18:33 +08:00
Vincent Zhang
0c9888c5b6 Refactor: Update vcs and flycheck segments. 2018-11-24 13:11:58 +08:00
Vincent Zhang
25fa66bb08 Fix #49: void-function file-local-name in spacemacs.
`file-local-name' is introduced in 25.2.2.
2018-11-24 12:18:41 +08:00
Vincent Zhang
969d001290 Update modeline after refreshing vc state. 2018-11-23 22:36:26 +08:00
Vincent Zhang
34c6f91d36 Fix #48: [Feature] show the icon for major mode.
New variable `doom-modeline-major-mode-icon' to control.
2018-11-23 01:13:52 +08:00
Vincent Zhang
b91e76b383 Fix #47: new style buffer-name, which respects uniquify names. 2018-11-23 00:12:36 +08:00
Vincent Zhang
364f5acb0b Fix: invalid path for remote files. 2018-11-22 05:07:45 +08:00
Vincent Zhang
a7643cf918 Add an indicator of remote host. 2018-11-22 03:59:39 +08:00
Vincent Zhang
d430859bf2 Add the roy-modal indicator. 2018-11-22 03:13:44 +08:00
Vincent Zhang
9acad7f3f4 Fix #46: God-mode indicator. 2018-11-22 02:48:59 +08:00
Vincent Zhang
69f3029c31 Bump version to 0.8.1. 2018-11-20 23:29:04 +08:00
Vincent Zhang
d27c5485ba [Optimize] doom-modeline-buffer-file-name for all truncate styles.
e.g.`truncate-upto-project' is ~5x faster.
    (benchmark-run 1000 (format-mode-line mode-line-format))
    ~0.7s vs ~4s

Also add 2 new styles: `truncate-from-project' and `truncate-except-project'.

Given ~/Projects/FOSS/emacs/lisp/comint.el
  truncate-upto-project => ~/P/F/emacs/lisp/comint.el
  truncate-from-project => ~/Projects/FOSS/emacs/l/comint.el
  truncate-with-project => emacs/l/comint.el
  truncate-except-project => ~/P/F/emacs/l/comint.el

NOTE: `shrink-path-file-mixed' has so BAD performance! Damn it!!!
2018-11-20 23:23:23 +08:00
Vincent Zhang
51ca9570a6 Fix incorrect colors of slash. 2018-11-20 22:28:28 +08:00
Vincent Zhang
345959763b Refactor: use internal variables. 2018-11-20 21:43:06 +08:00
Vincent Zhang
669206d03a Remove redundant slash \ in truncated directory. 2018-11-20 21:26:34 +08:00
Vincent Zhang
a530aaee04 Optimize performance of truncate-with-project style.
`file-truename` is bad performance, so should not used in the crucial function.
2018-11-20 21:24:24 +08:00
Vincent Zhang
700a0107f2 Bump version to 0.8.0. 2018-11-18 04:08:58 +08:00
Vincent Zhang
5fefd185b6 Fix: nil error if the buffer file name doesn't contain directory. 2018-11-18 03:39:35 +08:00
Vincent Zhang
87ee2e7122 Add truncate-with-project style and set it to default. 2018-11-18 03:26:00 +08:00
Vincent Zhang
7f28abb514 Improve faces of the buffer info. 2018-11-18 02:08:51 +08:00
Vincent Zhang
c809e27487 Don't update buffer info if the file doesn't exist. 2018-11-16 02:28:36 +08:00
Vincent Zhang
c7251193bb Fix: flash window number while re-enabling ace-window-display-mode. 2018-11-16 01:45:52 +08:00
Vincent Zhang
9df9260ab3 Fix: flash window number while refreshing this buffer. 2018-11-16 01:37:58 +08:00
Vincent Zhang
489a75ae49 Bump version to 0.7.1. 2018-11-16 01:10:43 +08:00
Vincent Zhang
9701be775c Revert performance optimization for buffer info.
Because the buffer info will be updated in many scenarios and no need to handle
all cases in hooks or advices.
But Keep showing buffer name if it doesn't equal the file name.
2018-11-16 00:53:52 +08:00
Vincent Zhang
f336f37efa Fix #44: Height problems with flycheck-mode on. 2018-11-15 23:32:47 +08:00
Vincent Zhang
6c151e7535
Merge pull request #45 from drrlvn/patch-1
Fix python-mode when executable is nil
2018-11-15 22:38:05 +08:00
Vincent Zhang
ab6ab18bc7 Hide buffer icons in inactive windows. 2018-11-15 17:24:00 +08:00
Dror Levin
82654eb6e0
Fix python-mode when executable is nil
Since executable-find cannot handle a nil argument then doom-modeline-python-executable should not be passed if it is set to nil.
2018-11-15 11:04:33 +02:00
Vincent Zhang
561560dfe5 Watch doom-modeline-buffer-file-name-style to update buffer info. 2018-11-15 16:05:38 +08:00
Vincent Zhang
781ce1b3c2 Only show buffer name in inactive window. 2018-11-15 15:46:23 +08:00
Vincent Zhang
d0c23229ec Optimize: get buffer info. 2018-11-15 14:35:57 +08:00
Vincent Zhang
8cf0646dc0 Remove unnecessary git-timemachine-mode-hook. 2018-11-15 14:13:50 +08:00
Vincent Zhang
a75f6f2ec8 Update buffer file name after renaming a buffer. 2018-11-15 03:40:21 +08:00
Vincent Zhang
09ed39a941 Compatible with git-timemachine. 2018-11-15 03:28:49 +08:00
Vincent Zhang
15a0a8a962 Fallback to buffer name if doom-modeline-buffer-file-name is nil. 2018-11-14 23:03:44 +08:00
Vincent Zhang
ef1ee6357c Show temp buffer name correctly.
That means the buffer exists but the file doesn't.
2018-11-14 22:40:20 +08:00
Vincent Zhang
44542191e6 Remove hacks. 2018-11-14 04:20:49 +08:00
Vincent Zhang
10b16b1386 Don't load doom-modeline after init time. 2018-11-14 04:17:56 +08:00
Vincent Zhang
4f0f761738 Refactor: doom-modeline-update-buffer-file-name. 2018-11-14 03:58:21 +08:00
Vincent Zhang
2b7ee7451f HACK: Compatible with loading `doom-modeline' after init time. 2018-11-14 03:00:21 +08:00
Vincent Zhang
25b04d5c40 Show buffer name if the buffer name doesn't equal the file name.
NOTE: Format: "buffer-file-name[buffer-name]".
Except the same buffer names in different directories.
2018-11-14 01:40:09 +08:00
Vincent Zhang
b6f98e4646 Update the buffer file name after reverting the file. 2018-11-14 01:35:24 +08:00
Vincent Zhang
e075339b2b Optimize performance.
(benchmark-run 1000 (format-mode-line mode-line-format))
From ~2.5s to ~0.5s!!!
2018-11-13 23:23:57 +08:00
Vincent Zhang
97d6b69222 Optimize the performance of getting the file names. 2018-11-13 23:00:39 +08:00
Vincent Zhang
fafdafc122 Format codes. 2018-11-13 19:35:17 +08:00
Vincent Zhang
6d7241050b Optimize project root detection. 2018-11-13 19:22:35 +08:00
Vincent Zhang
24dd81d9d5 Remove debug codes. 2018-11-13 13:29:22 +08:00
Vincent Zhang
813adefbfa Fix #42: refactor doom-modeline-project-root to avoid errors. 2018-11-13 13:24:14 +08:00
Vincent Zhang
f0e882dbe6 Bump version to 0.7.0. 2018-11-12 00:49:52 +08:00
Vincent Zhang
a9847abd3e Support projectile and project. projectile is optional now. 2018-11-12 00:48:20 +08:00