Skip to content

Instantly share code, notes, and snippets.

View aheaume's full-sized avatar

Alexandre Héaumé aheaume

View GitHub Profile

use-layer

What is it?

use-layer is a nicer way to write your .spacemacs configuration file. Under the covers, it is a use-package rip-off, all the credit should go to John Wiegley and contributors to the use-package project. I merely copy-pasted the core macro and tweaked it a bit.

(defvar use-layer-configuration-layers nil)
(defvar use-layer-init-hook nil)
(defvar use-layer-config-hook nil)
(defvar use-layer-excluded-packages nil)
(defsubst use-layer-error (msg)
(error "use-layer: %s" msg))