Commit Graph

5836 Commits

Author SHA1 Message Date
0aa7bf2d4a Insert package state before package autoloads in autoloads file
Prevents issues where autoloads will try to load packages but
`load-path` isn't initialized yet, causing "Cannot open load file"
errors.
2018-05-25 02:18:55 +02:00
0bdf638813 lang/latex: refactor package loading mechanism 2018-05-25 02:18:29 +02:00
d9894f0b74 Fix package install not retrying after a 'bad request' error 2018-05-25 02:16:19 +02:00
6e82e6fa19 tools/term: fix void-function error due to misplaced reference to +eshell-p 2018-05-25 01:59:15 +02:00
2990d5bd58 Fix hash-table-p and format type errors on blank startup 2018-05-25 01:26:24 +02:00
843c4d085f bin/doom: fix doom run 2018-05-25 01:25:56 +02:00
a390ef8deb Reduce doom-module-table calls significantly 2018-05-25 01:17:01 +02:00
11705d0920 Fix void-variable error (let -> let*) 2018-05-25 01:13:28 +02:00
59f70c2a87 Soft-fail if doom-module-table can't find your private init.el 2018-05-25 01:11:53 +02:00
9a8b6a82e2 lang/web: add doctor.el 2018-05-25 01:01:25 +02:00
0348686cce tools/eshell: change split behavior to open non-eshell window 2018-05-25 01:00:04 +02:00
cce30367bb tools/eshell: fix naive path concatenation for eshell-directory-name 2018-05-25 00:58:09 +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
cf3c0d808d tools/tmux: minor refactor of +tmux/rerun 2018-05-25 00:53:46 +02:00
be9a06b126 tools/magit: add magit-gitflow 2018-05-25 00:53:04 +02:00
ae95b9e8d5 lang/sh: improve zsh shebang detection regexp 2018-05-25 00:52:37 +02:00
5472cd4a37 lang/org: set org-clock variables sooner 2018-05-25 00:51:35 +02:00
fd87a0bd9e lang/org: add ]h/[h keybinds; correct bind motion keys to motion map 2018-05-25 00:51:15 +02:00
9011593e38 feature/workspaces: fix tests 2018-05-25 00:50:52 +02:00
b36eca2ae7 completion/ivy: ivy-height = 15 2018-05-25 00:50:33 +02:00
55a3aeec9a completion/ivy: don't pre-fill ag/rg/pt/grep searches w/ last search 2018-05-25 00:50:24 +02:00
852193dfc5 completion/helm: update command remappings 2018-05-25 00:49:21 +02:00
887e3e11af Remove unused printerr! macro 2018-05-25 00:49:03 +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
6a140209b8 Optimize Doom core package configs 2018-05-24 23:41:40 +02:00
9e7703db2a core-lib (add-transient-hook!): set permanent-local-hook on hook fn 2018-05-24 22:35:45 +02:00
e8653d0628 feature/file-templates: revise doom module README.org file template 2018-05-24 22:34:37 +02:00
b806ff937c feature/file-templates: rewrite & fix wrong-number-of-args errors #602 2018-05-24 22:34:37 +02:00
4c73ac0111 config/default: Fix evil-collection anti-hacks #604 2018-05-24 22:34:37 +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
7c611df6a6 Have doom//reload return t on success 2018-05-24 22:01:26 +02:00
dea7c10771 Don't do naive path concatenation for private custom-theme-directory 2018-05-24 21:20:50 +02:00
a55e2251e6 auto-mode-case-fold = nil
This disables the case insensitive second pass through auto-mode-alist
on case sensitive systems.
2018-05-24 21:20:02 +02:00
d35598520f Only package-initialize if uninitialized (from package.el API advice) 2018-05-24 21:20:02 +02:00
9e07940b7c Fix use-package autoload 2018-05-24 21:20:02 +02:00
30893b0ff1 Fix doom-initialize-packages 2018-05-24 21:20:02 +02:00
8282280965 core-packages: revise docstrings & comments 2018-05-24 21:20:02 +02:00
ea86b1075f Fix doom-template-exists-p 2018-05-24 21:20:02 +02:00
b70ed84a33 Fix doom//run-tests 2018-05-24 21:20:02 +02:00
2a8da07e31 Rename autoload-debug.el test to autoload-help.el 2018-05-24 21:20:02 +02:00
6dc375a891 Fix catch-all text-mode entry in auto-mode-alist
This indirectly fixes an issue where the elfeed db was opened in
text-mode, triggering the large-file check.
2018-05-24 21:20:02 +02:00
18a6df5e6f Fix doom/info 2018-05-24 21:20:02 +02:00
87e9365a41 Fix package autoremove/install/update batch commands 2018-05-24 21:20:02 +02:00
b629f4f507 Fix doom//clean-byte-compiled-files 2018-05-24 21:20:02 +02:00
6ea5430c4d Fix doom//byte-compile 2018-05-24 21:20:02 +02:00
3261f1fd71 Finalize core-dispatcher API
+ Add doom-auto-accept to replace YES envvar.
+ Add docstrings & documentation to all commands.
+ Make dispatcher support more than one alias.
+ Document quickstart command
+ Update autoloads/install/autoremove/update/refresh to fit new initialization workflows
+ Rename doom//info and doom//version
+ Recompile alias is now rc instead of cc
+ Improve reliability of doom//quickstart
2018-05-24 21:20:02 +02:00
8746c12fae Redesign Doom bootstrap, caching & autoload generation logic
The autoloads file has been split into doom-autoload-file and
doom-package-autoload-file. The former is for Doom's modules and
standard library; the latter is for compiling all package autoloads like
load-path and auto-mode-alist (among other things).

This reduced my startup speed from ~1s to ~0.5s
2018-05-24 21:20:02 +02:00