Commit Graph

565 Commits

Author SHA1 Message Date
e5a4415d58 General, minor reformatting/refactor 2018-06-02 13:58:04 +02:00
36c36ca271 Optimize switch buffer/window hooks
Significantly reduces nested triggering of these hooks.
2018-06-01 16:40:39 +02:00
947fe345c3 Minor, general refactor
In some contexts, map-put is superior to add-to-list.
2018-05-29 15:34:13 +02:00
456dc62051 Fix compile-time void-function errors from modeline 2018-05-29 15:32:36 +02:00
ed5e8849cc Fix void-variable fundamental-mode error from unquoted symbol 2018-05-28 15:50:11 +02:00
376adde0d8 Optimize mode-line segments that are just variables 2018-05-27 22:31:08 +02:00
f3c7dac997 Don't protect visible buffers that start with an asterix 2018-05-26 23:25:57 +02:00
1aec48a848 The *real* fix for whitespace-mode interfering with the mu4e sidebar #607 2018-05-26 03:09:53 +02:00
6a140209b8 Optimize Doom core package configs 2018-05-24 23:41:40 +02:00
0b48575c14 Remove def-hydra! macro alias
Causes byte-compilation issues and the alias is unnecessary.
2018-05-24 22:03:19 +02:00
dea7c10771 Don't do naive path concatenation for private custom-theme-directory 2018-05-24 21:20:50 +02:00
1369c51000 Replace :defer HOOK/FN with :after-call keyword 2018-05-21 01:38:17 +02:00
da5c7d27cf Use correct init hook (doom-post-init-hook) 2018-05-20 12:18:48 +02:00
f16aa539c7 Fix window is not a live frame error #596 2018-05-18 22:06:10 +02:00
cea750fc55 Rename doom|ansi-color-apply => doom|compilation-ansi-color-apply 2018-05-17 17:29:23 +02:00
b01893bef2 Disable whitespace-mode in childframes 2018-05-17 17:29:07 +02:00
51cc1e8908 No fringes in minibuffer or which-key buffers 2018-05-17 17:28:44 +02:00
02e4c15b8e Move avy/ace-link from core-editor to core-ui 2018-05-17 15:29:29 +02:00
3853fdbf8d Fix doom|protect-visible-buffers protecting temporary buffers 2018-05-17 15:16:28 +02:00
49d431ee4e Trigger switch-buffer hooks on pop-to-buffer 2018-05-17 12:11:34 +02:00
4fba57e954 Fix trapped-in-prompt cursor issue in minibuffer 2018-05-17 12:11:19 +02:00
c36e127ec5 Rethink core package deferral hooks
Ensure they are available exactly when they can be useful, but no
sooner.
2018-05-15 21:49:51 +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
bb88411cc9 General minor refactor & docstring fixes 2018-05-14 20:55:55 +02:00
bec79a3d4c Major refactor of Doom bootstrap process
+ New `input` and `buffer` support for :defer in def-package! can now
  defer packages until the first command invoked after startup or first
  interactive buffer switch, respectively
+ Exploit these new :defer techniques to lazy-load many core packages,
  netting Doom a 20-30% decrease in startup time
+ Various userland macros (like package!, def-package-hook!, packages!,
  and disable-packages!) will now throw an error if used incorrectly
  (i.e. outside of their intended files; e.g. package! should be used in
  packages.el files)
+ Removed support for multiple/nested doom! calls. There should only be
  THE ONE in ~/.doom.d/init.el (or ~/.config/doom/init.el)
+ Fix an issue where load-path and auto-mode-list modifications would
  not persist because doom-packages-file was cached too late.
+ Added package-activated-list to cached variables in
  doom-packages-file, thus we no longer need custom-file.
+ Load Doom core files from doom-initialize. Now doom-initialize can be
  called from state-dependent non-interactive functions, instead of
  reloading core/core.el, which was clumsy
+ Removed the doom-post-init-hook hook. There was no reason for it to
  exist when doom-init-hook can simply be appended to
2018-05-14 20:37:13 +02:00
eb5fd0aa53 run-hook-with-args => run-hooks, in custom hooks 2018-05-14 13:05:03 +02:00
4603a4e113 Change doom-theme on load-theme 2018-05-14 13:05:03 +02:00
0bd88b8414 Add restart-emacs package & commands 2018-05-14 13:05:03 +02:00
2373429e76 inhibit-compacting-font-caches = t
Performance at the cost of some space efficiency
2018-05-14 13:05:03 +02:00
9b1385b725 core-ui: general refactor/reformatting 2018-05-11 10:00:23 +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
0ffc1fa3df {window,frame}-resize-pixelwise = t 2018-05-11 10:00:23 +02:00
92d5f4266c custom-theme-directory = ~/.doom.d/themes/ 2018-05-11 10:00:19 +02:00
6359fec985 Fix doom-unicode-font 2018-05-09 00:20:01 +02:00
4705153873 Minor refactor
+ comment revision
+ delq->map-delete
+ remove obsolete variable
2018-05-09 00:20:01 +02:00
67f9aa1ffe Move whitespace config to core-ui
Introduces new doom|show-whitespace-maybe hook to replace
doom|editorconfig-whitespace-mode-maybe
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
78dde79622 Make doom|ansi-color-apply more robust 2018-05-07 22:02:00 +02:00
b76addda39 Delay setting frame buffer-predicate until doom-init 2018-05-07 19:26:31 +02:00
135ebd925f Enable global-eldoc-mode; less work for me! 2018-04-23 00:34:03 -04:00
21909a83e1 Add missing buffer name to kill confirmation 2018-04-17 12:26:41 +01:00
904c997e9f Add modeline layout to format function docstring 2018-04-05 02:27:31 -04:00
c1d1753490 Provoke doom to init theme in daemon session 2018-04-04 07:40:39 -04:00
13bffc54bd Refactor theme/font initialization
Addressed #489
2018-03-30 04:12:52 -04:00
c998cebd31 ansi-color-for-comint-mode = t 2018-03-27 19:18:26 -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
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
57065c4a71 Don't prompt to save for non-file-visiting buffers on kill-this-buffer 2018-03-24 17:05:06 -04:00
24043d9bfd Silence beginning/end-of-line/read-only errors on motions in minibuffer 2018-03-23 02:29:17 -04:00