【问题标题】:Unable to use the "emacs" command in Windows 7 command prompt无法在 Windows 7 命令提示符中使用“emacs”命令
【发布时间】:2014-02-08 17:02:16
【问题描述】:

我已经从http://ourcomments.org/Emacs/EmacsW32.html下载并安装了emacs。

但是,当我尝试在命令提示符下使用 emacs 命令时

C:\Users\BTDemapan\Desktop\Thesis emacs totality.py

我收到这条消息

'emacs' is not recognized as an internal or external command, operable program or batch file.

我只能使用 GNUEmacs 客户端手动打开该文件,方法是从文件夹位置单击该文件。

【问题讨论】:

  • 这是题外话,但您可能想使用来自here 的最新版本的 emacs。上面链接中的版本似乎已经过时了。

标签: emacs windows-7 cmd command-prompt


【解决方案1】:

您需要将 Emacs 可执行文件所在的目录添加到 PATH 环境变量。

看看Adding directory to PATH Environment Variable in Windows

您可以从命令行临时设置 PATH,也可以使用永久设置 “我的电脑”>“属性”>“高级”>“环境变量”>“路径” 并重新启动。

【讨论】:

  • 只需更改 PATH 变量,无需重启工作站。也许只是重新加载可能需要它并且已经启动的应用程序,比如当前正在运行的命令提示符。
猜你喜欢
  • 2014-03-11
  • 1970-01-01
  • 1970-01-01
  • 2018-01-04
  • 2012-10-03
  • 2014-02-07
  • 1970-01-01
  • 1970-01-01
  • 2014-05-04
相关资源
最近更新 更多