Commit Graph

3961 Commits

Author SHA1 Message Date
dd1dd6901f doom-directory-size: error if path doesn't exist 2019-11-10 04:29:53 -05:00
e252ee61e7 cli/doctor: fix HOME project root detection 2019-11-10 01:39:30 -05:00
962459e8ba cli/doctor: fix cache filesize checks
Closes #2041
2019-11-10 01:35:21 -05:00
17b874dedd Refactor doom-file-size
Change it throw an error if the file doesn't exist.
2019-11-10 01:32:58 -05:00
6c31968a46 cli/doctor: fix font checks 2019-11-09 20:32:48 -05:00
5c3f7d648d cli/doctor: fix void-variable font-dest error
...when a font is missing.
2019-11-09 20:28:40 -05:00
2158b7bdeb Fix dir! & file! tests 2019-11-09 20:25:55 -05:00
967e32c084 Ignore doom-debug-mode in quiet! tests 2019-11-09 17:28:39 -05:00
31f1873aaa Fix tests 2019-11-09 17:03:47 -05:00
b3b0af8a35 Complain if autoload libs fail to load 2019-11-09 17:00:33 -05:00
a55b5a4514 Fix void-function doom-sh error in 'doom upgrade' #2034 2019-11-09 11:06:06 -05:00
cc1bbe0b7e core-cli: add doom-cli constructor 2019-11-09 02:23:58 -05:00
135e7ffc89 Load seq in core-cli 2019-11-08 17:48:16 -05:00
3896b994b5 Remove double-negative filesize from 'doom purge' 2019-11-08 17:30:21 -05:00
5c459e75f8 Fix 'doom refresh' not seeing -f/--force 2019-11-08 16:57:25 -05:00
4ce153519c Refactor out map.el dependency
Since map-put appears to be deprecated on Emacs 27
2019-11-08 16:57:19 -05:00
d20d664f84 Update 'doom install' to reflect recent changes #2033 2019-11-08 16:39:48 -05:00
35152fda67 Fix 'doom env -c'
Throwing "I don't understand 'doom env -c'" errors
2019-11-08 16:20:43 -05:00
ee2c1e384c Fix void-variable doom-module-dirs error from 'doom clean' 2019-11-08 16:19:29 -05:00
d099fac2b9 Fix core & core-lib tests 2019-11-08 16:02:07 -05:00
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
d78d584fdf Demote autoload errors to warnings 2019-11-08 16:02:06 -05:00
9ef6ccb7cd Refactor doom-run-all-startup-hooks-h 2019-11-08 16:02:06 -05:00
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
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
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
8db3b7dca7 Always load package autoloads file & demote errors
Indirectly addresses #2010
2019-11-04 17:21:56 -05:00
2bf74158fd Minor refactors across the board 2019-11-04 03:37:54 -05:00
633fd7c95f Exclude *.org files from doom/help-packages{,-config} 2019-11-03 15:43:18 -05:00
2519d12ae3 Don't trigger so-long in noninteractive sessions 2019-11-03 13:06:44 -05:00
7a810d53a0 Consider current buffer's file when sudo-editing
If doom/sudo-find-file is invoked with a file that is equal
to the current buffer's file, kill that buffer since it is probably
not needed anymore.
2019-11-03 14:25:10 +01:00
cae8c3f145 Refresh package.el first time package-install is used 2019-11-02 21:55:40 -04:00
68e56025bc Fixed sudo edit on remote files
The previous implementation failed, if the
remote user was given only implicitly.
2019-11-03 02:22:52 +01:00
9fbfc44f73 Fix doom-create-missing-directories-h
Hanging variable reference caused a void-variable error.
2019-11-02 14:01:19 -04:00
e1d62f5d12 Don't trigger create-missing-directories on remotes
Also: minor refactor of the hook.
2019-11-02 13:25:43 -04:00
7142b4aa0f Make plist-put! variadic
And capable of modifying non-symbols in-place.
2019-11-02 00:02:54 -04:00
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
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
7759130ba3 Merge pull request #2001 from yuhan0/fix-help-buttons
Fix buttons in doom/help-packages
2019-11-01 13:08:05 -04:00
ec4a030370 Fix buttons in doom/help-packages 2019-11-01 20:43:22 +08:00
7900cef7da Follow symlinks when searching autoloads
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2019-11-01 10:42:39 +09:00
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
e0cd71e25f Complain louder about deprecated def-package! macros
They will be removed soon.
2019-10-31 14:35:24 -04:00
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
90d9fd65b7 Fix void-function if-let on startup #1982 2019-10-30 00:03:39 -04:00
63dfd298ca Append slash to DOOMLOCALDIR & DOOMDIR
If needed.
2019-10-29 22:36:51 -04:00
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
6549a4f982 Fix pre-existing font frame parameter being overwritten 2019-10-29 01:10:24 -04:00
af69cd0840 Fix auto-revert occasionally prompting for confirmation 2019-10-28 23:23:13 -04:00
b0ac9abfbf Fix add-hook! for hooks that take arguments 2019-10-28 23:23:13 -04:00