Skip to content

Commit

Permalink
faq: add exec-path-from-shell entry
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBB committed Aug 21, 2016
1 parent 5758a19 commit e94ab32
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions doc/FAQ.org
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- [[#why-do-i-get-files-starting-with-][Why do I get files starting with .#?]]
- [[#why-do-i-get-4m-characters-inside-ansi-term][Why do I get '4m' characters inside ansi-term?]]
- [[#why-are-my-font-settings-not-being-respected][Why are my font settings not being respected?]]
- [[#why-am-i-getting-a-message-about-environment-variables-on-startup][Why am I getting a message about environment variables on startup?]]
- [[#how-do-i][How do I:]]
- [[#install-a-package-not-provided-by-a-layer][Install a package not provided by a layer?]]
- [[#disable-a-package-completely][Disable a package completely?]]
Expand Down Expand Up @@ -231,6 +232,25 @@ only be applied if the name of the font exists on your system. Check to make
sure that this is the case. If Spacemacs can't find the font, there should be a
warning to this effect in the =*Messages*= buffer.

** Why am I getting a message about environment variables on startup?
Spacemacs uses the =exec-path-from-shell= package to set the executable path
when Emacs starts up. This is done by launching a shell and reading the values
of variables such as =PATH= and =MANPATH= from it. If your shell configuration
sets the values of these variables inconsistently, this could be problematic. It
is recommended to set such variables in shell configuration files that are
sourced unconditionally, such as =.profile=, =.bash_profile= or =.zshenv=, as
opposed to files that are sourced only for interactive shells, such as =.bashrc=
or =.zshrc=. If you are willing to neglect this advice, you may disable the
warning, e.g. from =dotspacemacs/user-init=:

#+BEGIN_SRC emacs-lisp
(setq exec-path-from-shell-check-startup-files nil)
#+END_SRC

You can also disable this feature entirely by adding =exec-path-from-shell= to
the list =dotspacemacs-excluded-packages= if you prefer setting =exec-path=
yourself.

* How do I:
** Install a package not provided by a layer?
Spacemacs provides a variable in the =dotspacemacs/layers= function in
Expand Down

0 comments on commit e94ab32

Please sign in to comment.