Skip to content

Instantly share code, notes, and snippets.

@redguardtoo
Last active May 9, 2024 14:09
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save redguardtoo/8a0c781c6796f9cd55cb724117f4f359 to your computer and use it in GitHub Desktop.
Save redguardtoo/8a0c781c6796f9cd55cb724117f4f359 to your computer and use it in GitHub Desktop.
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
(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 '("melpa" . "http://stable.melpa.org/packages/") t)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
(package-initialize)
;; ==== put your code below this line!
;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment