Commit Graph

576 Commits

Author SHA1 Message Date
1a452b6842 💥 Change first arg of load! macro
load!'s first argument is no longer a symbol (that will cause
void-variable errors now) to save on unnecessary interning and simplify
compile-time logic. It accepts any valid form that evaluates to a string
now.

If you use load!, you need to change its argument to a string!

e.g. (load! +my-module) => (load! "+my-module")
2018-05-27 12:52:28 +02:00
fa17de9f19 ui/popup: refactor :popup/:popups settings
And move org popup settings to lang/org
2018-05-26 23:26:45 +02:00
4e2beb8b7e Merge +popup-define's documentation into :popup setting's
Users are more likely to view :popup's documentation for information on
defining popup rules (they shouldn't be using +popup-define!).
2018-05-26 14:20:23 +02:00
6b70831386 ui/evil-goggles: evil-goggles-enable-delete = nil 2018-05-25 00:56:34 +02:00
1e4f108655 ui/neotree: non-capturing groups in neo-hidden-regexp-list
Slight optimization.
2018-05-25 00:56:19 +02:00
643ff13053 ui/doom: make solaire-mode a little pickier
Instead of only activating in buffers that a real (which is more
selective), simply activate in buffers that are file-visiting (this
means that real buffers that aren't highlighted can exist, particularly
term/eshell buffers).
2018-05-25 00:55:06 +02:00
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
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
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
80adb9c1f6 General refactor for consistency & idempotency
Also updated comments
2018-05-18 01:26:41 +02:00
3e6d6279a6 ui/evil-goggles: remove unnecessary toggle wrapper command 2018-05-16 13:06:07 +02:00
06c22a5af2 ui/doom-dashboard: add vertical centering (experimental) 2018-05-15 21:49:50 +02:00
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
7122a3e01b ui/evil-goggles: enable evil-goggles-mode on load 2018-05-15 03:15:45 +02:00
5537f81e02 ui/doom-dashboard: doom-packages--benchmark => doom|display-benchmark 2018-05-14 20:56:17 +02:00
a631c10d05 Exploit new :defer input|buffer across various modules 2018-05-14 20:45:47 +02:00
83118dc65c Move feature/popup => ui/popup
And move settings to ui/popup/init.el
2018-05-14 13:05:03 +02:00
0b8f884d18 ui/doom: simplify +doom-folded-face (now set in doom-themes) 2018-05-14 13:05:03 +02:00
a0fa6e5b97 ui/neotree: add *.class to hidden files regexp 2018-05-14 13:05:03 +02:00
99eef125b0 Move :tools neotree => :ui neotree 2018-05-14 13:05:03 +02:00
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
4705153873 Minor refactor
+ comment revision
+ delq->map-delete
+ remove obsolete variable
2018-05-09 00:20:01 +02:00
317b556bde Extract :ui posframe packages into other modules 2018-05-09 00:20:01 +02:00
0afae2eacf Remove fringe-helper package 2018-05-08 19:42:28 +02:00
6c8a8a723a ui/evil-goggles: evil-goggles-enable-change = nil
Until edkolev/evil-goggles#19 is fixed
2018-05-07 19:26:31 +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
87aa05ffee ui/doom: solaire-mode support for doom-nord-light 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
97812583f0 completion/company: add company-box config & +childframe flag 2018-04-22 23:41:53 -04:00
1751c84559 ui/doom-modeline: fix word count in evil line-wise selection #364 2018-04-18 19:51:37 -04:00
61865d0646 ui/doom-dashboard: don't open dashboard over files (part 2) #523 2018-04-18 19:41:50 -04:00
d0ecf97956 ui/posframe: use hook instead of :after 2018-04-18 18:30:17 -04:00
604bbcd1d5 ui/posframe: replace company-childframe with company-box 2018-04-18 18:21:43 -04:00
dbd6982e06 ui/doom-dashboard: don't open dashboard over files via emacsclient #523 2018-04-18 01:08:56 -04:00
c4e176092e [develop] Fix links. 2018-04-17 20:59:59 -07:00
c24c868945 ui/doom-dashboard: remove 'Edit Doom Emacs' button 2018-04-03 16:58:41 -04:00
cc13f51b7f ui/doom-dashboard: update for new doom-private-dir 2018-04-03 16:29:14 -04:00
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
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
174e0518a1 ui/doom: fix void-symbol error caused by misnamed advice function 2018-03-28 03:32:52 -04:00
93678494cb ui/doom-dashboard: fix wrong-type-arg error on reload 2018-03-27 19:08:46 -04:00
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