From cb4d4b69f8bb1f8158d2311692b7607794b75829 Mon Sep 17 00:00:00 2001 From: jasonm23 Date: Thu, 7 Sep 2023 13:00:46 +0700 Subject: [PATCH] Add docs for autothemer-let-palette --- function-reference.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/function-reference.md b/function-reference.md index 8c6886c..1fb4a63 100644 --- a/function-reference.md +++ b/function-reference.md @@ -45,6 +45,7 @@ assist with theme building, here are a few highlights... - [autothemer-saturated-order](#autothemer-saturated-order--a-b) - [autothemer-saturation-group](#autothemer-saturation-group--color--saturation-groups) - [autothemer-sort-palette](#autothemer-sort-palette--theme-colors--sort-fn-group-fn-group-args) +- [autothemer-let-palette](#autothemer-let-palette) ### Internal Functions - [autothemer--alist-to-reduced-spec](#autothemer--alist-to-reduced-spec--facename-alist) - [autothemer--approximate-spec](#autothemer--approximate-spec--reduced-spec-theme) @@ -487,6 +488,21 @@ See `autothemer-group-and-sort` for a full list. (autothemer-sort-palette (theme-colors &optional sort-fn group-fn group-args)) ``` +- - - +### autothemer-let-palette + +Provide a let block for `body` from `autothemer-current-theme`. + +Load/eval the required autothemer source (not byte-compiled) to set +`autothemer-current-theme', before using `autothemer-let-palette` + +function signature +```lisp +;; assuming your theme has a palette color of juicy-watermelon +(autothemer-let-palette ;; + (message "%s" juicy-watermelon)) +``` + - - - ### autothemer--alist-to-reduced-spec internal