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

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

问题描述



http://doc.gnu-darwin.org/haskell-mode/installation-guide.html



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

  find 。 -name* emacs *
find。 -name〜/ .emacs

然而,没有一个看起来非常成功,因为我得到结果太多了,或者没有结果。



所以,鉴于我的情况,因为我找不到我的〜/ .emacs init文件,这是不是意味着它不存在?在这种情况下,使用emacs编辑器自己创建一个是否可以很聪明?如果是这样,在尝试创建一个之前,有没有什么优秀的知识?

解决方案

Cx Cf 〜/ .emacs 将带你去。



请参阅Emacs手册节点 Init File Find Init


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

http://doc.gnu-darwin.org/haskell-mode/installation-guide.html

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.

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 will take you to it.

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

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

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