Vincent Zhang
4d8d935191
Eliminate warnings.
2020-02-22 16:06:14 +08:00
Vincent Zhang
d355309218
Minor refactor.
2020-02-22 01:44:06 +08:00
Vincent Zhang
333dc074e5
Fix #313 : Frame focus error.
...
doom-modeline-focus-change: Symbol’s function definition is void:
frame-focus-state.
`after-focus-change-function' and `frame-focus-state are introduced' in 27.
2020-02-19 23:51:40 +08:00
Vincent Zhang
4ee3559fb6
[Enhancement] Support buffer names from org-protocol.
...
Use "%b" instead of "(buffer-name)".
With "auto" style, display buffer name if not in a project.
2020-02-19 17:24:06 +08:00
Vincent Zhang
1b5424ff3c
Add an extra space for safety.
...
Fix #287 .
2020-02-19 13:43:00 +08:00
Vincent Zhang
ff8f4c8c80
Add an extra space for safety.
...
Fix #287 .
2020-02-19 13:37:02 +08:00
Vincent Zhang
25af2880de
Suppress compiler warnings.
2020-02-19 13:16:29 +08:00
Vincent Zhang
a6ebfe10a2
Ensure the mode-line is displayed correctly while switching frames.
2020-02-19 00:58:49 +08:00
Vincent Zhang
54815a7dc7
Exclude the child frames while refreshing.
2020-02-19 00:44:18 +08:00
Vincent Zhang
0d6993a84c
Refactor doom-modeline-propertize-icon.
2020-02-18 22:28:11 +08:00
Vincent Zhang
0ce7ddfa0d
Make the icons inconsistent in both active and inactive windows.
...
Fix #306 .
The extra face should be the first attribute, or the font family may be overridden.
So convert the face ":family XXX :height XXX :inherit XXX" to
":inherit XXX :family XXX :height XXX".
Remove `doom-modeline-icon-inactive' face accordingly.
2020-02-18 21:07:14 +08:00
Vincent Zhang
0bc9953cb1
Revert "Make the icon faces inconsistent."
...
This reverts commit 68e17437cf
.
Close #308 .
2020-02-18 01:21:57 +08:00
Vincent Zhang
68e17437cf
Make the icon faces inconsistent.
...
Fix #306 .
1. Remove face: doom-modeline-icon-inactive.
2. Change the face as plist.
2020-02-16 23:03:21 +08:00
Vincent Zhang
a18f913cf1
Revert "Fix #306 : modeline icon color is inconsistent when using which-key."
...
This reverts commit bf26cc00b5
.
2020-02-16 01:21:49 +08:00
Vincent Zhang
bf26cc00b5
Fix #306 : modeline icon color is inconsistent when using which-key.
2020-02-16 00:54:47 +08:00
Vincent Zhang
22765cb575
[Feature] Highlight the mode-line while debugging.
2020-02-14 15:11:40 +08:00
Vincent Zhang
c4969ff149
Not using bold for the unread numbers.
2020-02-13 23:08:47 +08:00
Vincent Zhang
30e5d4338b
[Optimize] Set the icons' width.
2020-02-13 15:51:29 +08:00
Vincent Zhang
1a55a7bdfe
Fix #303 : Unaligned right segment while starting from Emacs daemon.
...
In terminal and daemon mode, the font width is 1.
2020-02-13 14:03:25 +08:00
Vincent Zhang
209ec76f56
Refactor: rename the variables and funcations for font width.
2020-02-12 22:55:53 +08:00
Vincent Zhang
51e5718675
Fix plist error.
2020-02-12 18:55:37 +08:00
Vincent Zhang
ffee20bac9
Introduce `doom-modeline-icon-inactive' face.
...
See #301 .
To display the icons in inactive windows correctly.
2020-02-12 17:17:10 +08:00
Vincent Zhang
ce8c144e5c
Only redisplay when doom-modeline-mode is enabled.
2020-02-12 14:37:36 +08:00
Vincent Zhang
a2687e8416
[Enhancement] Support different fonts in mode-line.
...
Close #301 .
1. Not inherit `mode-line-inactive' face for icons.
Thus all icons are able to displayed correctly in all windows.
2. Calculate the right position according to the mode-line font.
Refresh the font width after setting frame parameters to ensure the font
width is correct.
3. Only display monior-modes in the active window.
2020-02-12 01:41:08 +08:00
Vincent Zhang
9d00d0dc10
Fix #302 : Debugger entered--Lisp error: (wrong-type-argument stringp t).
2020-02-11 21:52:02 +08:00
Vincent Zhang
3836b8f871
Report invalid name style.
2020-02-11 15:00:58 +08:00
Vincent Zhang
43a78ad7eb
[Feature] Introduce `auto' style for buffer file names.
...
Close #179 .
`auto' style is the default style now.
Given ~/Projects/FOSS/emacs/lisp/comint.el
auto => emacs/lisp/comint.el (in a project) or 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
truncate-upto-root => ~/P/F/e/lisp/comint.el
truncate-all => ~/P/F/e/l/comint.el
relative-from-project => emacs/lisp/comint.el
relative-to-project => lisp/comint.el
file-name => comint.el
buffer-name => comint.el<2> (uniquify buffer name)"
2020-02-11 01:51:52 +08:00
Vincent Zhang
e3047d15e7
Smaller font height without icons.
2020-02-06 01:08:08 +08:00
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