doomemacs/modules/tools
Henrik Lissner 2dc52bc9be
💥 Replace exec-path-from-shell w/ 'bin/doom env'
IMPORTANT: This is a breaking update for Mac users, as your shell
environment will no longer be inherited correctly (with the removal of
exec-path-from-shell). The quick fix is: 'bin/doom env refresh'. Also,
the set-env! autodef now does nothing (and is deprecated), be sure to
remove calls to it in your config.

Smaller changes:
+ This update also adds --no-* switches to doom quickstart
+ Includes general improvements to the documentation of several bin/doom
  commands.
+ Moves doom/reload* commands to core/autoload/config.el
+ doom/reload-project has been removed (it didn't actually do anything)

The breaking change:
This update adds an "envvar file" to Doom Emacs. This file is generated
by `doom env refresh`, populated with variables scraped from your shell
environment (from both non-interactive and interactive sessions). This
file is then (inexpensively) loaded at startup, if it exists.

+ The file is manually generated with `doom env refresh`.
+ It can be regenerated automatically whenever `doom refresh` is run by
  running `doom env enable` (`doom env clear` will reverse this and
  delete the env file).
+ `doom quickstart` will ask if you want to auto-generate this envvar
  file. You won't need it if you're confident Emacs will always be
  started from the correct environment, however.
+ Your env file can be reloaded from a running Emacs session with `M-x
  doom/reload-env`. Note: this won't work if the Emacs session you're
  running it in doesn't have a correct SHELL set. i.e. don't use this to
  create your first env file!

The idea isn't mine -- it's borrowed from Spacemacs -- and was
introduced to me in #1053 by @yurimx. I was impressed with it. Prior to
this, I was unhappy with exec-path-from-shell (no hate to the dev, I
understand its necessity), and 'doom patch-macos' wasn't ideal for mac
users (needed to be reapplied every time you update Emacs). What's more,
many users (even Linux users) had to install exec-path-from-shell
anyway.

This solution suffers from none of their shortcomings. More reliable
than patch-macos, more performant and complete than
exec-path-from-shell, and easily handled by bin/doom.
2019-03-28 01:56:09 -04:00
..
ansible Normalize :leader/:localleader keybinds 2018-12-23 23:54:27 -05:00
docker Lazy-load docker.el & refactor evil-initial-state 2018-09-09 09:52:23 -04:00
editorconfig Rewrite switch-{buffer,window} hooks 2019-03-08 02:37:33 -05:00
ein Remove deprecated set! & def-setting! macros 2019-01-05 17:48:46 -05:00
flycheck Rewrite switch-{buffer,window} hooks 2019-03-08 02:37:33 -05:00
flyspell tools/flyspell: new flyspell-mode! autodef 2019-03-04 04:57:07 -05:00
gist Introduce autodefs to replace some settings 2018-06-15 03:42:01 +02:00
lsp Replace +lsp|init with lsp! autodef 2019-03-02 01:34:19 -05:00
macos fix +macos/open-in-default-project under ranger-mode 2018-10-04 11:13:51 -07:00
magit tools/magit: bind TAB in more magit modes 2019-03-26 03:43:23 -04:00
make Refactor Project API to reflect changes upstream 2018-09-28 21:13:27 -04:00
password-store 💥 Replace exec-path-from-shell w/ 'bin/doom env' 2019-03-28 01:56:09 -04:00
pdf General module refactor 2019-03-02 02:04:11 -05:00
prodigy Remove deprecated set! & def-setting! macros 2019-01-05 17:48:46 -05:00
rgb Autoload defhydras & use new naming convention 2018-06-26 01:43:54 +02:00
terraform Normalize :leader/:localleader keybinds 2018-12-23 23:54:27 -05:00
tmux/autoload Remove third line in section headers 2018-09-09 09:58:19 -04:00
upload tools/upload: set ssh-deploy vars sooner 2018-12-05 22:11:54 -05:00
vterm 💥 Replace exec-path-from-shell w/ 'bin/doom env' 2019-03-28 01:56:09 -04:00
wakatime Rewrite switch-{buffer,window} hooks 2019-03-08 02:37:33 -05:00