简体   繁体   English

如何在emacs中更改haskell模式的默认工作目录

[英]How do I change the default working directory of haskell mode in emacs

I am trying to make it so the default working directory of haskell mode updates when I load a module via Cl. 我正在尝试制作它,以便在通过Cl加载模块时更新haskell模式的默认工作目录。 Currently, the working directory is always my home directory. 当前,工作目录始终是我的主目录。 This makes it impossible to load custom modules and run them with emacs. 这使得无法加载自定义模块并使用emacs运行它们。 Instead, I have to launch them from the command line which isn't horrible but it is more time consuming and a little annoying. 取而代之的是,我必须从命令行启动它们,虽然这并不可怕,但它既耗时又令人讨厌。

How can I make the working directory update when I use Cl to load a module? 使用Cl加载模块时,如何更新工作目录?

If you are using haskell-mode then I think you can set a key to haskell-process-load-file . 如果您使用的是haskell-mode那么我认为您可以将键设置为haskell-process-load-file You can see the examples here 您可以在此处查看示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM