Commit Graph

6287 Commits

Author SHA1 Message Date
b21d575eac Init custom hooks on init-ui instead of post-init
Makes more sense to be on doom-init-ui-hook.
2018-06-14 03:36:46 +02:00
ac546220a4 Refactor core-editor def-package! blocks 2018-06-14 03:36:46 +02:00
5b78cf7ed6 tools/editorconfig: conform to name conventions
Renamed doom-editorconfig-mode-alist to +editorconfig-mode-alist
2018-06-14 03:36:46 +02:00
36171f5b33 Fix :after-call deferred packages not loading
If you open emacs with a file (emacs file.txt), the file is switched to
before the switch-buffer hooks are set up. However, many core packages
are hooked to those switch-buffer hooks (to load when they're first
triggered). They miss the boat and don't get loaded.

These packages are now hooked onto after-find-file as well (and
immediately), which will fire when a file is opened, before or after
initialization.

Fixes #680
2018-06-14 03:36:46 +02:00
69c6e0b8fb Add doom-get-package-alist
New function returns a list of (NAME . DESC) cons cells in the order
they were declared (in module packages.el files).

Fixes a load-order issue where autoloads from one package would depend
on the autoloads of another package, but was inserted into
doom-package-autoload-file *before* the depended package, causing
void-variable errors.

Also allows for a big refactor of the :plugins byte-compile target.
2018-06-14 03:36:46 +02:00
08a4701774 Fix case where private init.el has no doom! block
This shouldn't error out. It's better if Doom ran normally, just without
any of its modules activated.

Addresses issue mentioned in #681
2018-06-14 00:45:57 +02:00
1f07b37c9c Fix elusive back-to-top-level error
These occurred because of disruptive kill-buffer-hooks running when the
backtrace buffer was auto-killed by the popup cleanup system. No more!
2018-06-14 00:45:57 +02:00
933023d779 Minor reformatting & docstring revision in core.el 2018-06-13 22:16:08 +02:00
b6f9bc9675 Fix package manager not :ignore'ing packages 2018-06-13 22:15:08 +02:00
6a6652d394 lang/common-lisp: replace slime with sly
Also add sly server auto-start and cleanup hooks.
2018-06-13 22:14:22 +02:00
8889d5cc2b Add :lang common-lisp 2018-06-13 20:10:37 +02:00
eb254afd51 Fix doom doctor
Update doom loader to reflect recent changes.
2018-06-13 20:10:37 +02:00
6426da3533 Fix :hook modes for parinfer-mode 2018-06-13 16:53:44 +02:00
f74d595e17 Merge pull request #678 from ar1a/wakatime-interactive
Make +wakatime-init interactive
2018-06-13 16:53:09 +02:00
000dee7abf Upstream changes to wakatime 2018-06-13 09:50:09 +10:00
63a8c30765 Merge pull request #670 from ar1a/parinfer
:editor parinfer for lisp editing
2018-06-12 21:36:46 +02:00
5d79729c15 Move :editor to top; disable parinfer by default
And shorten post-comment.
2018-06-12 21:36:09 +02:00
63552338ec Conform editor/parinfer to Doom conventions
+ Use evil +everywhere flag for universal evil integration,
+ Use :hook instead of `add-hook!` and implicit lambda,
+ Fix path in header.
2018-06-12 21:34:47 +02:00
10f176d15e Merge pull request #679 from UndeadKernel/fix_pdf-pages-display
Fix: restore the correct display of current and total pages in PDFs
2018-06-12 21:08:03 +02:00
4c2107d595 Refactor doom-module-from-path
If PATH is omitted, use (FILE!); also use doom-keyword-intern.
2018-06-12 21:07:34 +02:00
64d354ae35 emacs/ediff: remove evil-ediff package
Evil+ediff integration was merged into evil-collection.
2018-06-12 21:07:34 +02:00
399591b951 Add :mindepth property to doom-files-in
+ don't error out if directory doesn't exist.
+ :depth now starts from 0, instead of 1
2018-06-12 21:07:34 +02:00
acbad5ca01 Add ALL-P parameter to doom-module-load-path
Allowing it to return path to *all* modules, whether or not they are
activated.
2018-06-12 21:07:34 +02:00
6dc413c044 Remove :latex-bibtex-{file,dir} settings
Setting a single variable is preferrable to using a setting to abstract
it.
2018-06-12 21:07:34 +02:00
99daa9bd43 Fix: restore the display of current and total pages in PDF docs
A refactoring spree introduced a bug by incorrectly making a symbol
a function. This fixes this.
2018-06-12 15:32:39 +02:00
a77a967299 Fix elusive 'already at top-level' error
I have hunted this bug on and off for nearly a year now. It would kill
processes randomly, move the point suddenly, and quit the active
minibuffer without warning.

The only clue it'd leave behind is an announcement in the minibuffer:
"Already at top-level".

Thanks to @UndeadKernel for the last piece of the puzzle!

Fixes #436
2018-06-12 14:13:12 +02:00
98d2a35a59 Compile plugins in the correct order
Compile order will affect some packages, so `bin/doom compile :plugins`
will now byte-compile plugins in the order they're declared in, but
after their dependencies.
2018-06-12 12:58:47 +02:00
c6324da59d Add force-p parameter to doom//refresh
Also force autoloads regeneration on doom upgrade.
2018-06-12 12:26:58 +02:00
77ac164651 Fix core libraries not loading
Caused because the load-path is reset to doom-site-load-path in
doom-initialize-packages, which was initialized before doom-core-dir was
added to it, so core-* libraries couldn't be found.
2018-06-12 12:18:21 +02:00
85591ca296 Move custom-file into local-dir (not etc-dir)
Makes more sense to put more vital files in local than etc or cache.
2018-06-12 12:17:33 +02:00
9ec0461162 Revert "Refactor def-package!"
This reverts commit f7a86ae281.

Turns out it's still needed when byte-compiling!
2018-06-12 01:58:06 +02:00
4425fdfca4 defvar -> defconst for dir vars 2018-06-12 01:48:09 +02:00
4c40195d40 Slightly better version check error 2018-06-12 01:47:43 +02:00
64e02e4232 Load core-packages in doom//run-tests 2018-06-12 01:45:52 +02:00
f7a86ae281 Refactor def-package!
It is no longer necessary to gate use-package calls with
:if/:when/:unless checks during byte-compilation. This was fixed
somewhere along the way.
2018-06-12 00:26:28 +02:00
fe6afa19a3 Add docstrings to FILE! & DIR! macros 2018-06-12 00:25:11 +02:00
1c3183b298 Remove space in backend labels during install
Minor reformatting. To be consistent with the backend transition labels
in doom//packages-autoremove.
2018-06-12 00:02:04 +02:00
72201fead5 Major refactor of package management API
Fixes issues where:

+ package!'s :disable property was ignored and def-package! wouldn't
  ignore disabled packages.
+ Certain quelpa packages were being removed/reinstalled infinitely
+ Improved flexibility of doom-get-packages (its docstring needs to be
  updated!)
2018-06-12 00:02:04 +02:00
0be2be5c82 Remove autoload/modules library
Move batch commands into core-dispatcher and doom//reload into
autoload/help. It will soon be renamed doom/reload.
2018-06-12 00:02:04 +02:00
0741c8851a Split core-packages into two (packages & modules)
+ Move doom-initialize et co into core.el
+ Lazy load core-packages
+ load! has been moved into core-lib
+ Added FILE! and DIR! macros
+ Fix package! not returning correct value when package is disabled
+ Remove :disabled support for def-package-hook! officially
2018-06-12 00:02:04 +02:00
f70c9ebb71 Fix void-symbol errors in compilation buffers
Occurs when :lang ruby is enabled, because the rspec-mode package
autoloads an advice, but not the advice function. Still, it seems silly
to do this advice before the package is loaded, so we disable it.
2018-06-11 14:21:35 +02:00
db45248adf Add yasnippet back to parinfer 2018-06-11 21:55:34 +10:00
b9a179eeed Make +wakatime-init interactive
Sometimes it doesn't prompt to decrypt gpg, etc etc. Regardless, I think
this should be interactive so it's easily re-initialized
2018-06-11 12:33:04 +10:00
3fec00a534 Swap from emacs-lisp-mode-map to parinfer-mode-map 2018-06-11 10:10:34 +10:00
d178d78b2b Move +parinfer to :editor parinfer 2018-06-11 10:09:37 +10:00
a25eff0189 delete-this-file: don't propagate deletion to vcs
Doom shouldn't assume the user always wants to stage the current
deletion after every delete.
2018-06-11 01:33:56 +02:00
4c8afef3c9 Merge pull request #673 from zaiste/add-binding-for-git-file-delete
bindings: magit | add `file-delete` as `SPC g x`
2018-06-11 01:33:07 +02:00
87ccdecd46 Autoload magit-file-delete 2018-06-11 01:06:41 +02:00
dd9f8d47af Fix infinite recursion in buffer switch hooks
Caused by advice functions trying to manipulate non-existent buffers
that were intended to be created after switching to them.
2018-06-11 00:39:55 +02:00
c8783f3291 ESC -> close treemacs for evil users 2018-06-11 00:11:20 +02:00