Commit Graph

3855 Commits

Author SHA1 Message Date
Henrik Lissner
6c31968a46
cli/doctor: fix font checks 2019-11-09 20:32:48 -05:00
Henrik Lissner
5c3f7d648d
cli/doctor: fix void-variable font-dest error
...when a font is missing.
2019-11-09 20:28:40 -05:00
Henrik Lissner
2158b7bdeb
Fix dir! & file! tests 2019-11-09 20:25:55 -05:00
Henrik Lissner
967e32c084
Ignore doom-debug-mode in quiet! tests 2019-11-09 17:28:39 -05:00
Henrik Lissner
31f1873aaa
Fix tests 2019-11-09 17:03:47 -05:00
Henrik Lissner
b3b0af8a35
Complain if autoload libs fail to load 2019-11-09 17:00:33 -05:00
Henrik Lissner
a55b5a4514
Fix void-function doom-sh error in 'doom upgrade' #2034 2019-11-09 11:06:06 -05:00
Henrik Lissner
cc1bbe0b7e
core-cli: add doom-cli constructor 2019-11-09 02:23:58 -05:00
Henrik Lissner
135e7ffc89
Load seq in core-cli 2019-11-08 17:48:16 -05:00
Henrik Lissner
3896b994b5
Remove double-negative filesize from 'doom purge' 2019-11-08 17:30:21 -05:00
Henrik Lissner
5c459e75f8
Fix 'doom refresh' not seeing -f/--force 2019-11-08 16:57:25 -05:00
Henrik Lissner
4ce153519c
Refactor out map.el dependency
Since map-put appears to be deprecated on Emacs 27
2019-11-08 16:57:19 -05:00
Henrik Lissner
d20d664f84
Update 'doom install' to reflect recent changes #2033 2019-11-08 16:39:48 -05:00
Henrik Lissner
35152fda67
Fix 'doom env -c'
Throwing "I don't understand 'doom env -c'" errors
2019-11-08 16:20:43 -05:00
Henrik Lissner
ee2c1e384c
Fix void-variable doom-module-dirs error from 'doom clean' 2019-11-08 16:19:29 -05:00
Henrik Lissner
d099fac2b9
Fix core & core-lib tests 2019-11-08 16:02:07 -05:00
Henrik Lissner
d683effd23
Recognize single-character envvars in doom-load-envvars-file
And preserve insertion order for process-environment's new value.
2019-11-08 16:02:06 -05:00
Henrik Lissner
d78d584fdf
Demote autoload errors to warnings 2019-11-08 16:02:06 -05:00
Henrik Lissner
9ef6ccb7cd
Refactor doom-run-all-startup-hooks-h 2019-11-08 16:02:06 -05:00
Henrik Lissner
44d5e097c9
shell-command-to-string -> doom-call-process #1887
Minor optimization to remove a layer of indirection when starting
processes.
2019-11-08 16:02:06 -05:00
Henrik Lissner
873fc5c0db
Rewrite core-cli
Highlights:
- 'doom purge' now purges builds, elpa packages, and repos by default.
  Regrafting repos is now opt-in with the -g/--regraft switches.
  Negation flags have been added for elpa/repos: -e/--no-elpa and
  -r/--no-repos.
- Removed 'doom rebuild' (it is now just 'doom build' or 'doom b').
- Removed 'doom build's -f flag, this is now the default. Added the -r
  flag instead, which only builds packages that need rebuilding.
- 'doom update' now updates packages synchronously, but produces more
  informative output about the updating process.
- Straight can now prompt in batch mode, which resolves a lot of issues
  with 'doom update' (and 'doom upgrade') freezing indefinitely or
  throwing repo branch errors.
- 'bin/doom's switches are now positional. Switches aimed at `bin/doom`
  must precede any subcommands. e.g.
    Do: 'doom -yd upgrade'
    Don't do: 'doom upgrade -yd'
- Moved 'doom doctor' from bin/doom-doctor to core/cli/doctor, and
  integrated core/doctor.el into it, as to avoid naming conflicts
  between it and Emacs doctor.
- The defcli! macro now has a special syntax for declaring flags, their
  arguments and descriptions.

Addresses #1981, #1925, #1816, #1721, #1322
2019-11-08 16:02:06 -05:00
Henrik Lissner
99cd52e70f
💥 Drop Emacs 25.x support
Emacs 26.1 is Doom's new minimum supported version

Closes #2026
2019-11-08 16:02:06 -05:00
Henrik Lissner
8db3b7dca7
Always load package autoloads file & demote errors
Indirectly addresses #2010
2019-11-04 17:21:56 -05:00
Henrik Lissner
2bf74158fd
Minor refactors across the board 2019-11-04 03:37:54 -05:00
Henrik Lissner
633fd7c95f
Exclude *.org files from doom/help-packages{,-config} 2019-11-03 15:43:18 -05:00
Henrik Lissner
2519d12ae3
Don't trigger so-long in noninteractive sessions 2019-11-03 13:06:44 -05:00
Henrik Lissner
cae8c3f145
Refresh package.el first time package-install is used 2019-11-02 21:55:40 -04:00
Henrik Lissner
9fbfc44f73
Fix doom-create-missing-directories-h
Hanging variable reference caused a void-variable error.
2019-11-02 14:01:19 -04:00
Henrik Lissner
e1d62f5d12
Don't trigger create-missing-directories on remotes
Also: minor refactor of the hook.
2019-11-02 13:25:43 -04:00
Henrik Lissner
7142b4aa0f
Make plist-put! variadic
And capable of modifying non-symbols in-place.
2019-11-02 00:02:54 -04:00
Henrik Lissner
7b9991711a
defvar->defconst for dir vars & expand DIR envvars
- Use defconst so that we can reload core.el if these variables change.
- Expand DIR envvars to ensure their correctness
2019-11-01 15:12:12 -04:00
Henrik Lissner
7a10a68f4e
Merge pull request #1998 from rgrinberg/fix-autoload-cookie
Fix autoload cookie for doom/help-search-loaded-files
2019-11-01 13:09:28 -04:00
Henrik Lissner
7759130ba3
Merge pull request #2001 from yuhan0/fix-help-buttons
Fix buttons in doom/help-packages
2019-11-01 13:08:05 -04:00
yuhan0
ec4a030370 Fix buttons in doom/help-packages 2019-11-01 20:43:22 +08:00
Rudi Grinberg
7900cef7da Follow symlinks when searching autoloads
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2019-11-01 10:42:39 +09:00
Rudi Grinberg
0e2c642a86 Fix autoload cookie for doom/help-search-loaded-files
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2019-11-01 10:30:56 +09:00
Henrik Lissner
e0cd71e25f
Complain louder about deprecated def-package! macros
They will be removed soon.
2019-10-31 14:35:24 -04:00
Henrik Lissner
d407b3355a
Fix nonsensical error if autoloads are missing
`signal` treats its second argument like a list. Passing it a string
make it spew out the message as a list of character codes.
2019-10-30 00:03:39 -04:00
Henrik Lissner
90d9fd65b7
Fix void-function if-let on startup #1982 2019-10-30 00:03:39 -04:00
Henrik Lissner
63dfd298ca
Append slash to DOOMLOCALDIR & DOOMDIR
If needed.
2019-10-29 22:36:51 -04:00
Henrik Lissner
2a6b1a1fb6
Unset projectile-git-submodule-command if tr is unavailable
Otherwise windows users can't use projectile in projects with
submodules.
2019-10-29 11:36:46 -04:00
Henrik Lissner
6549a4f982
Fix pre-existing font frame parameter being overwritten 2019-10-29 01:10:24 -04:00
Henrik Lissner
af69cd0840
Fix auto-revert occasionally prompting for confirmation 2019-10-28 23:23:13 -04:00
Henrik Lissner
b0ac9abfbf
Fix add-hook! for hooks that take arguments 2019-10-28 23:23:13 -04:00
Henrik Lissner
dca4015003
Fix void-variable themes error at startup
If lexical-binding isn't enabled (with ';; -*- lexical-binding: t; -*-'
at the top of your private config), custom-set-theme! and
custom-theme-set-faces! throw this error. Since these macros are
commonly used in user configs, where I can't police lexical-binding,
I've refactored it to not rely on it.
2019-10-27 14:27:29 -04:00
Henrik Lissner
d79904d51f
Fix custom-theme-set-faces with multiple themes 2019-10-27 14:21:52 -04:00
Bart Brouns
1adbd4e571 add confirmation message after loading a session from file 2019-10-27 14:12:41 +01:00
Henrik Lissner
bf8cc9b007
Improve font resizing commands
- doom/increase-font-size no longer resets the font when resizing back
  to 0 (causing an inelegant flash of the frame).
- doom/reset-font-size will now reset text-scale, as well, if it is
  being used.
- doom/*-font-size commands have been changed to only affect the current
  frame.
- doom-big-font-mode will now affect all frames (since minor modes can't
  be frame-local).
2019-10-26 23:44:29 -04:00
Henrik Lissner
c360f0dceb
Minor refactor & comment/docstring revision 2019-10-26 23:44:28 -04:00
Henrik Lissner
5b1dc3c63f
Support INSECURE envvar (again) 2019-10-26 23:44:28 -04:00