所以我想,添加谷歌走模块到我的.emacs文件,这样,当我使用emacs编辑我.去文件,它会的话,适当的压痕和亮点.香港专业教育学院网上看了看,似乎我需要将下面的代码片段添加到我的.emacs文件(我找不到!)
;; go mode
(setq load-path (cons "/usr/local/go/misc/emacs" load-path))
(require 'go-mode-load)
Run Code Online (Sandbox Code Playgroud)
我已经把去模式,load.el去-mode.el在我.emacs.d /目录下,我相信我仍然需要找到.emacs文件中添加上面列出我运行OS X,如果这有助于代码.有人可以帮我搞定这个工作谢谢!
小智 17
评估这个 M-: (find-file user-init-file)
然后,Emacs将打开它认为您的用户初始化文件.
我有
(global-set-key (kbd "<f12>") (lambda () (interactive) (find-file-other-window user-init-file)))
Run Code Online (Sandbox Code Playgroud)
在我.emacs这样我可以轻松编辑这个.
Dre*_*rew 11
Emacs手册告诉您:
This file, if it exists, specifies how to initialize Emacs for you.
Emacs looks for your init file using the filenames `~/.emacs', `~/.emacs.el',
or `~/.emacs.d/init.el'; you can choose to use any one of these three
names. Here, `~/' stands for your home directory.
Run Code Online (Sandbox Code Playgroud)
~/.emacs我想大多数人都会使用.C-x C-f ~/.emacs如果您还没有创建它,只需创建它.