Commit graph

128 commits

Author SHA1 Message Date
Vincent Zhang
4d0d37bc69 Fix #295: Incorrect documentation for faces. 2020-02-03 13:24:32 +08:00
Vincent Zhang
fd8dab1f2c Update docstrings for faces. 2020-02-03 00:43:38 +08:00
Vincent Zhang
cde0289d01 Fix font height of 27+ on Windows. 2020-01-19 01:06:43 +08:00
Vincent Zhang
38400801d2 Update copyright. 2020-01-18 00:13:25 +08:00
Vincent Zhang
4cc375ac73 Don't redisplay if mode-line-format is nil. 2020-01-14 13:22:57 +08:00
Vincent Zhang
5fef621061 Fix flicker issue with hydra.
Don't redisplay in fit-window-to-buffer.

https://emacs-china.org/t/hydra-doom-modeline/11537/2
https://github.com/seagle0128/doom-modeline/issues/183
2020-01-14 03:58:18 +08:00
Vincent Zhang
07837775eb Fix #287: The flycheck numbers are pushed to the right and getting cut when enabling minions-mode. 2020-01-10 12:40:32 +08:00
Vincent Zhang
a1e6ca3274 Disable minor-modes and mu4e indicators by default. 2019-12-31 18:32:26 +13:00
Vincent Zhang
7479e8957a [Enhancement] Add an icon for minions, and support minions-direct.
Close #282.
2019-12-31 16:24:20 +13:00
Melkor333
3b2df9ab56 Add basic gnus support without any other dependency than gnus 2019-12-18 01:19:55 +01:00
Vincent Zhang
a6f6f25877 Update default faces of evil. 2019-12-10 01:36:36 +08:00
Vincent Zhang
fd66e7d2b7 Better Workaround: Fix tall issue of 27 on Linux.
See #271.
2019-12-05 01:31:17 +08:00
Vincent Zhang
09fa73b22c Fix #271: Tall modeline on lucid Emacs.
This is a workaround for lucid Emacs 27. The side effect is the bars height may
be smaller than the actual height. Adjusting doom-modeline-height is able to
address it.
2019-12-03 17:37:08 +08:00
Vincent Zhang
5013650df0 Improve faces. 2019-12-02 02:28:25 +08:00
Vincent Zhang
621edf5fb9 Revert "Use derived-mode-p"
This reverts commit 0bba9c4db8.

Also add gfm-mode.
Close #270.
2019-11-27 15:29:49 +08:00
Jake Romer
0bba9c4db8
Use derived-mode-p 2019-11-24 08:00:02 -05:00
Jake Romer
bf03231304
Add continuously displayed word count segment.
Introduces `doom-modeline-continuous-word-count-modes`, a customizable list
of major modes in which display a word count continuously when
`doom-modeline-enable-word-count' is non-nil.

```lisp
;; Major modes in which to display word count continuously.
;; Respects `doom-modeline-enable-word-count'.
(setq doom-modeline-continuous-word-count-modes '(markdown-mode org-mode))
```
2019-11-23 22:03:09 -05:00
Vincent Zhang
188b2bda5f Update face: doom-modeline-buffer-timemachine. 2019-11-23 01:44:31 +08:00
Vincent Zhang
d6165e6f3c Change doom-modeline-evil-state-icon to doom-modeline-modal-icon.
See #265.
2019-11-22 18:33:43 +08:00
Vincent Zhang
c360e99d43 Fix #266: Icons are used even if doom-modeline-icon is set to nil. 2019-11-22 17:23:17 +08:00
Vincent Zhang
7a44cbc1cc Add doom-modeline-add-variable-watcher. 2019-11-21 01:36:09 +08:00
Vincent Zhang
694647c395 Improve git-timemachine segment. 2019-11-20 22:56:38 +08:00
Vincent Zhang
192f2f1475 Refactor icons.
1. Remove functions: doom-modeline-icon-xxx.
2. Refactor doom-modeline-update-buffer-file-icon.
2019-11-20 18:45:36 +08:00
Vincent Zhang
5c715d9d78 Update docs. 2019-11-18 00:01:27 +08:00
Vincent Zhang
dcc57fd45e Merge irc and irc-buffers segment.
Provide the new option: doom-modeline-irc-buffers.
2019-11-17 01:20:27 +08:00
Vincent Zhang
3d096a572c Fix #257: segment--battery: signaled (wrong-type-argument stringp nil).
Also add battery faces.
2019-11-15 19:41:29 +08:00
Vincent Zhang
ede1c34716 Fix invalid face for inactive bars. 2019-11-15 05:54:09 +08:00
endoffile78
0198387356
Add support for erc 2019-11-11 23:29:24 -06:00
Vincent Zhang
a80cf92417 Don't enable unicode characters fallback by default.
Close #254.
2019-11-12 01:27:22 +08:00
Vincent Zhang
0553a3f348 Fix #252: Use new stable API eglot-current-server.
See 146108af7a.
2019-11-11 23:59:20 +08:00
Vincent Zhang
33caf3e1d7 New face: doom-modeline-host. 2019-11-11 21:12:36 +08:00
Vincent Zhang
701271488a [Enhancement] Formalize mouse faces. 2019-11-07 18:04:14 +08:00
Vincent Zhang
e93660e93f [Feature] Support evil state icon.
New option: doom-modeline-evil-state-icon.
The fallback is the unicode character.
Update evil state faces.
2019-11-06 00:37:41 +08:00
Vincent Zhang
3eeb090405 Fix performace issue in hydra/lv-message.
See #183.
2019-10-31 19:35:11 +08:00
Vincent Zhang
271e840832 Update docs for displaying icons when using server.
Close #247.
2019-10-31 16:49:09 +08:00
Vincent Zhang
a19d82e8cf Revert to doom-modeline-major-mode-icon and doom-modeline-major-mode-color-icon as suggested. 2019-10-26 00:06:10 +08:00
Vincent Zhang
59b1f7fe24 Remove doom-modeline-color-icons. 2019-10-25 14:24:51 +08:00
Vincent Zhang
b76ff9b5d6 Fix #235: it's not possible to disable icon colours.
Rename doom-modeline-color-icons to doom-modeline-buffer-color-icon.
2019-10-25 05:57:02 +08:00
Vincent Zhang
a3b6432569 Force redisplay to trigger height calculations
ertain functions, including e.g. `fit-window-to-buffer', base
their size calculations on values that are incorrect if the
mode-line has a height different from that of the `default' face
and certain other calculations have not yet taken place for the
window in question.

Force a redisplay before `fit-window-to-buffer' using an advice,
like we already did for `resize-temp-buffer-window'.

Close #183.

Reference:
https://github.com/tarsius/moody/issues/19
https://github.com/magit/transient/issues/63
2019-10-25 02:53:17 +08:00
Vincent Zhang
54fe24786a [New] Option: doom-modeline-number-limit.
The maximum number displayed for notifications.
2019-10-25 01:58:28 +08:00
Vincent Zhang
22b14c9b8e [NEW] Options: doom-modeline-color-icons & doom-modeline-buffer-icon
Deprecate doom-modeline-major-mode-color-icon and doom-modeline-major-mode-icon.
2019-10-24 20:28:26 +08:00
Vincent Zhang
cfb45c8eef [Feature] Unicode and ASCII fallbacks.
Enhance the segments.
Remove doom-modeline-persp-name-icon.
Refactor.
See #218.
2019-10-23 02:50:04 +08:00
Vincent Zhang
3b956e5d85 Update face: doom-modeline-debug. 2019-10-22 22:26:19 +08:00
Vincent Zhang
f6584d45b3 New option: doom-modeline-project-detection.
How to detect the project root.
The default priority of detection is `ffip' > `projectile' > `project'.
nil means to use `default-directory'.
The project management packages have some issues on detecting project root.
e.g. `projectile' doesn't handle symlink folders well, while `project' is unable
to hanle sub-projects.
You can specify one if you encounter the issue.

For more details, refer to #209.

Close #224.
2019-10-17 00:14:24 +08:00
Christian Schwarzgruber
a2ff05706d Inhibit message from ffip-project-root 2019-09-13 22:39:34 +02:00
Vincent Zhang
b117f2e869 Support find-file-in-project. 2019-09-09 17:18:26 +08:00
Vincent Zhang
b433d87f42 [Optimize] Cache window font width.
Fix #215.
2019-08-31 00:05:52 +08:00
Vincent Zhang
442e1ada18 Remove unnecessary icons from the compatible list. 2019-08-21 01:49:01 +08:00
Vincent Zhang
b47fe7b65a Don't expand symbolic links in path.
Fix #51 and #209.
Root cause: https://github.com/bbatsov/projectile/issues/1387.
2019-08-20 02:29:03 +08:00
Vincent Zhang
2c01d9eb9e Fix the width of preview icon. 2019-08-18 19:11:47 +08:00