Mac OS X上的.emacs文件在哪里? [英] Where is my .emacs file on Mac OS X

查看:209
本文介绍了Mac OS X上的.emacs文件在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我试图添加谷歌go模块到我的.emacs文件,所以当我使用emacs来编辑我的.go文件,它将有适当的缩进和高亮的单词。我在网上看,似乎我需要添加以下代码片段到我的.emacs文件(我找不到!)

so i am trying to add the google go module to my .emacs file so that when I use emacs to edit my .go file it will have the appropriate indentations and highlight of the words. Ive looked online and it seems that I need to add the following code snippets to my .emacs file (which i cannot find!)

;; go mode
(setq load-path (cons "/usr/local/go/misc/emacs" load-path))
(require 'go-mode-load)

我已经把go-mode-load.el和go-mode.el放在我的.emacs.d /目录中我相信我还是需要找到.emacs文件添加上面列出的代码我正在运行OS X,如果这有帮助。有人帮我得到这个工作谢谢!

I have put go-mode-load.el and go-mode.el in my .emacs.d/ directory I believe i still need to find the .emacs file to add the code listed above I am running OS X if this helps. Can someone help me get this working thank you!

推荐答案

使用 c $ c> (find-file user-init-file)

Emacs会打开它认为的用户初始化文件

Emacs will then open what it considers your user initialization file.

我有

(global-set-key (kbd "<f12>") (lambda () (interactive) (find-file-other-window user-init-file)))

在我的 .emacs 中,以便我可以轻松地编辑。

in my .emacs so that i can easily edit this.

这篇关于Mac OS X上的.emacs文件在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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