Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
minimum emacs setup for Emacs plugin testing
;; A minimum .emacs to test Emacs plugins
(show-paren-mode 1)
(eval-when-compile (require 'cl))
;; test elisps download from internet here
(setq test-elisp-dir "~/test-elisp/")
(unless (file-exists-p (expand-file-name test-elisp-dir))
(make-directory (expand-file-name test-elisp-dir)))
(setq load-path
(loop for dir in (directory-files test-elisp-dir)
unless (string-match "^\\." dir)
collecting (expand-file-name (concat test-elisp-dir dir)))
;; package repositories
(require 'package)
(add-to-list 'package-archives '("melpa" . "") t)
;; ==== put your code below this line!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment