Commit Graph

107 Commits

Author SHA1 Message Date
c05b16ee6f Minor refactor/reformatting 2018-05-03 18:03:13 +02:00
630188e27e ui/doom-modeline: optimize flycheck segment 2018-04-26 05:11:01 -04:00
a6d8a0b4ec ui/doom-modeline: update flycheck on status-changed #549 2018-04-26 05:11:01 -04:00
4d2d3953b8 ui/doom-modeline: fix off-by-one in selection-info segment 2018-04-25 05:17:56 -04:00
5acd952c47 ui/doom-modeline: fix (some) void-variable errors w/ blank buffer-file-truename 2018-04-23 06:07:12 -04:00
1751c84559 ui/doom-modeline: fix word count in evil line-wise selection #364 2018-04-18 19:51:37 -04:00
f3b99779c9 Add doom-after-switch-frame-hook; fix over-eager switch-window hooks
Switch-window hooks would fire too frequently; like when switching to
the same window, clicking in windows, or from the minibuffer (e.g.
during ivy sessions).
2018-03-26 06:40:04 -04:00
940ba05e6a Fix miscounting in anzu (search) modeline segment 2018-03-20 03:40:18 -04:00
b082ba6460 ui/doom-modeline: deactivate mode-line when frame loses focus #458 2018-03-12 13:32:02 -04:00
c6352f055d ui/doom-modeline: resize mode-line for doom-big-font-mode 2018-03-02 23:26:58 -05:00
7707aec28a Remove doom group
Not really useful, and Doom doesn't encourage using the Emacs Customize
interface.
2018-02-18 03:04:58 -05:00
0b9ac52d27 ui/doom-modeline: remove eldoc-eval #420
eldoc has this functionality built-in.
2018-02-13 19:46:25 -05:00
0be42fe473 ui/doom-modeline: fix error caused by nil buffer-file-truename 2018-02-10 15:17:19 -05:00
d01deb5545 ui/doom-modeline: minor refactor 2018-01-31 05:03:28 -05:00
6b453962d7 ui/doom-modeline: silent xpm errors in tty emacs 2018-01-31 05:00:08 -05:00
c52cb38385 ui/doom-modeline: refactor flycheck segment (faster) 2018-01-31 04:24:51 -05:00
50ce083696 ui/doom-modeline: add word-count to selection segment #364
Controlled by the buffer-local variable
+doom-modeline-enable-word-count. Use +doom-modeline|enable-word-count
to enable it in certain modes. By default, this is enabled in text-mode
derived buffers.
2018-01-31 04:23:20 -05:00
3146513442 ui/doom-modeline: define bar once
A little faster (and simpler) than memoizing the xpm generator.
2018-01-28 21:38:19 -05:00
cd6fb816fd ui/doom-modeline: set modeline sooner
This may address scenarios where the modeline is unset, especially in
terminal Emacs sessions (like when emacs -nw is your EDITOR).
2018-01-28 16:50:32 -05:00
6790d666e0 ui/doom-modeline: init on doom-init-theme-hook
Initialize modeline with the theme.
2018-01-15 00:40:24 -05:00
c586eee602 ui/doom-modeline: don't forcibly hide modeline in org-src-mode 2018-01-07 05:56:02 -05:00
a5bb69cf6a Ensure *Messages* and *scratch* have a modeline 2018-01-07 00:35:23 -05:00
3cbddbfd88 Generalize +evil-esc-hook into doom-escape-hook
This lets vanilla Emacs users in on having a universal "escape" key.
2018-01-06 02:38:39 -05:00
76a4ae459d Fix obsolete (when|if)-let messages in Emacs 26 2017-12-10 14:49:52 -05:00
4a504a07aa ui/doom-modeline: remove all-the-icons-scale-factor let-bindings #278 2017-12-09 14:51:33 -05:00
f8e8dbad8f General minor refactor 2017-12-08 23:14:12 -05:00
9d81bc5a8b Major refactor: use-package-always-defer = nil & use :hook
Possibly breaking change: packages are no longer deferred by default.

Addresses #286
2017-12-08 23:14:11 -05:00
0e0f3d62a2 ui/doom-modeline: minor refactor of paths 2017-11-08 22:51:55 +01:00
efac883648 Merge branch 'master' into develop
* master:
  autoload evil-anzu when doing evil-ex-search-word*
  When calling +vcs-root, load git-link first.
2017-11-06 00:53:48 +01:00
c45e2c4918 General & minor refactor+cleanup 2017-11-05 19:54:44 +01:00
ca1b188ed7 autoload evil-anzu when doing evil-ex-search-word* 2017-10-26 04:36:19 -05:00
eac0adff8a Fix modeline duplication in buffer-file-name :help-echo 2017-10-05 01:27:46 +02:00
a2c2ee3246 Add 'relative-from-project option for +doom-modeline-buffer-file-name-style 2017-10-05 01:16:32 +02:00
e69ed84e8a ui/doom-modeline: propertize plain buffer names 2017-10-03 02:58:09 +02:00
b7ca13f45d Move dashboard modeline setup to ui/doom-modeline 2017-09-29 04:00:42 +02:00
fde07ba5df Show modified status in scratch buffer modeline 2017-09-27 00:00:30 +02:00
b60286d909 modeline: buffer-project => buffer-default-directory 2017-09-26 19:36:17 +02:00
738d85e84f Let python/ruby modules handle version strings
Also, set RBENV_VERSION and PYENV_VERSION envvars.
2017-09-26 01:02:47 +02:00
c7d63fe091 Set special modeline in scratch buffer 2017-09-25 03:03:00 +02:00
f6f335ee14 doom-modeline: minor refactor 2017-09-12 14:53:40 +02:00
1a8e3a04f3 Fix mode-line face & byte-compiler warnings
Fixes #184
2017-09-04 00:38:57 +02:00
1e07c3d97f Fix: ui/doom-modeline: cleanups to file-name style 'file-name and 'relative-to-project 2017-08-12 00:52:55 +02:00
d4b3b050d3 Add: ui/doom-modeline: make buffer-file-name display configurable
Introduced variable +doom-modeline-buffer-file-name-style

The options available now:
(Given ~/Projects/FOSS/emacs/lisp/comint.el)

'truncate-upto-project => ~/P/F/emacs/lisp/comint.el
'truncate-upto-root => ~/P/F/e/lisp/comint.el
'truncate-all => ~/P/F/e/l/comint.el
'relative-to-project => lisp/comint.el
'file-name => comint.el
2017-08-12 00:29:26 +02:00
85a085ca2f Add: ui/doom-modeline: show project-root but truncated 2017-08-11 17:30:52 +02:00
94e5fda871 Fix: ui/doom-modeline: segment bar has to return "" in any case to not break -nw
Amoriello found this fix in issue #170
2017-08-11 17:27:04 +02:00
06b5ee8fb8 Refactor ui/doom-modeline 2017-07-02 16:48:31 +02:00
ba7bc03cf6 Add an icon to modeline for narrowed buffers 2017-06-28 17:38:15 +02:00
ecd8ad0f46 Change how themes, fonts & modelines are loaded
WARNING: THIS IS A BREAKING CHANGE FOR THEME/FONT/NLINUM CUSTOMIZATIONS.

This change was motivated by the need to decouple theme and font loading
from the ui/doom module.

Now, it is doom-core's purview. Theme and fonts are loaded after
initfiles are read (attached to the doom-init-ui-hook hook), giving
other modules (especially private ones) a chance to change the theme or
fonts.

+ Refactor core-ui.el
+ New init hook: doom-init-ui-hook
+ Decouple theme/font loading from ui/doom
+ Load modelines are doom-init-ui-hook
+ New theme/font variables (replaces old ui/doom variables)
  + doom-theme
  + doom-font
  + doom-variable-pitch-font
  + doom-unicode-font
+ Change nlinum variables
  + doom-line-number-lpad
  + doom-line-number-rpad
  + doom-line-number-pad-char

Addresses #117
2017-06-28 16:18:24 +02:00
a04d4a6352 Add buffer-file-name check to vcs segment #130 2017-06-28 12:26:50 +02:00
392c58ea47 General refactor & cleanup 2017-06-19 00:32:45 +02:00