Where is my .emacs file on Mac OS X

后端 未结 2 2030
无人共我
无人共我 2021-01-31 19:30

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. I

相关标签:
2条回答
  • 2021-01-31 19:53

    Eval this with M-: (find-file user-init-file)

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

    I have

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

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

    0 讨论(0)
  • 2021-01-31 20:04

    The Emacs manual tells you:

    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.
    

    Most people use ~/.emacs, I think. Just do C-x C-f ~/.emacs to create it if you do not yet have one.

    0 讨论(0)
提交回复
热议问题