Commit Graph

114 Commits

Author SHA1 Message Date
09cb4f6716 Major refactor & optimization of how modules load their packages
Now that we are loading package autoloads files (as part of the
generated doom-package-autoload-file when running make autoloads), many
:commands properties are redundant. In fact, many def-package! blocks
are redundant.

In some cases, we can do without a config.el file entirely, and can move
into the autoloads file or rely entirely on package autoloads.

Also, many settings have been moved in their module's autoloads files,
which makes them available ASAP; their use no longer depends on module
load order.

This gained me a modest ~10% boost in startup speed.
2018-05-25 00:46:16 +02:00
4705153873 Minor refactor
+ comment revision
+ delq->map-delete
+ remove obsolete variable
2018-05-09 00:20:01 +02:00
7553f83b04 ui/doom-modeline: minor refactoring 2018-05-04 15:12:44 +02:00
85e5ac4514 ui/doom-modeline: adjust bars when height/width is changed
Also when doom-big-font-mode is toggled.
2018-05-04 15:12:44 +02:00
e6c7c8a8cd ui/doom-modeline: reduce redundant anzu config 2018-05-04 15:12:44 +02:00
d0b183b770 Anzu mode made right. 2018-05-03 21:23:35 +02:00
5c5cbe23db Enabled vanilla anzu. 2018-05-03 20:12:21 +02:00
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