Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What should I use as a config/settings file with emacs prelude?

I would like to add a hook, so that each time I open a new file, projectile is enabled. However, I don't know where to add it so that emacs will read it. Any hints?

like image 632
Geo Avatar asked Jun 09 '12 11:06

Geo


People also ask

Where is the Emacs config file?

Emacs can also look in an XDG-compatible location for init. el , the default is the directory ~/. config/emacs .

What is Emacs Prelude?

Prelude is an Emacs distribution that aims to enhance the default Emacs experience. Prelude alters a lot of the default settings, bundles a plethora of additional packages and adds its own core library to the mix.


1 Answers

This must surely be in Prelude's documentation? If not, I suggest you write to the author to suggest that it be added.

I note the following in its init.el file:

(defvar prelude-personal-dir (concat prelude-dir "personal/")
  "Users of Emacs Prelude are encouraged to keep their personal configuration
changes in this directory. All Emacs Lisp files there are loaded automatically
by Prelude.")

Therefore you should create a personal sub-directory if it doesn't already exist, and create any *.el filename you like in that directory, for your own customisations.

like image 133
phils Avatar answered Oct 12 '22 23:10

phils