Commit Graph

770 Commits

Author SHA1 Message Date
Henrik Lissner
2f83757018 ui/doom-dashboard: more robust feature detection
In case you aren't using those modules, but have other means of loading
those packages.
2018-05-25 00:54:07 +02:00
Henrik Lissner
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
Henrik Lissner
dcec3b9b25 feature/popup: add new autosave window parameter
(autosave . CDR)

This parameter determines what to do with modified buffers in closing
popup windows. CDR can be a t, 'ignore, a function or nil.

+ If t, no prompts. Just save them automatically (if they're
  file-visiting buffers).
+ If 'ignore, no prompts, no saving. Just silently kill it.
+ If nil (the default), prompt the user what to do if the buffer is
  file-visiting and modified.
+ If a function, the return value must return one of the other values.
  It takes two arguments: the popup window and buffer.
2018-05-19 12:08:24 +02:00
Henrik Lissner
80adb9c1f6 General refactor for consistency & idempotency
Also updated comments
2018-05-18 01:26:41 +02:00
Henrik Lissner
3e6d6279a6 ui/evil-goggles: remove unnecessary toggle wrapper command 2018-05-16 13:06:07 +02:00
Henrik Lissner
06c22a5af2 ui/doom-dashboard: add vertical centering (experimental) 2018-05-15 21:49:50 +02:00
Henrik Lissner
94f9e43f25 Rewrite :defer semantics
:defer now supports a hook, a cons cell with (SYMBOL . INTEGER) where
SYMBOL is a hook and INTEGER is a number of idle seconds before the
package is autoloaded, or just the integer (as per the default behavior
of :defer).

Also fixes an issue where switch-buffer-deffered packages (like
smartparens) wouldn't load.
2018-05-15 10:54:45 +02:00
Henrik Lissner
7122a3e01b ui/evil-goggles: enable evil-goggles-mode on load 2018-05-15 03:15:45 +02:00
Henrik Lissner
5537f81e02 ui/doom-dashboard: doom-packages--benchmark => doom|display-benchmark 2018-05-14 20:56:17 +02:00
Henrik Lissner
a631c10d05 Exploit new :defer input|buffer across various modules 2018-05-14 20:45:47 +02:00
Henrik Lissner
83118dc65c Move feature/popup => ui/popup
And move settings to ui/popup/init.el
2018-05-14 13:05:03 +02:00
Henrik Lissner
0b8f884d18 ui/doom: simplify +doom-folded-face (now set in doom-themes) 2018-05-14 13:05:03 +02:00
Henrik Lissner
a0fa6e5b97 ui/neotree: add *.class to hidden files regexp 2018-05-14 13:05:03 +02:00
Henrik Lissner
99eef125b0 Move :tools neotree => :ui neotree 2018-05-14 13:05:03 +02:00
Henrik Lissner
52cdb0bd83 Remove doom-fringe-size; set default fringe in :ui doom
There was no way to customize doom-fringe-size. Better to customize
fringes by using fringe-mode, {left,right}-fringe-width or
set-window-fringes directly.
2018-05-11 10:00:23 +02:00
Henrik Lissner
4705153873 Minor refactor
+ comment revision
+ delq->map-delete
+ remove obsolete variable
2018-05-09 00:20:01 +02:00
Henrik Lissner
317b556bde Extract :ui posframe packages into other modules 2018-05-09 00:20:01 +02:00
Henrik Lissner
0afae2eacf Remove fringe-helper package 2018-05-08 19:42:28 +02:00
Henrik Lissner
6c8a8a723a ui/evil-goggles: evil-goggles-enable-change = nil
Until edkolev/evil-goggles#19 is fixed
2018-05-07 19:26:31 +02:00
Henrik Lissner
7553f83b04 ui/doom-modeline: minor refactoring 2018-05-04 15:12:44 +02:00
Henrik Lissner
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
Henrik Lissner
e6c7c8a8cd ui/doom-modeline: reduce redundant anzu config 2018-05-04 15:12:44 +02:00
Julien Wintz
d0b183b770 Anzu mode made right. 2018-05-03 21:23:35 +02:00
Julien Wintz
5c5cbe23db Enabled vanilla anzu. 2018-05-03 20:12:21 +02:00
Henrik Lissner
c05b16ee6f Minor refactor/reformatting 2018-05-03 18:03:13 +02:00
Henrik Lissner
87aa05ffee ui/doom: solaire-mode support for doom-nord-light 2018-05-03 18:03:13 +02:00
Henrik Lissner
630188e27e ui/doom-modeline: optimize flycheck segment 2018-04-26 05:11:01 -04:00
Henrik Lissner
a6d8a0b4ec ui/doom-modeline: update flycheck on status-changed #549 2018-04-26 05:11:01 -04:00
Henrik Lissner
4d2d3953b8 ui/doom-modeline: fix off-by-one in selection-info segment 2018-04-25 05:17:56 -04:00
Henrik Lissner
5acd952c47 ui/doom-modeline: fix (some) void-variable errors w/ blank buffer-file-truename 2018-04-23 06:07:12 -04:00
Henrik Lissner
97812583f0 completion/company: add company-box config & +childframe flag 2018-04-22 23:41:53 -04:00
Henrik Lissner
1751c84559 ui/doom-modeline: fix word count in evil line-wise selection #364 2018-04-18 19:51:37 -04:00
Henrik Lissner
61865d0646 ui/doom-dashboard: don't open dashboard over files (part 2) #523 2018-04-18 19:41:50 -04:00
Henrik Lissner
d0ecf97956 ui/posframe: use hook instead of :after 2018-04-18 18:30:17 -04:00
Henrik Lissner
604bbcd1d5 ui/posframe: replace company-childframe with company-box 2018-04-18 18:21:43 -04:00
Henrik Lissner
dbd6982e06 ui/doom-dashboard: don't open dashboard over files via emacsclient #523 2018-04-18 01:08:56 -04:00
Yutian Li
c4e176092e [develop] Fix links. 2018-04-17 20:59:59 -07:00
Henrik Lissner
c24c868945 ui/doom-dashboard: remove 'Edit Doom Emacs' button 2018-04-03 16:58:41 -04:00
Henrik Lissner
cc13f51b7f ui/doom-dashboard: update for new doom-private-dir 2018-04-03 16:29:14 -04:00
Benjamin Andresen
26d31d3b8b Cut: ui/posframe: don't set `ivy-posframe-font'
Previous value of current font + :size 18 is unexpected.
2018-04-02 22:02:08 +02:00
Henrik Lissner
f38cd94f33 ui/doom: improve solaire-mode theme integration
Now +doom-solaire-themes is an alist that informs Doom if the current
theme should be loaded with solaire-mode, and whether
solaire-mode-swap-bg should be used.
2018-03-28 06:49:54 -04:00
Henrik Lissner
174e0518a1 ui/doom: fix void-symbol error caused by misnamed advice function 2018-03-28 03:32:52 -04:00
Henrik Lissner
93678494cb ui/doom-dashboard: fix wrong-type-arg error on reload 2018-03-27 19:08:46 -04:00
Henrik Lissner
2364e97285 Fix switch-window hooks when switching with the mouse
And moved it to ui/nav-flash, which is what this code was introduced to
fix in the first place!
2018-03-27 02:50:40 -04:00
Henrik Lissner
3b94bafb3a tools/nav-flash: refactor & reduce false positive jumps 2018-03-26 06:41:33 -04:00
Henrik Lissner
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
Henrik Lissner
b848527f0c ui/nav-flash: fix wrong-type-argument error on recenter 2018-03-26 02:11:11 -04:00
Henrik Lissner
8604966e21 ui/doom-dashboard: add 'edit modules list' button 2018-03-24 17:53:13 -04:00
Henrik Lissner
988e70683e ui/posframe: less disruptive emacs version warnings; use constants 2018-03-24 07:25:00 -04:00
Henrik Lissner
895b9d5484 ui/doom: +doom|reload-theme => +doom*reload 2018-03-22 23:27:31 -04:00