【问题标题】:emacs powershell versus powershell-mode [closed]emacs powershell 与 powershell-mode [关闭]
【发布时间】:2014-07-02 07:08:57
【问题描述】:

我想在我的 emacs 中使用 PowerShell,我对我的选择很感兴趣。尝试M-x package-install RET powershell TAB 显示两个选项:powershellpowershell-mode。这些包如何比较?它们与powershell.el 相比如何?

以下资源非常有帮助,但没有回答我的问题: http://www.emacswiki.org/emacs/PowerShell

http://blogs.msdn.com/b/dotnetinterop/archive/2008/04/10/run-powershell-as-a-shell-within-emacs.aspx

Can I use PowerShell in shell-mode for Emacs?

我使用的是 Emacs 24.3 和 Windows 7。

【问题讨论】:

  • 只是想指出我对批评完全有效问题的版主的不满。这种类型的活动造成了这里的丑陋气氛并迫使人们寻找其他地方。

标签: powershell emacs


【解决方案1】:

从本质上讲,这两者在某些方面都是不完整的,而且显然都没有维护。

改为使用powershell.el。它在 MELPA 上,可通过 M-x package-install RET powershell 安装。

【讨论】:

  • 感谢您的提示,但是当我运行M-x package-install-file 并输入位置~/.emacs.d/elisp/powershell.el 时,我得到;;; powershell-mode.el ends here。有什么建议吗?
  • @Lucas 我明白了。有some issues in the current version。在本地应用链接中的补丁来修复它们。
【解决方案2】:

输入默认 shell(通过 M-x shell),然后在命令提示符下键入“powershell”。您现在在 EMACS 内的 cmd.exe 内运行 PowerShell。 #解决方法

有什么你想使用 PowerShell 而在 eshell 中不能做的具体事情吗?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-07-10
    • 2021-10-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-04
    • 1970-01-01
    相关资源
    最近更新 更多