doomemacs/modules/lang
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
..
agda Normalize :leader/:localleader keybinds 2018-12-23 23:54:27 -05:00
assembly Refactor out map.el usage 2018-06-23 19:53:54 +02:00
cc Fix cc fontification for constants with numbers 2019-03-07 01:35:22 +10:00
clojure lang/clojure: minor refactor 2019-03-12 12:28:57 -04:00
common-lisp Merge pull request #1119 from mfiano/patch-3 2019-01-20 14:10:51 -05:00
coq General module refactor 2019-03-02 02:04:11 -05:00
crystal feature/{syntax-checker,spellcheck} -> tools/fly{check,spell} 2019-02-22 00:25:30 -05:00
csharp lang/csharp: include +chsarp-sp-point-in-type-p 2019-02-19 01:28:07 -05:00
data General reformatting & minor refactors 2019-02-19 15:53:26 -05:00
elixir General module refactor 2019-03-02 02:04:11 -05:00
elm General module refactor 2019-03-02 02:04:11 -05:00
emacs-lisp Apply elisp-demos to describe-function-1 as well 2019-03-16 23:59:51 -04:00
erlang General module refactor 2019-03-02 02:04:11 -05:00
ess General module refactor 2019-03-02 02:04:11 -05:00
go 💥 Replace exec-path-from-shell w/ 'bin/doom env' 2019-03-28 01:56:09 -04:00
haskell lang/haskell: minor refactor & reformatting 2019-03-04 04:57:07 -05:00
hy Replace :eval/:repl with autodef functions 2018-06-15 16:20:20 +02:00
idris Normalize :leader/:localleader keybinds 2018-12-23 23:54:27 -05:00
java Replace +lsp|init with lsp! autodef 2019-03-02 01:34:19 -05:00
javascript lang/javascript: fix documentation lookup 2019-03-18 01:08:59 -04:00
julia lang/julia: operator highlights for ess-julia-mode 2019-02-15 19:43:13 -05:00
latex Minor refactor across the board 2019-03-04 20:47:26 -05:00
ledger feature/{syntax-checker,spellcheck} -> tools/fly{check,spell} 2019-02-22 00:25:30 -05:00
lua Standardize REPL commands & improve SPC o r 2019-02-18 01:59:56 -05:00
markdown lang/markdown: only bind meta keys in insert mode 2019-03-11 13:19:25 -04:00
nim feature/{syntax-checker,spellcheck} -> tools/fly{check,spell} 2019-02-22 00:25:30 -05:00
nix set nix-indent-function to #'nix-indent-line 2019-01-22 10:44:05 +11:00
ocaml Replace +lsp|init with lsp! autodef 2019-03-02 01:34:19 -05:00
org Merge pull request #1247 from jdnavarro/develop 2019-03-26 03:45:52 -04:00
perl feature/{syntax-checker,spellcheck} -> tools/fly{check,spell} 2019-02-22 00:25:30 -05:00
php Replace +lsp|init with lsp! autodef 2019-03-02 01:34:19 -05:00
plantuml feature/{syntax-checker,spellcheck} -> tools/fly{check,spell} 2019-02-22 00:25:30 -05:00
purescript purescript: Properly register company backend 2018-11-05 20:10:38 +01:00
python 💥 Replace exec-path-from-shell w/ 'bin/doom env' 2019-03-28 01:56:09 -04:00
qt Optimize lang/qt #642 2018-06-02 02:53:54 +02:00
racket Normalize :leader/:localleader keybinds 2018-12-23 23:54:27 -05:00
rest Normalize :leader/:localleader keybinds 2018-12-23 23:54:27 -05:00
ruby 💥 Replace exec-path-from-shell w/ 'bin/doom env' 2019-03-28 01:56:09 -04:00
rust 💥 Replace exec-path-from-shell w/ 'bin/doom env' 2019-03-28 01:56:09 -04:00
scala Replace +lsp|init with lsp! autodef 2019-03-02 01:34:19 -05:00
sh Standardize REPL commands & improve SPC o r 2019-02-18 01:59:56 -05:00
solidity feature/{syntax-checker,spellcheck} -> tools/fly{check,spell} 2019-02-22 00:25:30 -05:00
swift Replace +lsp|init with lsp! autodef 2019-03-02 01:34:19 -05:00
vala Add vala-mode 2018-10-16 06:22:34 +03:00
web Replace +lsp|init with lsp! autodef 2019-03-02 01:34:19 -05:00