Commit graph

1121 commits

Author SHA1 Message Date
Vincent Zhang
22765cb575 [Feature] Highlight the mode-line while debugging. 2020-02-14 15:11:40 +08:00
Vincent Zhang
ee92cfa0da Refactor. 2020-02-14 11:29:20 +08:00
Vincent Zhang
1833cbfeec
Merge pull request #305 from whame/master
Check before displaying icon for buffer-default-directory
2020-02-14 11:02:09 +08:00
Waqar Hameed
2ae83dea86 Check before displaying icon for buffer-default-directory
If doom-modeline-major-mode-icon is nil, we should not show the
file-directory icon for buffer-default-directory segment.
2020-02-13 21:11:07 +01: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
7e9587dcb1 Use do_not_disturb_alt icon instead of block icon.
Close #304.
2020-02-13 14:31:44 +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
f87b868bb9 Update ert cases. 2020-02-12 21:48:48 +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
e6d690bae0 Bump version. 2020-02-10 22:12:08 +08:00
Vincent Zhang
3f781b4ed6 Fix #299: Does not display headers in helm buffers. 2020-02-07 19:21:33 +08:00
Vincent Zhang
114b32f2df Fix #297: Only display irc buffer names in the active window. 2020-02-06 14:49:05 +08:00
Vincent Zhang
e3047d15e7 Smaller font height without icons. 2020-02-06 01:08:08 +08:00
Vincent Zhang
31a5ae99b8 Improve debug segment. 2020-02-04 00:17:39 +08:00
Vincent Zhang
1d1c36e1e9 Remove edebug-x. 2020-02-03 23:28:38 +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
4c659a2820 Fix #293: error - void-variable when. 2020-02-02 20:54:42 +08:00
Vincent Zhang
159fe50fbd Update docstrings. 2020-02-02 13:37:53 +08:00
Vincent Zhang
4a384a70df Update gitignore. 2020-02-01 23:07:28 +08:00
Vincent Zhang
ed7ed654c5 Update dependencies. 2020-02-01 17:21:27 +08:00
Vincent Zhang
bef5f920cc Update Cask. 2020-02-01 16:59:41 +08:00
Vincent Zhang
21ac606325 Show narrow/widen symbol on read-only buffers.
Close #290.
2020-01-24 23:10:09 +08:00
Vincent Zhang
a7a0370c50 Bump version. 2020-01-19 01:11:15 +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
5b68a8215d Click mouse-3 to restart grip preview. 2020-01-17 23:14:32 +08:00
Vincent Zhang
2cf1f2a7e7 Update grip segment accordingly. 2020-01-15 18:24:40 +08:00
Vincent Zhang
dbd9251979 Set minimal mode-line in xwidgets. 2020-01-15 02:04:27 +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
6fcf65d2ef Update README. 2020-01-11 00:42:04 +08:00
Vincent Zhang
417a3b1620 Update LICENSE. 2020-01-11 00:35:36 +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
4afe41ef3d Refactor: remove redundant declarations. 2020-01-06 14:22:40 +08:00
Vincent Zhang
10794dfc4d Remove: doom-modeline-override-lsp-modeline. 2020-01-06 14:12:41 +08:00
Vincent Zhang
8f289397f3 Don't use the macro gnus-group-unread directly. 2020-01-06 14:03:05 +08:00
Vincent Zhang
0fe73f6a65 Eliminate warnings. 2020-01-06 12:33:05 +08:00
Vincent Zhang
e3dcc83738 Fix invalid function after compilation. 2020-01-06 12:31:58 +08:00
Vincent Zhang
95c6bd16d9 Update comments. 2020-01-06 12:25:39 +08:00
Vincent Zhang
7992b8c68f Fix invalid function after compilation. 2020-01-06 12:24:26 +08:00
Vincent Zhang
7656169343 [Enhancement] Remove eglot/lsp from global-mode-string. 2020-01-06 02:09:25 +08:00