Make the list of modules loaded by Prelude configurable.

Modules loaded by Prelude can now easily be adjusted via
the file `prelude-modules.el` in Prelude's installation folder.
To disable a module simply comment it out; conversely uncomment
a module to enable it.
This commit is contained in:
Bozhidar Batsov 2013-01-13 20:42:17 +02:00
parent 5a8a724abb
commit 29dc436b64
5 changed files with 70 additions and 24 deletions

View file

@ -46,6 +46,9 @@ Note that the installer will back up any existing `.emacs` file or
you're doing a manual install make sure you don't have a `.emacs` file
or back up your existing `.emacs.d` directory manually.
Don't forget to adjust your `prelude-modules.el` file once the installation is done.
By default most of the modules that ship with Prelude are not loaded.
## Installing Emacs 24
Obviously to use the Emacs Prelude you have to install Emacs 24
@ -86,6 +89,39 @@ You'd do well to replace `~/.emacs.d` with the value of
`user-emacs-directory` for your OS. You can check the value by doing
`C-h v user-emacs-directory` inside Emacs.
## Enabling additional modules
By default most of the modules that ship with Prelude are not loaded.
```lisp
;;; Uncomment the modules you'd like to use and restart Prelude afterwards
(require 'prelude-c)
;; (require 'prelude-clojure)
;; (require 'prelude-coffee)
;; (require 'prelude-common-lisp)
;; (require 'prelude-css)
(require 'prelude-emacs-lisp)
(require 'prelude-erc)
;; (require 'prelude-erlang)
;; (require 'prelude-haskell)
(require 'prelude-js)
;; (require 'prelude-latex)
(require 'prelude-lisp)
;; (require 'prelude-markdown)
;; (require 'prelude-mediawiki)
(require 'prelude-org)
(require 'prelude-perl)
;; (require 'prelude-python)
;; (require 'prelude-ruby)
;; (require 'prelude-scala)
(require 'prelude-scheme)
;; (require 'prelude-scss)
(require 'prelude-xml)
```
You'll need to adjust your `prelude-modules.el` file once the installation is done.
## Running
Nothing fancy here. Just start Emacs as usual. Personally I run Emacs