Commit graph

202 commits

Author SHA1 Message Date
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
Vincent Zhang
3018171bc9 The project root detection is moved to projectile-ensure-project. 2018-11-11 15:39:48 +08:00
Amin Bandali
31b94e253a
Fix: require subr-x (needed for when-let)
Its absence results in a compile error when using borg-build:

    In toplevel form:
    doom-modeline.el:314:1:Warning: Unused lexical argument ‘key’

    In doom-modeline-set-modeline:
    doom-modeline.el:314:50:Warning: ‘(modeline (doom-modeline key))’ is a
        malformed function
    doom-modeline.el:322:22:Warning: reference to free variable ‘modeline’

    In doom-modeline-set-selected-window:
    doom-modeline.el:390:49:Warning: ‘(win (frame-selected-window))’ is a
        malformed function
    doom-modeline.el:393:41:Warning: reference to free variable ‘win’

    In end of data:
    doom-modeline.el:1249:1:Warning: the function ‘when-let’ is not known to be
        defined.

Which ultimately results in an error disrupting proper startup:

    Invalid function: (modeline (doom-modeline key))
2018-11-10 11:35:47 -05:00
Vincent Zhang
2812b1990f Fix: error while truncate the file without directory information.
Happen while editing org src code blocks. (:file test.py)
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  file-exists-p(nil)
  f-exists\?(nil)
  f-same\?(nil "")
  shrink-path-file-mixed("" nil "test.py")
  doom-modeline--buffer-file-name("test.py" "/Users/xxx/org/test.py" shrink)
  doom-modeline-buffer-file-name()
2018-11-10 17:26:54 +08:00
Evgeni Kolev
865bd6b8f2 Don't try to call anzu functions if anzu isn't installed 2018-11-09 14:44:36 +02:00
Vincent Zhang
1d372f0c82 Bump version to 0.6.1. 2018-11-01 00:11:31 +08:00
Vincent Zhang
81a782b1cb Eliminate compiler warnings. 2018-10-29 23:09:40 +08:00
Vincent Zhang
c60dd1279a Refactor evil-state. 2018-10-29 22:47:34 +08:00
Vincent Zhang
5dfe1deccb Reset anzu status after back to evil normal state. 2018-10-29 21:25:26 +08:00
Vincent Zhang
e3804b60ab Fix: ace-window-display-mode doesn't respect aw-ignore-buffers.
Refer to https://github.com/abo-abo/ace-window/issues/143.
2018-10-28 22:19:55 +08:00
Vincent Zhang
11327006cf Update mode-line after new or delete a frame. 2018-10-28 03:16:31 +08:00
Vincent Zhang
d97080620e Revert "Update mode-line forcely after making a new frame."
This reverts commit 6e30cfad01.
2018-10-28 03:07:54 +08:00
Vincent Zhang
6e30cfad01 Update mode-line forcely after making a new frame. 2018-10-28 02:51:18 +08:00
Vincent Zhang
cb1727d956 Fix: update ace-window parameter for all windows. 2018-10-25 16:57:17 +08:00
Vincent Zhang
c3a3af60b4 Remove warnings for terminal. 2018-10-25 16:21:25 +08:00
Vincent Zhang
ec92922a71 Bump version to 0.6.0. 2018-10-25 16:13:05 +08:00
Vincent Zhang
5aa211cf04 Enable all-the-icons in terminal.
Use doom-modeline-icon to enable/disable icons.
2018-10-25 16:11:03 +08:00
Vincent Zhang
6d9020c428 Refactor: window numbers of winum. 2018-10-25 00:56:09 +08:00
Vincent Zhang
9ca4edf710 Clean warnings. 2018-10-24 18:17:02 +08:00
Vincent Zhang
aa0e36fd66 Eliminate warnings. 2018-10-24 18:14:08 +08:00
Vincent Zhang
3d3c5c36c5 Support window numbers of ace-window-display-mode. 2018-10-24 16:23:07 +08:00
Vincent Zhang
bbda508825 Ignore winum operations for mode-line. 2018-10-24 15:38:44 +08:00
Pengji Zhang
7e6b895206 Fix an issue that may cause rhs disappeared
If the first element of a list is a symbol, the list will be a
conditional depending on the value of that symbol.
2018-10-19 17:33:18 -04:00
Vincent Zhang
1fd66c449c Reset anzu state when isearch is done. 2018-10-18 02:27:14 +08:00
Pengji Zhang
1a2226b242 Stop byte-compiling modeline format functions
Otherwise there will be a bunch of `Unused lexical var` warnings if
the file is not byte-compiled beforehand.
2018-10-17 12:03:29 -04:00
Vincent Zhang
ce206c5a7a Bump version to 0.5.1. 2018-10-15 20:32:28 +08:00
Vincent Zhang
9337faed5b Optimize: cache project root.
Refer to https://github.com/seagle0128/doom-modeline/issues/32.
2018-10-15 20:30:22 +08:00
Vincent Zhang
d8878379bc Update vcs faces. 2018-10-07 12:26:29 +08:00
Vincent Zhang
90ec30d868 Bump version to 0.5.0. 2018-10-01 23:14:48 +08:00
Vincent Zhang
9bb4a71ff8 Fix: focus-in-hook and focus-out-hook are obsolete in Emacs27.
Use after-focus-change-function instead of them as suggestion.
2018-10-01 23:13:23 +08:00
Vincent Zhang
8d6aba5b4d Merge branch 'master' of https://github.com/seagle0128/doom-modeline 2018-10-01 16:24:09 +08:00
Vincent Zhang
08b7d7621f Update faces of window and workspace numbers. 2018-09-30 21:42:41 +08:00
Vincent Zhang
e0acf3863d Refactor segment and modeline definitions. 2018-09-30 18:06:32 +08:00
Vincent Zhang
b70235290d Fix: inactive bar face.
DO NOT use :inverse-video in this face since face-background gets invalid color
from :reverse-video faces.
2018-09-30 17:02:27 +08:00
Vincent Zhang
677dc9ab2c Update workspace face. 2018-09-30 16:45:59 +08:00
Vincent Zhang
266cedffa9 Improve major-mode segment: add menus for major/minor modes. 2018-09-30 15:16:44 +08:00
Vincent Zhang
cd07d77c9f Update faces of windown numbers. 2018-09-30 00:23:07 +08:00
Vincent Zhang
671553d18d Put the bar to the left. 2018-09-29 22:58:24 +08:00
Vincent Zhang
fde317e967 Adjust mode-line height (25) and bar width (3). 2018-09-29 22:46:16 +08:00
Vincent Zhang
7f86ec193d Revert "Improve major-mode segment: add menus for major/minor modes."
This reverts commit c5739f3f14.
2018-09-29 19:21:19 +08:00
Vincent Zhang
c5739f3f14 Improve major-mode segment: add menus for major/minor modes. 2018-09-29 19:09:14 +08:00
Vincent Zhang
e4605cd361 Fix #30: adjust mode-line bars with font size. 2018-09-29 17:14:43 +08:00
Vincent Zhang
52243514af Fix #31: support input-method. 2018-09-28 16:31:33 +08:00
Vincent Zhang
92b5bf5c79 Fix #29: Handle project root is nil.
Exception: (wrong-type-argument stringp nil)
2018-09-26 17:20:04 +08:00
Vincent Zhang
f7a573906d Update vc state on modeline while selecting the window.
This might address this issue:
Modeline VC branch name not updating on magit-checkout.
In doom-modeline, only show vc state in active window, so
it makes sense to update vc state while selecting the
window, and it won't bring performance issue.

Refer to:
https://github.com/hlissner/doom-emacs/issues/826
3d8e81b7e1
2018-09-25 00:05:01 +08:00
Vincent Zhang
b020f8b0a7 Merge 712b775f36 (diff-0ce4da53ad0195d3b7cf5888417057de). 2018-09-24 22:56:57 +08:00
Vincent Zhang
a22a895b7b Fix: invalid shrinked file path when the file is not in a project.
Refer to
https://emacs-china.org/t/doom-modeline-doom-emacs-mode-line/6742/34?u=seagle0128.
2018-09-24 22:39:36 +08:00
Vincent Zhang
299ef87829 Update modeline while refreshing vc. 2018-09-24 21:41:10 +08:00