Commit 90fc1ead authored by steckerhalter's avatar steckerhalter

Merge branch 'unless-keywords' into 'master'

Change insertion position of `:quelpa'

See merge request !10
parents 226f928c 4d9f8878
......@@ -49,12 +49,12 @@ can prevent packages from being updated automatically.")
(defvar quelpa-use-package-keyword :quelpa)
;; insert `:quelpa' keyword after `:requires' so that quelpa only runs
;; insert `:quelpa' keyword after `:unless' so that quelpa only runs
;; if either `:if', `:when', `:unless' or `:requires' are satisfied
(defun quelpa-use-package-set-keyword ()
(unless (member quelpa-use-package-keyword use-package-keywords)
(setq use-package-keywords
(let* ((pos (cl-position :requires use-package-keywords))
(let* ((pos (cl-position :unless use-package-keywords))
(head (cl-subseq use-package-keywords 0 (+ 1 pos)))
(tail (nthcdr (+ 1 pos) use-package-keywords)))
(append head (list quelpa-use-package-keyword) tail)))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment