From 98ba0e744bdf99ce0a894451700f11c39dc2579b Mon Sep 17 00:00:00 2001 From: Tharre Date: Mon, 14 Sep 2015 20:19:14 +0200 Subject: emacs: actually install .emacs.d --- shell/_emacs/site-lisp/with-package.el | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 shell/_emacs/site-lisp/with-package.el (limited to 'shell/_emacs/site-lisp/with-package.el') diff --git a/shell/_emacs/site-lisp/with-package.el b/shell/_emacs/site-lisp/with-package.el deleted file mode 100644 index 3dfc52d..0000000 --- a/shell/_emacs/site-lisp/with-package.el +++ /dev/null @@ -1,31 +0,0 @@ -(require 'cl) - -;; will be available at emacs 24.4 -(unless (fboundp 'with-eval-after-load) - "Do magic from the future" - (defmacro with-eval-after-load (file &rest body) - `(eval-after-load ,file - `(funcall (function ,(lambda () ,@body)))))) - -(defmacro with-package (packages &rest body) - "After pkg macro" - (declare (indent defun)) - (when (symbolp packages) ;; make a list if necessary - (setf packages (list packages))) - `(progn - (dolist (p ',packages) - (when (not (package-installed-p p)) - (package-install p)) - (with-eval-after-load p ,@body)))) - -(defmacro with-package* (packages &rest body) - "After pkg macro*" - (declare (indent defun)) - (when (symbolp packages) ;; make a list if necessary - (setf packages (list packages))) - `(prog1 - (with-package ,packages ,@body) - (dolist (p ',packages) - (require p)))) - -(provide 'with-package) -- cgit v1.2.3-70-g09d2