Commit graph

677 commits

Author SHA1 Message Date
Henrik Lissner
9011593e38
feature/workspaces: fix tests 2018-05-25 00:50:52 +02:00
Henrik Lissner
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
Henrik Lissner
e8653d0628
feature/file-templates: revise doom module README.org file template 2018-05-24 22:34:37 +02:00
Henrik Lissner
b806ff937c
feature/file-templates: rewrite & fix wrong-number-of-args errors #602 2018-05-24 22:34:37 +02:00
Henrik Lissner
0b48575c14
Remove def-hydra! macro alias
Causes byte-compilation issues and the alias is unnecessary.
2018-05-24 22:03:19 +02:00
Henrik Lissner
f058505306
New bin/doom (eventual replacement for make)
This commit adds bin/doom, which acts as the middle man that make once
was (and will stay for a while, though the documentation will shift away
from using it). It does everything the previous make interface did, but
is faster and more flexible. bin/doom should eventually replace the
makefile.

bin/doom also makes it easier to run Doom outside of ~/.emacs.d and
~/.doom.d with, for example:

  bin/doom run -p ~/.other.doom.d/ -e ~/.other.emacs.d

bin/doom.cmd is included for Windows users, but I don't recommend using
it yet. It hasn't been tested nor have I ever written a batch script
before.

Also update init.example.el with new defaults.
2018-05-21 01:38:17 +02:00
Henrik Lissner
5abdeed8fd
feature/file-templates: rewrite without autoinsert
autoinsert was more trouble than it was worth, so I reinvented a better
wheel.
2018-05-18 01:47:03 +02:00
Henrik Lissner
80adb9c1f6
General refactor for consistency & idempotency
Also updated comments
2018-05-18 01:26:41 +02:00
Henrik Lissner
fa6a99f963
feature/evil: fix */# keybinds entering operator mode 2018-05-17 00:54:29 +02:00
Henrik Lissner
45c21a5a83
Move :feature services => :tools prodigy 2018-05-16 22:41:21 +02:00
Henrik Lissner
d32e500f97
feature/file-template: refactor for idempotency 2018-05-16 18:26:08 +02:00
Henrik Lissner
06f7aa2881
feature/file-templates: fix doom module templates
There were cases where certain Doom module templates weren't correctly
expanded (when your private directory is symlinked).
2018-05-16 18:24:52 +02:00
Henrik Lissner
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
Henrik Lissner
bb88411cc9
General minor refactor & docstring fixes 2018-05-14 20:55:55 +02:00
Henrik Lissner
67dab98859
Improve idempotency of Doom config (in case of reloading) 2018-05-14 20:54:58 +02:00
Henrik Lissner
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
Henrik Lissner
a631c10d05
Exploit new :defer input|buffer across various modules 2018-05-14 20:45:47 +02:00
Henrik Lissner
866030bdc6
feature/eval: reorganize; move settings into init.el 2018-05-14 13:05:03 +02:00
Henrik Lissner
83118dc65c
Move feature/popup => ui/popup
And move settings to ui/popup/init.el
2018-05-14 13:05:03 +02:00
Henrik Lissner
0bd88b8414
Add restart-emacs package & commands 2018-05-14 13:05:03 +02:00
Henrik Lissner
1b6abf47ef
feature/lookup: fix counsel-dash not loading; use eww for docsets 2018-05-14 13:05:03 +02:00
Henrik Lissner
587d69dda0
feature/evil: inline inlined function 2018-05-14 13:05:03 +02:00
Henrik Lissner
2bbee08105
feature/lookup: new command +lookup/file to replace gf 2018-05-14 13:05:03 +02:00
Henrik Lissner
57f383ef76
General revision of docstrings 2018-05-14 13:05:03 +02:00
Henrik Lissner
7630394210
feature/lookup: replace devdocs packages with devdocs-lookup
Improved search; now downloads index from devdocs.io and lets you
fuzzy-search its listing with ivy/helm.
2018-05-14 13:05:03 +02:00
Henrik Lissner
52cdb0bd83
Remove doom-fringe-size; set default fringe in :ui doom
There was no way to customize doom-fringe-size. Better to customize
fringes by using fringe-mode, {left,right}-fringe-width or
set-window-fringes directly.
2018-05-11 10:00:23 +02:00
Henrik Lissner
5426fe072c
feature/workspaces: autoload faces 2018-05-10 21:09:54 +02:00
Henrik Lissner
e33a3b2c63
feature/snippets: add doctor.el 2018-05-09 12:38:20 +02:00
Henrik Lissner
30e0ab6aef
feature/syntax-checker: new +childframe flag for popups 2018-05-09 12:17:23 +02:00
Henrik Lissner
1be5df7e63
feature/popup: revise docstring for minor modes 2018-05-08 17:36:10 +02:00
Henrik Lissner
18b48cc841
feature/snippets: minor refactor 2018-05-08 01:01:21 +02:00
Henrik Lissner
59486a3652
feature/popup: slightly larger help popups 2018-05-07 22:39:16 +02:00
Henrik Lissner
c94b7a343a
feature/popup: default rules for Customize & undo-tree 2018-05-07 22:39:09 +02:00
Henrik Lissner
fe2ed9b6f7
feature/spellcheck: conditionally spellcheck on load 2018-05-07 22:36:28 +02:00
Henrik Lissner
f943e3442c
feature/evil: comment fix #519 2018-05-07 21:57:00 +02:00
Henrik Lissner
8451c4519c
feature/evil: update docstring of +evil/reselect-paste 2018-05-07 19:31:13 +02:00
Henrik Lissner
afb92a8c7f
feature/syntax-checker: redesign tooltip support
Use flycheck-posframe in GUI Emacs (26+) and flycheck-popup-tip
everywhere else.
2018-05-07 19:26:31 +02:00
Henrik Lissner
7c1bb8f658
config/default: add & bind +evil/paste-preserve-register (gp) 2018-05-07 19:26:31 +02:00
Henrik Lissner
1fc15e41c5
feature/evil: minor reformatting 2018-05-05 07:49:20 +02:00
Henrik Lissner
f319034c5a
feature/evil: refactor multiple-cursors compat config 2018-05-04 15:12:45 +02:00
Henrik Lissner
27153d128c
feature/evil: remove evil-snipe-disabled-modes
These have been set upstream.
2018-05-04 15:12:45 +02:00
Henrik Lissner
c05b16ee6f
Minor refactor/reformatting 2018-05-03 18:03:13 +02:00
Henrik Lissner
26eb33e36e
feature/evil: fix :vs/:sp not focusing split w/ a file argument #552 2018-04-26 22:27:08 -04:00
Henrik Lissner
776886a0a4
feature/workspaces: restore missing +workspace/{save,load} commands 2018-04-26 05:10:58 -04:00
Henrik Lissner
b92a83752a
feature/lookup: fix :lookup => :documentation setting 2018-04-23 06:06:04 -04:00
Henrik Lissner
4b5e7c1128
feature/popup: add +popup--inhibit-select letvar 2018-04-23 01:21:29 -04:00
Henrik Lissner
fbfba93775
feature/popup: add company hack; don't select doc buffer popup 2018-04-23 01:21:07 -04:00
Henrik Lissner
7579110534
feature/lookup: fix lookup commands skipping to project text search 2018-04-23 01:19:50 -04:00
Henrik Lissner
6ba9259735
feature/lookup: support multiple lookup functions & minor modes in :lookup 2018-04-22 23:55:49 -04:00
Henrik Lissner
a5877139cd
feature/workspaces: persp-mode integration for eshell, compile & magit-status 2018-04-21 21:04:34 -04:00