Commit Graph

89 Commits

Author SHA1 Message Date
bc5621adb6 Add ability to pass additional args to 'doom run' 2018-07-16 16:35:05 -07:00
92b8222529 %* doesn't behave as expected
%* is unaffected by SHIFT, so using it results in Emacs loading a
buffer named "run" on startup.

In order to preserve running all supported commands directly with
the bin/doom script, change the magic string in doom.cmd to one that
is unused ("runemacs")
2018-07-13 19:08:24 -07:00
a0604e3feb Tweak the command used for the "run" argument
- Using "start" will allow the batch script to return immediately,
  rather than waiting for the command to finish.
- Using "runemacs" (instead of plain "emacs") will hide the console
  window that is displayed while Emacs is running
2018-07-12 15:45:37 -07:00
31143f9f9e Fix a couple errors in doom.cmd
- Properly stringize the optional first argument
- Use correct path to init.el (relative to script directory)
2018-07-12 15:20:19 -07:00
1b98422291 $* -> %* in bin/doom.cmd 2018-07-09 15:29:38 +02:00
8b8c7c7411 doom-doctor: use ~ instead of HOME envvar 2018-07-05 01:32:38 +02:00
ca5ff92192 Fix void-variable: package errors in doom doctor
Reported by @zaiste
2018-06-27 12:02:21 +02:00
81753150a7 doctor: don't regard disabled/ignored packages
And refactor error handling.
2018-06-26 18:58:07 +02:00
6c8df7c6bb bin/org-capture: reformat & improve daemon cleanup
Ensures the temporary daemon is killed after org-capture is finished.
2018-06-24 16:31:14 +02:00
8e23ab0a05 Add -h/--help usage info to bin/org-tangle 2018-06-20 11:29:29 +02:00
60d6f70646 bin/org-tangle: fix uninitialzed all-blocks et co 2018-06-20 11:00:20 +02:00
9f9b7ad792 Add EMACSDIR envvar support to bin/doom
As an alternative to the -e/--emacsd options. Sometimes it is more
consistent to customize bin/doom this way. e.g.

EMACS=/another/bin/emacs DOOMDIR=~/someplace EMACSDIR=~/emacsd bin/doom install
2018-06-20 02:07:20 +02:00
151858a8dc Redesign Doom error handling
Another refactor, again to improve the locality of doom errors and make
the data that accompanies them more useful in determining the origin and
source of issues. Also, bin/doom is now a little more informative about
how to debug errors.
2018-06-20 02:07:12 +02:00
5400d608f4 Improve bin/org-tangle #691
Adds tag filtering. Also tangles regularly by default (with -p/--print,
it will print tangled blocks to stdout instead).
2018-06-17 14:22:29 +02:00
fb406a165b bin/doom: more feedback about enabled options 2018-06-15 04:22:05 +02:00
2c0e93773b bin/doom: set YES and DEBUG envvars on -y/-d 2018-06-15 04:13:03 +02:00
bd55e53691 Add -i/--insecure flag to bin/doom 2018-06-15 03:58:04 +02:00
eb254afd51 Fix doom doctor
Update doom loader to reflect recent changes.
2018-06-13 20:10:37 +02:00
01d1a814f9 Refactor doom-initialize functions
Removes doom-module-table; which was inflexible (though more stable). It
prevented you from putting your doom! block in anywhere but
~/.doom.d/init.el.

It is replaced (somewhat) by (doom-modules).
2018-06-10 17:30:26 +02:00
90be135d8b bin/doom: ensure default-directory is in emacs dir
user-emacs-directory could be changed elsewhere.
2018-06-05 17:26:45 +02:00
a3889dc8b1 bin/doom: don't set DOOMDIR
Now that we use it for doom-private-dir
2018-06-05 17:26:31 +02:00
08a453bd5e bin/doom: show usage info if no command is entered 2018-06-02 02:56:18 +02:00
6fdd6cb14c bin/doom: respond to -h/--help
In case people try that before `help`
2018-06-02 02:55:52 +02:00
d998ef3159 Fix emacs-lisp header in bin/doom 2018-05-29 23:14:33 +02:00
6b625e96b5 bin/doom: add support for custom emacs binary (EMACS envvar) 2018-05-28 15:49:50 +02:00
fd86bfb027 Fix load-path not including site-lisp directories
This would cause plugins like mu4e to not be detected and included in
the cached load-path generated by doom-package-autoload-file.
2018-05-26 03:03:01 +02:00
0750e877ab Ensure private/emacs dirs end with a slash 2018-05-25 20:06:01 +02:00
242a28ddc9 doctor: initialize more state for more accurate tests #603 2018-05-25 19:59:56 +02:00
843c4d085f bin/doom: fix doom run 2018-05-25 01:25:56 +02:00
e3bdeabe0b bin/doom: discard extra command line args 2018-05-24 18:29:56 +02:00
7cfab92f7c bin/doom-doctor: refactor bash bootstrapper 2018-05-24 16:39:08 +02:00
e1e47b9173 bin/doom: minor refactor; no longer default to doom refresh
Better to be explicit, otherwise you get some weird cases where
incorrect commands fall through to a doom refresh.
2018-05-24 16:03:27 +02:00
8a7ebebf16 bin/doom: add -y/--yes option 2018-05-24 16:02:59 +02:00
499630fdcd bin/doom: handle doc/doctor especially 2018-05-24 16:00:46 +02:00
8ea0f34270 doctor: update doom bootstrap logic & fix error on built-in packages 2018-05-21 18:34:33 +02:00
2e7831b8a4 doctor: reduce output for cert test 2018-05-21 18:34:33 +02:00
6a08128194 doctor: make feedback more informative 2018-05-21 18:34:33 +02:00
cf54b3705b bin/doom: alias h => help 2018-05-21 15:42:00 +02:00
337d2e9533 Make bin/doom (with no args) equivalent to make all 2018-05-21 01:38:17 +02:00
ddadb79952 Reduce noise from doom doctor
And fix not-enough-arguments error from format.
2018-05-21 01:38:17 +02:00
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
7851e9e3b4 doctor: pluralize issue count at the end
It's features like these that separate us from animals.
2018-05-20 12:18:16 +02:00
6aaa13d05e doctor: update Doom initialization 2018-05-20 12:18:16 +02:00
85ee9ce459 Refactor doom module API
+ Consolidate the CATEGORY -> MODULE terminology
+ Rename functions to make their function easier to understand
  + Rename doom-module-expand-file => doom-module-path
  + Rename doom-module-find-path => doom-module-locate-path
2018-05-20 00:03:57 +02:00
56a6d1faa3 Doctor: include origin in syntax error message 2018-05-16 00:11:14 +02:00
dbeb7c639a Update doom doctor 2018-05-14 21:08:16 +02:00
e9a325039d doctor: doom-initialize before loading Doom 2018-05-07 19:26:31 +02:00
aef9724324 Add doom*shut-up advisor to core-lib 2018-04-23 00:03:28 -04:00
a616f00670 Fix wrong-type-argument stringp error from doom doctor 2018-04-13 16:34:51 -04:00
5d3f247a7f doctor: add warning for dual private configs 2018-04-04 06:47:42 -04:00