Commit graph

422 commits

Author SHA1 Message Date
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
Vincent Zhang
3018171bc9 The project root detection is moved to projectile-ensure-project. 2018-11-11 15:39:48 +08:00
Vincent Zhang
404e10708c
Merge pull request #41 from aminb/fix-require-subr-x
Fix: require subr-x (needed for when-let)
2018-11-11 00:57:55 +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
Vincent Zhang
fd5c985dc0
Merge pull request #40 from edkolev/master
Don't try to call anzu functions if anzu isn't installed
2018-11-09 21:48:45 +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
e9d4728b21 Update README. 2018-11-02 16:59:50 +08:00
Vincent Zhang
4f0c1b0fdf Fix #37: Update README for the performance issues on Windows. 2018-11-02 16:55:15 +08: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
70f896fffb Update README. 2018-10-27 23:24:23 +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