如果我找不到我的 emacs init 文件怎么办? [英] What to do if I cannot find my emacs init file?

查看:20
本文介绍了如果我找不到我的 emacs init 文件怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试按照以下说明将 haskell-mode 添加到 emacs:

I am trying to add haskell-mode to emacs by following these instructions:

http://doc.gnu-darwin.org/haskell-模式/安装指南.html

这涉及到我将一些代码添加到我的 ~/.emacs init 文件中.但是,我的问题是我找不到我的 emacs init 文件.我尝试使用 find 命令来定位它,如下所示:

This involves that I add some code to my ~/.emacs init file. However, my issue is that I cannot locate my emacs init file. I tried using find commands to locate it, as so:

find . -name "*emacs*"
find . -name "~/.emacs"

然而,这些似乎都不是很成功,因为我得到的结果要么太多,要么没有结果.

However none of these appear to be very successful, as I get either too many results, or no results.

那么,鉴于我的情况,由于我找不到我的 ~/.emacs init 文件,这是否意味着它不存在?在这种情况下,使用 emacs 编辑器自己创建一个是否明智?如果是这样,在尝试创建一个之前,有什么我应该知道的重要事情吗?

So, given my situation, since I cannot locate my ~/.emacs init file, does this mean it does not exist? In that case, would it be smart to create one myself using the emacs editor? If so, are there any outstanding things I should know before attempting to create one?

推荐答案

C-x C-f ~/.emacs 带你去看.

参见 Emacs 手册,节点 Init文件找到初始化.

See the Emacs manual, nodes Init File and Find Init.

这篇关于如果我找不到我的 emacs init 文件怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆