Commit Graph

516 Commits

Author SHA1 Message Date
96a232b2ae Rename module library functions in core-packages
+ doom-module-loaded-p => doom-module-enabled-p
+ doom-module-flags => doom-module-get
+ Use load! for module config files, rather than require!
2017-12-10 16:59:10 -05:00
b14198dedf Extend byte-compile ;;;###if support to other elisp files 2017-12-10 16:57:51 -05:00
ae25e319b0 Silence 'cannot load' false positive errors when byte-compiling 2017-12-10 14:51:32 -05:00
76a4ae459d Fix obsolete (when|if)-let messages in Emacs 26 2017-12-10 14:49:52 -05:00
4450f08b0b Make async a core package again 2017-12-09 14:17:23 -05:00
346d7bdf36 Detect init.el in any module, instead of private user module
User module (named after user-login-name) is no longer automatically
loaded or detected, and must be explicitly mentioned in the doom! macro
of your emacs init.el file.

Also, any module can now have an init.el file, which will be run before
any modules are loaded.
2017-12-08 23:14:13 -05:00
df93fd8ce4 Refactor require! macro 2017-12-08 23:14:12 -05:00
9d81bc5a8b Major refactor: use-package-always-defer = nil & use :hook
Possibly breaking change: packages are no longer deferred by default.

Addresses #286
2017-12-08 23:14:11 -05:00
2cbd1b9107 Half-revert 01185352; we need use-package's newer features+bugfixes 2017-12-08 23:14:11 -05:00
b885164ce6 Update comments in core-packages 2017-12-04 13:43:04 -05:00
0118535267 Install core packages from melpa-stable
Use-package broke in a recent update, as with Doom, since it relies so
heavily on it. To combat this issue arising again, use-package will be
installed from melpa-stable from now on.

Addresses #283
2017-12-04 13:22:21 -05:00
2190d29960 Enable load-prefer-newer sooner in noninterative/debug sessions 2017-12-03 20:04:00 -05:00
1140af7807 Report missing module in require! macro 2017-12-03 20:04:00 -05:00
5364260a5c Report ignored files w/ reloading autoloads 2017-12-03 20:04:00 -05:00
f21c01fce2 predicate cookies: restrict to first 3 lines + set load-file-name 2017-12-03 20:03:55 -05:00
a8f4b6cb2c Fix 'No such server' errors in doom//reload-load-path #267 2017-11-14 15:32:11 +01:00
6def061c5a Minor refactor/comment corrections 2017-11-13 18:03:36 +01:00
eb01401513 Remove references to old package api 2017-11-13 17:58:16 +01:00
8e8ddeda5f doom--display-benchmark => doom-packages--display-benchmark 2017-11-08 22:51:55 +01:00
903ac3f0ef Run doom//reload-autoloads in separate session
Includes a minor refactor core/core-packages.el
2017-11-08 22:51:55 +01:00
e38f508ec1 doom--module-paths => doom-module-paths 2017-11-08 22:51:55 +01:00
211977e28a doom--module-pairs => doom-module-pairs 2017-11-08 22:51:55 +01:00
b4f9087022 Add docstring to doom//byte-compile-core 2017-11-08 14:42:22 +01:00
5f166d9297 Add --quick to Emacs batch calls (experimental) 2017-11-07 13:09:24 +01:00
2516a123d6 Use -- to delimit arguments 2017-11-07 13:08:19 +01:00
95a5b46dc5 New // naming convention + refactor doom management functions 2017-11-05 19:54:43 +01:00
2009a841fd doom-initialize: retry package-initialize on error 2017-11-05 01:16:36 +01:00
40a1aaae8e Make async a core package 2017-11-05 01:16:35 +01:00
cd7ab060e0 General refactor & docstring updates 2017-10-05 17:02:59 +02:00
3062687998 Revert "Preload modules before compiling #219"
This reverts commit c9632a7d8b.

Causes more general breakage.
2017-10-05 14:17:05 +02:00
c9632a7d8b Preload modules before compiling #219 2017-10-05 12:38:23 +02:00
e2adda7466 More init logging; more details in startup message 2017-10-02 20:03:49 +02:00
42fec8494d Rename doom/reload => doom/reload-load-path 2017-09-19 15:07:57 +02:00
42e7f56a1f Refactor doom--module out of featurep! workflow
Fixes a 'featurep! not used properly' error that occurs during byte
compilation.
2017-09-15 14:37:19 +02:00
a2367866ec Load files during byte-compilation
Prevents issues like missing macro definitions in later modules, at the
cost of making byte-compilation a little heavier.
2017-09-15 13:44:37 +02:00
bb959c635b Prevent/delay hash-table rehashing
This is *definitely* premature optimization.
2017-09-11 23:15:20 +02:00
4addd92c30 Simplify core loading process (part 3) 2017-08-08 19:14:10 +02:00
c021d347d3 Refactor module pairs and paths helpers 2017-08-08 16:38:17 +02:00
87ee1a06e3 Remove def-feature! (keep things simple!)
Removed syntactic sugar macro because it just hides obvious
functionality behind magic.
2017-08-08 16:38:17 +02:00
ac05f9a763 Remove wildcard support from doom! macro
"Explicit is better than implicit."
2017-08-08 16:38:17 +02:00
0b7b8800a2 Add support for module flags in doom! macro #158
For example:

  (doom! :feature (version-control +git))

I leave it to modules to interpret these flags, and they can be detected
through one of the following:

 + (featurep! :feature version-control +git)
 + (featurep! +git) -- syntactic sugar, only available from within
   modules.
 + (doom-module-flags :feature version-control) -- returns a list of
   flags for this module.

Flags are also available from packages.el files.
2017-08-08 16:38:17 +02:00
65748c5809 Simplify core loading process 2017-08-08 14:25:36 +02:00
5346670ab0 Add doom/recompile-packages (make compile:elpa)
If you upgrade (or downgrade) Emacs, there may be byte-compilation
errors. This works around that.
2017-07-28 19:21:00 +02:00
aa255d9cb6 Revert "Refactor doom-initialize-packages"
This reverts commit ea4d0a50cb.

Fixes #148
2017-07-26 17:07:10 +02:00
f0fc5c5281 doom/compile: don't count excluded test files 2017-07-14 19:49:54 +02:00
6a5bd216e5 Appease byte-compiler senpai 2017-07-14 18:19:08 +02:00
ac514d7a0c [Hotfix] Fix doom-initialize-packages #147
Caused by incomplete initialization of Doom core when
doom-initialize-packages is used from noninteractive commands.
2017-07-14 18:14:23 +02:00
c50dc63854 General cleanup 2017-07-14 15:23:12 +02:00
ea4d0a50cb Refactor doom-initialize-packages
It reloaded Doom too aggressively. No more.
2017-07-13 00:05:30 +02:00
f93fb61f33 Refactor core.el
+ Load Doom core in doom! macro
+ Move automatic minor modes to core-editor
+ Move doom*set-indirect-buffer-filename to core-editor
2017-07-13 00:05:30 +02:00