From: Joe Wreschnig Date: Sat, 17 Feb 2018 11:08:45 +0000 (+0100) Subject: Update ‘use-package’ example for current ‘:after’ behavior. X-Git-Url: https://git.korewanetadesu.com/?p=pelican-mode.git;a=commitdiff_plain;h=9c1c188d974e6284124b590286f74ea22f0b1978 Update ‘use-package’ example for current ‘:after’ behavior. In older versions of ‘use-package’, the ‘:after’ option would override deferred loading and load the package after the specified ones. Today it allows but doesn’t force load; you need to combine it with ‘:demand’ to get the equivalent behavior. --- diff --git a/README.md b/README.md index 308094c..65c21d4 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Or with `use-package` and deferred loading: ``` emacs-lisp (use-package pelican-mode - :after (:any org rst markdown-mode adoc-mode) + :demand :after (:any org rst markdown-mode adoc-mode) :config (pelican-global-mode)) ``` diff --git a/pelican-mode.el b/pelican-mode.el index 02d9078..f2f2357 100644 --- a/pelican-mode.el +++ b/pelican-mode.el @@ -51,7 +51,7 @@ ;; Or with ‘use-package’ and deferred loading: ;; ;; (use-package pelican-mode -;; :after (:any org rst markdown-mode adoc-mode) +;; :demand :after (:any org rst markdown-mode adoc-mode) ;; :config ;; (pelican-global-mode)) ;;