gpt4 book ai didi

bash - 启动 emacs 时的 exec-path-from-shell 消息

转载 作者:行者123 更新时间:2023-11-29 09:42:58 24 4
gpt4 key购买 nike

我的 init.el 中有 exec-path-from-shell,就像这样

(exec-path-from-shell-initialize)

每当我启动 emacs 时,我都会收到以下消息:

You appear to be setting environment variables ("PATH" "MANPATH") in your .bashrc or .zshrc: those files are only read by interactive shells, so you should instead set environment variables in startup files like .profile, .bash_profile or .zshenv. Refer to your shell's man page for more info. Customize `exec-path-from-shell-arguments' to remove "-i" when done, or disable `exec-path-from-shell-check-startup-files' to disable this message. For information about GNU Emacs and the GNU system, type C-h C-a.

最佳答案

如果您不希望 Emacs 警告环境变量设置的位置,请禁用该选项:

(setq exec-path-from-shell-check-startup-files nil)

放在前面

(exec-path-from-shell-initialize)

在你的 .emacs 中。

关于bash - 启动 emacs 时的 exec-path-from-shell 消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35286203/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com