Add simple vanilla-emacs test ground

This commit is contained in:
Henrik Lissner 2018-04-21 21:05:31 -04:00
parent fa3f627f44
commit f3facdf642
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 24 additions and 0 deletions

17
core/debug.el Normal file
View file

@ -0,0 +1,17 @@
;;; debug.el -*- lexical-binding: t; no-byte-compile: t; -*-
;; load me after running Emacs -Q:
;;
;; (load-file (concat user-emacs-directory "core/debug.el"))
;;
;; then you can test packages in isolation.
(setq user-emacs-directory (expand-file-name "../" (file-name-directory load-file-name))
package--init-file-ensured t
package-user-dir (expand-file-name ".local/packages/elpa" user-emacs-directory)
package-archives
'(("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")
("org" . "https://orgmode.org/elpa/")))
(package-initialize)

View file

@ -28,3 +28,10 @@
;;; License: MIT ;;; License: MIT
(require 'core (concat user-emacs-directory "core/core")) (require 'core (concat user-emacs-directory "core/core"))
;; To test something in a blank, vanilla Emacs session (Emacs -Q) comment the
;; require above and load core/debug.el instead:
;;
;; (load (concat user-emacs-directory "core/debug.el"))
;;
;; <-- place debug code here -->