Commit Graph

5809 Commits

Author SHA1 Message Date
7c97fd3c73 Load smartparens a little sooner (fix sp-with-modes error) 2018-05-15 21:52:09 +02:00
12013b4ad4 Cache interpreter-mode-alist in doom-packages-file too 2018-05-15 21:49:51 +02:00
fd16719324 lang/{python,ruby}: add doctor.el 2018-05-15 21:49:51 +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
97b8c04dbb def-package!: specify id for deferred-load transient hooks
Makes them easier to identify in hook lists.
2018-05-15 21:49:51 +02:00
6b8520d189 Change add-transient-hook! to take hook suffix as 2nd arg
By default, transient hooks are defined as doom-transient-hook-N, where
N is a counter. This makes debugging them difficult.

Now, you may specify an id for the second argument. e.g.

  (add-transient-hook! 'find-file-hook load-evil (require 'evil))

Will define doom|transient-hook-load-evil, which is easier to debug and
remove, if necessary.
2018-05-15 21:49:51 +02:00
af079e5f6f Remove unused doom-deferred-packages variable 2018-05-15 21:49:51 +02:00
06c22a5af2 ui/doom-dashboard: add vertical centering (experimental) 2018-05-15 21:49:50 +02:00
7eb0dd6340 lang/python: remove redundant pip-requirements config
The auto-mode-alist entry is already set up by
pip-requirements-autoloads.
2018-05-15 21:49:47 +02:00
76f09b077b Merge pull request #582 from liujoey/ace-link-mu4e
Add: ace-link-mu4e autoload
2018-05-15 16:48:56 +02:00
b0319d219b Merge pull request #583 from benreyn/br-helm-hotfix
Fix typo causing startup error in helm module
2018-05-15 16:48:22 +02:00
e38560252b Fix typo causing startup error in helm modules
It looks like an extra letter snuck into a `nil` in 67dab98. This is causing a
startup error on develop.
2018-05-15 09:40:44 -05:00
86b6fab18e Add: ace-link-mu4e autoload 2018-05-15 09:30:21 -04:00
0fe551983e Merge pull request #577 from ppwwyyxx/patch-3
Update imenu/config.el
2018-05-15 12:05:49 +02:00
9981fa4acb Merge pull request #579 from benreyn/br-slim-mode
Add [slim-mode] to :lang web +html
2018-05-15 12:05:25 +02:00
70d0ce4528 Fix error when def-package-hook! was used anywhere 2018-05-15 11:23:44 +02:00
984a0c8b6c config/default: SPC h R = doom//reload 2018-05-15 10:54:45 +02:00
032203ef99 hscroll-margin = 2
So that moving to the ends of a sentence don't sometimes leave the
cursor beyond the edge of the screen in GUI Emacs.
2018-05-15 10:54:45 +02:00
a6c6686628 Enable global-undo-tree-mode after setting variables 2018-05-15 10:54:45 +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
9ac15aa0c1 Add [slim-mode] to :lang web +html
[slim-mode]: https://github.com/slim-template/emacs-slim
2018-05-14 20:30:28 -05:00
9a2c4f297c Fix void macro errors after byte-compiling 2018-05-15 03:24:30 +02:00
1320d83834 Fix doom/info displaying nil module flags 2018-05-15 03:15:45 +02:00
7122a3e01b ui/evil-goggles: enable evil-goggles-mode on load 2018-05-15 03:15:45 +02:00
5ab790c07d tools/eshell: default to ~/.doom.d/eshell or ~/.eshell 2018-05-15 01:57:40 +02:00
7bf133e991 Update unit test bootstrap 2018-05-15 01:46:22 +02:00
682587ac26 Remove esup 2018-05-15 01:46:08 +02:00
d51f3b1f38 Map /[A-Z]+$ files to text-mode 2018-05-15 01:40:42 +02:00
ba2fb4a82d tools/eshell: remove custom aliases
That belongs in my private module
2018-05-15 01:33:22 +02:00
a3800f3949 tools/eshell: set eshell-directory-name if ~/.doom.d/eshell exists 2018-05-15 01:33:07 +02:00
84fc356e40 tools/eshell: dedicate eshell windows
Disallow commands to change their buffer non-interactively.
2018-05-15 01:32:08 +02:00
d0f8bf402a doom-visible-windows: support visible window-parameter 2018-05-15 01:31:40 +02:00
abb4d5a009 Move :tools impatient-mode to new :collab category 2018-05-14 21:23:48 +02:00
bdf6fceb52 Silence deleted *.elc messages if byte-compile fails 2018-05-14 21:09:12 +02:00
dbeb7c639a Update doom doctor 2018-05-14 21:08:16 +02:00
5537f81e02 ui/doom-dashboard: doom-packages--benchmark => doom|display-benchmark 2018-05-14 20:56:17 +02:00
bb88411cc9 General minor refactor & docstring fixes 2018-05-14 20:55:55 +02:00
67dab98859 Improve idempotency of Doom config (in case of reloading) 2018-05-14 20:54:58 +02:00
48cb10a9cc lang/org: fix void-function +org|setup-ui error
Caused if org is loaded early in your config, before :lang org is
loaded. Or when byte-compiling.
2018-05-14 20:49:45 +02:00
8cab2f19fd Remove redundant config & auto-mode-alist entries
Much of this config is done in package autoloads, and now that
auto-mode-alist is cached in doom-package-alist (after reading autoload
files), we can save some space by removing redundant config.
2018-05-14 20:48:14 +02:00
a631c10d05 Exploit new :defer input|buffer across various modules 2018-05-14 20:45:47 +02:00
2712d606c2 config/default: remove unnecessary after! blocks 2018-05-14 20:42:48 +02:00
e44fd886f2 Appease byte-compiler-sama 2018-05-14 20:37:13 +02:00
6e3f500a39 completion/ivy: ivy-use-selectable-prompt = t
Solves the "I want to enter something new, but it also is a part of
a match" issue. Thanks to @gilbertw1 for letting me know about this.

As such, the C-RET keybind from 310d81ab is no longer necessary
2018-05-14 20:37:13 +02:00
87699f3973 Change doom//reload to only reload private config 2018-05-14 20:37:13 +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
bb4a8e98e6 load-prefer-newer = noninteractive 2018-05-14 18:34:34 +02:00
966f7c77f9 app/twitter: :feature popup => :ui popup 2018-05-14 18:34:18 +02:00
e3e0cb7e68 doom/describe-modules: no initial input, instead set default 2018-05-14 18:32:26 +02:00
f2eedb44dc Remove https from package-archives dynamically 2018-05-14 15:57:54 +02:00