Customize Emacs for Mac OSX app -
i using emacs mac osx app, , need modify init.el file, according instructions on melpa. problem can't find init.el file. there 1 in obscure location, or there other file serving same purpose? goal make melpa packages available emacs 24 package installer.
==== update ====
to add melpa repository, 1 should add few lines "before call package-initialize in init.el file", according melpa page. emacs osx app doesn't seem have init.el file, though. using command (suggested @alexander-poslavsky)
c-h (control-h) v user-init-file ret
i "~/.emacs", predicted @abo-abo. however, file doesn't exist, there no call package-initialize. anyway, created ~/.emacs , added custom lines it, suggested @abo-abo, , works. thanks!
these contents of .emacs file:
(require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)
emacs osx uses 'normal' configuration setup (unlike, example aquamacs, or on windows init-file located somewhere else.
usually configuration should stored in ~/.emacs.d/init.el
(see here complete explanation.
your current config-file should stored in variable user-init-file:
use c-h (control-h) v user-init-file ret
this show whatever emacs using (it might nil, if not using anything).
hope helps!
Comments
Post a Comment