[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ef-themes 8155fd60db 037/281: Add command to select Ef
From: |
ELPA Syncer |
Subject: |
[elpa] externals/ef-themes 8155fd60db 037/281: Add command to select Ef theme |
Date: |
Tue, 16 Aug 2022 16:58:16 -0400 (EDT) |
branch: externals/ef-themes
commit 8155fd60dbf32dea386c36114f88ac5476ded12d
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Add command to select Ef theme
---
ef-themes.el | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/ef-themes.el b/ef-themes.el
index e4382e02cc..ef9dd1320a 100644
--- a/ef-themes.el
+++ b/ef-themes.el
@@ -44,6 +44,35 @@
:prefix "ef-themes-"
:tag "Ef Themes")
+;;; Commands and their helper functions
+
+(defun ef-themes--list-enabled-themes ()
+ "Return list of `custom-enabled-themes' with ef- prefix."
+ (seq-filter
+ (lambda (theme)
+ (string-prefix-p "ef-" (symbol-name theme)))
+ custom-enabled-themes))
+
+(defconst ef-themes-themes '(ef-summer ef-winter)
+ "List of Ef Themes.")
+
+(defvar ef-themes--select-theme-history nil)
+
+(defun ef-themes--select-prompt ()
+ "Minibuffer prompt for `ef-themes-select'."
+ (completing-read "Select Ef Theme: "
+ ef-themes-themes
+ nil t nil
+ 'ef-themes--select-theme-history))
+
+;;;###autoload
+(defun ef-themes-select (theme)
+ "Load an Ef THEME using minibuffer completion.
+When called from Lisp, THEME is a symbol."
+ (interactive
+ (list (intern (ef-themes--select-prompt))))
+ (load-theme theme :no-confirm))
+
;;; Faces and variables
(defconst ef-themes-faces
- [elpa] externals/ef-themes 72d6530484 036/281: ef-winter: revise bg-region, (continued)
- [elpa] externals/ef-themes 72d6530484 036/281: ef-winter: revise bg-region, ELPA Syncer, 2022/08/16
- [elpa] externals/ef-themes cde324d404 038/281: Disable other Ef themes in ef-themes-select, ELPA Syncer, 2022/08/16
- [elpa] externals/ef-themes 30f8c042b5 040/281: Fix magit-mode-line-process face inheritance, ELPA Syncer, 2022/08/16
- [elpa] externals/ef-themes 2a4cc0275e 022/281: Remove helper code which was for testing purposes, ELPA Syncer, 2022/08/16
- [elpa] externals/ef-themes 1de145c064 021/281: ef-winter: tweak bg-hover, ELPA Syncer, 2022/08/16
- [elpa] externals/ef-themes ba15c513f1 023/281: Refine outline headings, ELPA Syncer, 2022/08/16
- [elpa] externals/ef-themes f1bc17079b 026/281: ef-winter: tweak hover background, ELPA Syncer, 2022/08/16
- [elpa] externals/ef-themes 26911c636d 020/281: ef-winter: tweak diff hues, ELPA Syncer, 2022/08/16
- [elpa] externals/ef-themes 5a686fd4f3 034/281: ef-winter: revise colour mapping, ELPA Syncer, 2022/08/16
- [elpa] externals/ef-themes c3d4f0d875 033/281: ef-winter: tweak green hues, ELPA Syncer, 2022/08/16
- [elpa] externals/ef-themes 8155fd60db 037/281: Add command to select Ef theme,
ELPA Syncer <=
- [elpa] externals/ef-themes e5e1fe86d5 027/281: ef-winter: tweak yellow-faint, ELPA Syncer, 2022/08/16
- [elpa] externals/ef-themes 9667c50802 041/281: ef-winter: tweak a couple of special hues, ELPA Syncer, 2022/08/16
- [elpa] externals/ef-themes dbc1fdbd1f 044/281: ef-winter: tweak colour mapping for emails, ELPA Syncer, 2022/08/16
- [elpa] externals/ef-themes 3ab7e03644 042/281: ef-winter: tweak colour mapping, ELPA Syncer, 2022/08/16
- [elpa] externals/ef-themes d40705310e 048/281: Use custom-known-themes for better filtering, ELPA Syncer, 2022/08/16
- [elpa] externals/ef-themes 819a951e03 050/281: ef-winter: update border colour, ELPA Syncer, 2022/08/16
- [elpa] externals/ef-themes 7e32a4493f 051/281: ef-summer: tweak bg-hl-line, ELPA Syncer, 2022/08/16
- [elpa] externals/ef-themes edb0208dd2 052/281: Remove irrelevant comments, ELPA Syncer, 2022/08/16
- [elpa] externals/ef-themes 20ca5d508d 054/281: ef-day: add initial version of new theme, ELPA Syncer, 2022/08/16
- [elpa] externals/ef-themes 311a7dee13 045/281: ef-winter: tweak colour mapping, ELPA Syncer, 2022/08/16