Commit Graph

3786 Commits

Author SHA1 Message Date
Henrik Lissner
bb5ff21203
Remove redundant bookmark-save-flag setting
Its default value is `t`
2019-10-05 20:20:30 -04:00
Henrik Lissner
eae45e664b
doom-load-envvars-file: split-string->parse-colon-path 2019-10-05 13:00:06 -04:00
Henrik Lissner
297728bf74
Generalize doom-file-cookie-p
And move it to doom-file-cookie-p for anyone to use.
2019-10-04 22:42:53 -04:00
Henrik Lissner
d297dc6934
Minor refactor & comment revision across the board 2019-10-03 23:33:59 -04:00
Maximiliano
dea5d84069 Add more api demos (#1845)
* Added function Demos
* Added use-package demos
* Some corrections
* Fix duplicated use-package! type
2019-10-03 14:51:08 -04:00
Henrik Lissner
ed96d60e2c
Add comments for undo-tree advice
Describes why we try to compress undo-tree history data. I'm aware that
undo-tree-auto-save-history is disabled, but that may change in the near
future.
2019-10-03 12:04:54 -04:00
Henrik Lissner
03f6b3e77c
Consolidate warnings in use-package-hook!'s docstring
Folks commonly abuse this macro. I'd rather they don't, unless they know
exactly what they're doing.
2019-10-01 17:41:25 -04:00
Andrew Whatson
aa087e3af2 Experimental fixes for undo-tree
Increase `undo-limit`, `undo-strong-limit` and `undo-outer-limit` by a
factor of ten, which should prevent emacs from prematurely truncating
the undo history and corrupting the tree.

Restore `undo-tree-auto-save-history` which was disabled to avoid
exacerbating the undo history truncation.

Change the `undo-tree` recipe to grab the latest version from the
maintainer's repostiory instead of the outdated ELPA version.

Restore `undo-tree-enable-undo-in-region` which should be fixed in the
latest version of `undo-tree`.
2019-10-01 22:37:18 +10:00
Henrik Lissner
018fc8318d
cli/env: ignore TERM envvar 2019-09-30 16:47:32 -04:00
Henrik Lissner
c080ae8c9f
Only disable smartparens in replace mode if it is enabled
Prevents an issue where smartparens would re-enable itself, even when it
has been disabled by the user.
2019-09-30 14:58:34 -04:00
Henrik Lissner
67617254bc
Optimize save-place caching
By reducing its limit from 200 to 100 (its default is 400) and by *not*
prettifying its cache file (pp is much more expensive than prin1).
2019-09-28 12:47:20 -04:00
Henrik Lissner
4200e2e6d9
Merge pull request #1829 from UndeadKernel/feature-session_files
doom/core: avoid the litter of session.* files
2019-09-28 12:46:30 -04:00
Undead Kernel
a3d79dcfa5 doom/core: avoid the litter of session.* files
When the  x-window system commands emacs to quit, emacs saves a session in
`.emacs.d/session.*` by default. There is no easy way to change the save
path. This commit overwrites the function responsible for creating the session
file name. We set the session file to reside in `doom-cache-dir`.
2019-09-28 15:22:40 +02:00
Henrik Lissner
38e445afe7
Fix #1831: typo & extra args in doom/toggle-narrow-buffer 2019-09-27 11:34:21 -04:00
Henrik Lissner
4a8cef56ea
Fix doom/info omitting flags on some modules 2019-09-26 21:57:55 -04:00
Henrik Lissner
45240699e0
Remove doom-elpa-dir variable
And just use package-user-dir. No need for two variable when one will
do.
2019-09-26 14:26:47 -04:00
Henrik Lissner
22e3dfa677
Update doom/reload-env
To use `doom env` instead of `doom env refresh` (which is deprecated)
2019-09-26 14:26:47 -04:00
Sean Farley
686e020287 cli: add documentation string about new flags 2019-09-22 14:34:40 -07:00
Sean Farley
85ea924595 cli: fix wrong argument being sent to doom-upgrade
In 84837fa0d, a new argument was added before the timeout arg which
broken this flag.
2019-09-22 14:34:22 -07:00
Henrik Lissner
497fd08af7
Remove 'doom patch-macos' command
'doom env' has long since replaced it. Nobody should be using
patch-macos anymore.
2019-09-22 12:00:22 -04:00
Henrik Lissner
342d7f8f12
Minor reformatting & comment revision 2019-09-22 11:59:53 -04:00
Henrik Lissner
615e632477
Reformat custom use-package keyword config 2019-09-20 23:55:50 -04:00
Henrik Lissner
e10cd8cf2e
Insult byte-compiler's mom
Yeah, that shut him up.
2019-09-20 23:10:53 -04:00
Henrik Lissner
5f7add8360
Update doom/reload-{theme,font}
To reflect changes introduced in 17174e143
2019-09-20 19:52:55 -04:00
Henrik Lissner
17174e1437
Improve font/theme init for daemon sessions 2019-09-20 19:47:42 -04:00
Henrik Lissner
ed1943ba0a
Install buttercup through straight for tests 2019-09-20 18:15:25 -04:00
Henrik Lissner
abc9b9a84f
Apply fonts to all existing frames
As well as all future frames.
2019-09-20 18:14:23 -04:00
Henrik Lissner
1aaf229473
Silence byte-compiler warning from better-jumper
At least until gilbertw1/better-jumper#2 is merged.
2019-09-20 17:18:16 -04:00
Henrik Lissner
f03eb67314
Fix 'doom rebuild' generating broken autoloads
Causes errors about being unable to find general.el
2019-09-20 01:23:58 -04:00
Henrik Lissner
ac276bcd3c
Correct eldoc signature for {add,remove}-hook! 2019-09-19 13:01:20 -04:00
Henrik Lissner
ac87e3d517
Merge pull request #1784 from flatwhatson/many-faces
Fix the multi-face form of custom-set-faces!
2019-09-15 01:43:56 -04:00
Henrik Lissner
fff4968da9
Change how doom/info lists private packages 2019-09-14 18:27:58 -04:00
Henrik Lissner
c8cd94a5d2
Add window-system & daemonp props to 'doom info' 2019-09-14 18:27:58 -04:00
Andrew Whatson
f23a833f31 Fix the multi-face form of custom-set-faces! 2019-09-15 02:09:58 +10:00
Henrik Lissner
f9190c08bf
Remove unused argument in doom/narrow-buffer-indirectly 2019-09-14 01:55:53 -04:00
Henrik Lissner
6bef031e25
Bind SPC b - to doom/toggle-narrow-buffer 2019-09-14 01:55:16 -04:00
Henrik Lissner
4c0eb989fb
Fix duplicate paths in initial input for doom/save-session
Forgot to do this in 3e3808aa8
2019-09-13 22:00:34 -04:00
Henrik Lissner
2d365619cd
General refactor & cleanup, across the board 2019-09-13 22:00:34 -04:00
Henrik Lissner
31ccd9be78
Replace vestigial references to def-package!
def-package! is deprecated and is replaced with use-package! to reduce
confusion about its purpose and connection to use-package.
2019-09-13 22:00:34 -04:00
Henrik Lissner
8ad8b5d8ad
Make narrow/widen commands incremental
Doom's narrow/widen commands will now narrow/widen incrementally (using
indirect buffer clones). If the prefix arg is passed to the widen
command, kill all indirect buffers and widen the parent buffer.
2019-09-13 01:58:27 -04:00
Henrik Lissner
5e6c2205b8
Bind to zn/zN to new narrow/widen (indirect) commands 2019-09-13 00:28:08 -04:00
Henrik Lissner
18329fdeaf
Add switch docs in update & purge commands 2019-09-12 17:25:54 -04:00
Henrik Lissner
84837fa0d6
Add --threads option to 'doom update' #1736 2019-09-12 17:25:54 -04:00
Henrik Lissner
3e3808aa8d
Fix duplicate paths in initial input for doom/load-session 2019-09-12 17:25:54 -04:00
Henrik Lissner
ab954439e8
Label 'doom env' errors as warnings
Because they can usually be ignored.
2019-09-12 17:25:54 -04:00
Henrik Lissner
5caa6add5c
Make 'doom upgrade' respect -y/--yes switches 2019-09-12 17:25:54 -04:00
Henrik Lissner
4fda7cd287
Don't auto-purge ELPA packages on 'doom refresh'
...or 'doom purge', without the -e or --elpa switches (or --all).
2019-09-09 23:04:07 -04:00
Henrik Lissner
76e4c8a1cd
Use personal mirror for so-long package #1707
Until so-long is published to ELPA (if ever), we're now using my
personal mirror for so-long. Why not git.savannah.nongnu.org instead?
Because it runs on a potato too.
2019-09-09 15:44:09 -04:00
Henrik Lissner
9d775ca798
Autoload format library
If you byte-compile your config, the expanded forms of this library's
macros (like print! or format!) will use internal functions that aren't
autoloaded (like `doom--format`, mentioned in #1768), causing
void-function errors.
2019-09-09 13:59:13 -04:00
Henrik Lissner
4045827d61
Mention doom env's -o switch in envvar file header 2019-09-09 13:51:36 -04:00
Henrik Lissner
51e950cc5c
Display absolute paths in 'doom env' output
To make it clearer where the envvar file is saved to.
2019-09-09 13:44:12 -04:00
Henrik Lissner
ec81fc30a4
Minor correction to comment 2019-09-08 20:56:50 -04:00
Henrik Lissner
a44e9153d3
Fix #1764: 'doom autoload' generating broken autoloads.pkg.el
Due to missing straight state that is properly initialized for 'doom
refresh' (by doom-packages-install), but not for 'doom autoloads'.
2019-09-08 20:52:30 -04:00
Henrik Lissner
d308cedf95
Update help output for 'doom install' 2019-09-08 20:41:22 -04:00
Henrik Lissner
4bc65a3f78
Prevent C-c C-p sandbox from loading private modules
And don't change doom-private-dir, as it isn't necessary and it affects
the purity of the test environment.
2019-09-06 15:37:40 -04:00
Henrik Lissner
280a2407ab
Fix doom-load-envvars-file
A former regexp consumed the first letter of each environment variable's
name.
2019-09-06 14:17:34 -04:00
Henrik Lissner
29055ae6a3
Disable projectile-{ag,ripgrep}
Emit warnings for commands that won't work, as is, and that Doom
already provides a better alternative for.
2019-09-06 14:17:34 -04:00
Henrik Lissner
3b7711420f
General comment revision & cleanup 2019-09-06 00:25:35 -04:00
Henrik Lissner
d559377534
Fix xclip exclusion on linux
Due to unintentionally inverted condition
2019-09-06 00:17:02 -04:00
Henrik Lissner
d665c7173a
Remove esup
Because esup is fundamentally incompatible with Doom, we are removing
it. Hopefully we can replace it later down the road.
2019-09-06 00:15:13 -04:00
Henrik Lissner
c0d2ab331e
Remove command-log-mode
This isn't vital enough a package to be included in core. Emacs already
provides view-lossage, and there are other, better packages for
displaying your keybinds as you type.

Even one that I've been working on (with special evil support):
https://github.com/hlissner/doom-emacs-private/blob/master/lisp/keycast.el
2019-09-06 00:13:40 -04:00
Henrik Lissner
f6b8807e83
Add -o option to 'doom env'
Now you can output envvar files where ever you like.
2019-09-05 14:20:50 -04:00
Henrik Lissner
9f08d11908
Also delete autoloads.pkgs.el on 'doom upgrade' 2019-09-05 14:06:52 -04:00
Henrik Lissner
6c4f4a9d9d
Mac users: command = super, option = meta
Apparently these have different defaults on emacs-mac, so we set these
to keep them consistent.
2019-09-05 13:11:22 -04:00
Henrik Lissner
cbe05e6df4
Soften formatting rules for envvar files
doom-load-envvar-file would fail if there weren't two newlines
indicating "the start of the envvar list", or if envvars were commented
out/were padded with whitespace. These rules have been relaxed.
2019-09-05 13:10:21 -04:00
Henrik Lissner
44ef61a7f7
Fix doom/help-packages 2019-09-03 16:53:41 -04:00
Henrik Lissner
005647fd64
Fix wrong-type-arg package-desc error on 'doom refresh' 2019-09-03 14:07:09 -04:00
Henrik Lissner
d9b6bf9438
Add doom-core-dir to load-path for child test processes 2019-09-03 01:53:29 -04:00
Henrik Lissner
338b72b898
Refactor test launcher 2019-09-03 01:47:32 -04:00
Henrik Lissner
81ee250c09
Minor refactor & revision across the board 2019-09-03 00:59:46 -04:00
Henrik Lissner
4ce86b06d4
Use more ambiguous reset target when normalizing repos
Possibly addresses "ambiguous target" errors during 'doom update'.

Might address #1738 and #1721
2019-09-03 00:59:46 -04:00
Henrik Lissner
62b089ba36
Refactor core & core-lib
And make their tests pass
2019-09-03 00:59:46 -04:00
Henrik Lissner
059ede53b6
Update all unit tests
To meet changes introduced from the straight branch merge.
2019-09-03 00:59:46 -04:00
Henrik Lissner
52b6c51914
Read packages.el files directly for doom-info
This is a little more accurate and affects less state of the current
session.
2019-09-03 00:38:29 -04:00
Henrik Lissner
65d3406e27
Fix various errors during 'doom compile' 2019-09-03 00:38:04 -04:00
Henrik Lissner
4b736bef68
Introduce doom-interactive-mode
As soft inverse alias for noninteractive; this makes it easier to unit
test functionality that depends on the session type.
2019-09-03 00:37:30 -04:00
Henrik Lissner
91b27bdccc
Remove doom--straight-use-local-dir-a advice
Unnecessary now that straight-base-dir exists.
2019-09-02 22:51:20 -04:00
Henrik Lissner
49fb34d1c1
Fix 'doom purge' trying to purge site packages
It should only manage packages installed in
doom-elpa-dir (~/.emacs.d/.local/elpa, by default).
2019-09-02 13:12:57 -04:00
Henrik Lissner
cd25abd7d2
Merge pull request #1735 from seanfarley/smf/add-timeout-arg
cli/upgrade: add timeout flag
2019-09-02 00:45:13 -04:00
Henrik Lissner
d1a299b9f5
Fix #1719: sole :when in def-project-mode! 2019-08-29 20:05:34 -04:00
Sean Farley
c55676d221 cli/upgrade: add timeout flag
Since there is a lot of logic in `bin/doom upgrade` than just running
two commands, I thought we should also add a timeout flag just like
`update` has.
2019-08-29 17:03:42 -07:00
Henrik Lissner
3a10e948aa
Fix #1718: void-function set-fontset-font
Occurs when Emacs is built without X server/GUI support.
2019-08-29 18:52:33 -04:00
Henrik Lissner
19899dac82
Fix inverted condition in package-archives assembly 2019-08-28 22:08:13 -04:00
Henrik Lissner
75fe17950e
Refactor doom-initialize-packages
Make it reinitialize more if FORCE-P is provided or doom-init-packages-p
is nil.
2019-08-28 16:46:39 -04:00
Henrik Lissner
7727920629
Rewrite doom/reload 2019-08-28 15:19:58 -04:00
Henrik Lissner
851b51357e
Fix #1712, #1719: project minor modes not activating 2019-08-28 15:17:40 -04:00
Henrik Lissner
464ebabc2a
Add warning to doom/reload (SPC h R) 2019-08-28 12:40:59 -04:00
Henrik Lissner
8cb1fe1874
Add setq! macro
A convenient alternative to setq where you don't have to care about load
order (no need for after! blocks).
2019-08-27 00:08:22 -04:00
Henrik Lissner
aad0b2f842
Change how unit tests are set up and run
Moves init.test.el to core/test/init.el and initializes the test
environment from within the current session, rather than through a bash
script middle man.

TODO: don't buffer the unit test results
2019-08-27 00:07:01 -04:00
Henrik Lissner
8766499b0d
Fix some file permissions errors
Occurs when deferred packages are loaded while in an unreadable or
non-existent directory.
2019-08-27 00:05:12 -04:00
Henrik Lissner
a5096ff86b
Add ELPA packages to doom info output 2019-08-27 00:05:12 -04:00
Henrik Lissner
ca574c60b0
Fix pushnew! inserting duplicates of complex types
Because it was using #'eql for comparison, which is insufficient for
compound datatypes, like strings.
2019-08-27 00:05:12 -04:00
Henrik Lissner
a567e2f85e
Remove pushmany! macro
It is redundant with prependq!, appendq! and pushnew!.
2019-08-27 00:05:12 -04:00
Henrik Lissner
8ac1e1a781
Refactor doom init process
- Refactors doom-initialize
- Moves doom-initialize-modules call to init.el, to more easily isolate
  it during unit testing.
2019-08-27 00:05:12 -04:00
Henrik Lissner
465122320d
Byte-compile Doom in the correct order
That is, modules should be byte-compiled in the order they're in in your
doom! block.
2019-08-23 20:30:39 -04:00
Henrik Lissner
205bf453de
Fix void-function doom--resolve-path-forms error
By using project-file-exists-p! macro instead.
2019-08-23 01:56:43 -04:00
Henrik Lissner
9d0966e94a
Forcibly refresh doom after 'doom upgrade'
Ensures autoloads files are regenerated.
2019-08-23 01:56:43 -04:00
Henrik Lissner
025a4c3d26
Properly reset packages on 'doom update'
Prevents some cases of infinite hanging while updating certain packages.
2019-08-22 16:13:23 -04:00
Henrik Lissner
e502031412
Fix 'doom purge' not regrafting all repos on first use 2019-08-22 16:12:22 -04:00
Henrik Lissner
aff5cc5b28
Move file-exists-p! to core/autoload/files.el 2019-08-22 13:03:12 -04:00