The minimum .emacs for debug purpose
I've installed more than 100 emacs plugins.
Here is my minimum .emacs
to test plugins,
(show-paren-mode 1)
(eval-when-compile (require 'cl))
;; test elisps download from internet here
(setq test-elisp-dir "~/test-elisp/")
(if (not (file-exists-p (expand-file-name test-elisp-dir)))
(make-directory (expand-file-name test-elisp-dir)))
(setq load-path
(append
(loop for dir in (directory-files test-elisp-dir)
unless (string-match "^\\." dir)
collecting (expand-file-name (concat test-elisp-dir dir)))
load-path))
;; package repositories
(require 'package)
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/") t)
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)
;; ==== put your code below this line!
;;
The code is straight forward. I scan any sub-directories in ~/test-elisp
and add them into load-path
.
I've uploaded the .emacs
to Dropbox, so you can use one bash liner to download it:
cd ~/;wget https://dl.dropboxusercontent.com/u/858862/emacs/.emacs;mkdir -p ~/test-elisp;