Commit Graph

2882 Commits

Author SHA1 Message Date
0634289a01 Autoload doom-*-package functions 2018-05-20 12:05:17 +02:00
61ca98fd3f Refactor package managent batch commands
+ Replace message! with print!
+ doom//packages-* commands now only return t if package list changed
2018-05-20 12:03:50 +02:00
0d9db6f149 Rewrite autoload/message library
+ Rename message! => print!
+ New printerr! macro
+ Extended color support to interactive sessions (now propertized using
  term faces, so we don't have to rely on a popup window to display it).
2018-05-20 11:44:10 +02:00
f984d46a9b Fix featurep! & load! calls while byte-compiling
The would prioritize load-file-name over byte-compile-current-file
during byte-compiling, which would result featurep! being unable to
resolve the current module and load! from figuring out where "here" was
to build its relative paths from.
2018-05-20 00:57:58 +02:00
a46e7655dc Move batch commands from core-packages to autoload/modules 2018-05-20 00:57:18 +02:00
1d99ee5017 Add esup back to core package list 2018-05-20 00:37:48 +02:00
2d2ce3cff9 Fix exec-path/osx-clipboard initializing too early 2018-05-20 00:08:19 +02:00
dc4e0f1556 Add doom-file-cookie-p to core-lib 2018-05-20 00:07:06 +02:00
85ee9ce459 Refactor doom module API
+ Consolidate the CATEGORY -> MODULE terminology
+ Rename functions to make their function easier to understand
  + Rename doom-module-expand-file => doom-module-path
  + Rename doom-module-find-path => doom-module-locate-path
2018-05-20 00:03:57 +02:00
5abdbaee38 Rewrite docstrings for doom-initialize{,-packages} 2018-05-20 00:01:07 +02:00
6f5e710d98 Refactor startup process, hooks, doom-initialize & doom!
+ Brings back doom-pre-init-hook and doom-post-init-hook hooks.
+ Extracts autoload file loading logic into doom-initialize-autoloads
  function.
2018-05-19 23:59:55 +02:00
17d5721102 Minor reformatting of core startup config 2018-05-19 23:49:25 +02:00
a19a64b16b Complain if using Emacs <25
More helpful than advice-add errors.
2018-05-19 18:01:54 +02:00
fa37d7b05e Refactor core initialization process
A vastly simpler bootstrap process.

Also load core libs in core-lib (duh)
2018-05-19 16:42:48 +02:00
59f510e85f Add four new functions for keywords & file collection 2018-05-19 16:32:12 +02:00
f16aa539c7 Fix window is not a live frame error #596 2018-05-18 22:06:10 +02:00
ee386f8461 Fix wrong-number-of-args error when installing packages
The fourth argument of map-put is an Emacs 26+ only feature.
2018-05-18 18:47:19 +02:00
3d0745c3ec Add automatic indentation-detection (experimental)
Editorconfig is given precedence. If it successfully sets an
indent_style or indent_size for the current buffer, automatic
indentation detection will be disabled.
2018-05-18 01:28:41 +02:00
80adb9c1f6 General refactor for consistency & idempotency
Also updated comments
2018-05-18 01:26:41 +02:00
50401f6c09 Minor refactor of package management api 2018-05-18 01:11:20 +02:00
7aecb85c34 Reverse order of operations for doom//reload-packages 2018-05-18 01:10:05 +02:00
340aa0449c Rewrite & optimize autoload generation logic
Now includes package autoloads (which allows us to shed some fat from
various module configs, but that'll come later).
2018-05-18 01:09:14 +02:00
82f9fb7027 Optimize package management commands
Effectively halving run time on package install, update and autoremove
commands.
2018-05-18 01:08:28 +02:00
e2f99a8c24 Load core-lib sooner 2018-05-17 22:44:20 +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
4f9cb60e07 Start server sooner 2018-05-17 15:29:54 +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
9b0dbe20b0 doom//refresh-packages -> doom//reload-packages (consistency) 2018-05-16 18:26:56 +02:00
a1e49d174a Exclude {packages,doctor}.el from make compile
These two files shouldn't be byte-compiled. Until now it was expected
that you'd include a no-byte-compile: t header in these files. This is
more convenient.
2018-05-16 18:13:07 +02:00
673d3ed147 Prevent duplicate entries in doom-auto-minor-mode-alist 2018-05-16 13:14:46 +02:00
262b2f957b Fix associate! not enabling minor modes for :files/:modes/:when
Fixes #585
2018-05-16 13:14:46 +02:00
377e8a7b3c Refactor doom-initialize; error handling for faulty autoloads 2018-05-16 10:50:01 +02:00
3e6d7f174a Optimize make autoloads & improve path expansion
Make autoloads will expand the include paths of Doom autoload cookies.
This fixes an issue where paths were expanded to include a file
extension, bypassing the benefits of byte-compilation.
2018-05-16 10:50:01 +02:00
b4a7e5348a Autoload smartparens commands
Turns out I *do* need these!
2018-05-16 00:58:04 +02:00
980f5e470b Fix edge case where package autoloads would break startup
Particularly in the case of gh loading eieio and marshal.
2018-05-16 00:57:31 +02:00
e7a1e0b4a2 Improve interactive package management support 2018-05-16 00:11:14 +02:00
595109209a Fix doom//reload & optimize make all task 2018-05-16 00:11:14 +02:00
1e004a5638 Change undo-tree deferral to before switch buffer 2018-05-16 00:11:14 +02:00
9aa346f185 Make packages! accept list of package names (non lists)
This convenience macro lets you specify multiple packages with one
block, e.g.

  (packages! rtags ivy-rtags glsl-mode)

Each entry can be a full recipe.

  (packages! (rtags :disable t) (glsl-mode :recipe (...)))
2018-05-16 00:11:14 +02:00
0dfe1bc3d5 Allow chained package!'s
This allows users to disable one master package, thus disabling all its
children. e.g. Disable irony, then irony-eldoc, flycheck-irony,
company-irony and company-irony-c-headers will be disabled too.
2018-05-16 00:11:14 +02:00
09ecce0073 Fix package! :disable not disabling packages 2018-05-16 00:11:14 +02:00
b6813393d8 Remove custom helpful pretty-printer; default is superior 2018-05-16 00:11:14 +02:00
4734d55edc Revert smartparens deferral until first before-switch-buffer 2018-05-15 22:19:37 +02:00
18e6a6b1db Include package autoloads in doom-autoloads-file
This offloads some of the work Doom has to do creating
`doom-packages-file` onto `make autoloads`. This closely mimics the
package-quickstart-refresh functionality in Emacs 27+, but is more
specialized.

This means package autoloads are now loaded on every startup.

Many :mode, :interpreter, and :commands declarations in def-package!
blocks are made redundant by this and will be cleaned up soon.
2018-05-15 22:17:43 +02:00
8428a7a4ef Autoload smartparens library 2018-05-15 22:07:44 +02:00