summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2015-10-10 10:01:45 -0400
committerDavid Thompson <dthompson2@worcester.edu>2015-10-10 10:01:45 -0400
commit1180757f2e1ef5bd641ca81f10e65bb0feee1448 (patch)
tree594c89eeb598290d91298276533196358309e31a
parentf595b77e60c06500c939699de0410df945cc2084 (diff)
emacs: Fix order of evaluation issue with when-require.
-rw-r--r--dotfiles/.emacs.d/init.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/dotfiles/.emacs.d/init.el b/dotfiles/.emacs.d/init.el
index f914a41..c349040 100644
--- a/dotfiles/.emacs.d/init.el
+++ b/dotfiles/.emacs.d/init.el
@@ -9,6 +9,11 @@
;; Maximize frames
(add-to-list 'default-frame-alist '(fullscreen . maximized))
+(defmacro when-require (package &rest body)
+ "Evaluate BODY if and only if PACKAGE can be imported."
+ (declare (indent 1))
+ `(when (require ,package nil t) ,@body))
+
;;;
;;; Packages
;;;
@@ -52,11 +57,6 @@
required-packages)
(message "Installed all missing packages!"))
-(defmacro when-require (package &rest body)
- "Evaluate BODY if and only if PACKAGE can be imported."
- (declare (indent 1))
- `(when (require ,package nil t) ,@body))
-
;;;
;;; Look and Feel
;;;