summaryrefslogtreecommitdiff
path: root/dotfiles/.emacs.d/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/.emacs.d/init.el')
-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
;;;