[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-hydra 22422dd 219/395: counsel.el (counsel-fonts):
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy-hydra 22422dd 219/395: counsel.el (counsel-fonts): Add a custom transformer with font sample |
Date: |
Thu, 25 Feb 2021 08:32:06 -0500 (EST) |
branch: externals/ivy-hydra
commit 22422dde13ffd77ac1fd0d442e92a4e893e57770
Author: Nathan Moreau <nathan.moreau@m4x.org>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
counsel.el (counsel-fonts): Add a custom transformer with font sample
Fixes #2508
---
counsel.el | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/counsel.el b/counsel.el
index cae8ff7..3386a5d 100644
--- a/counsel.el
+++ b/counsel.el
@@ -5388,6 +5388,15 @@ You can insert or kill the name of the selected font."
:action #'insert
:caller 'counsel-fonts)))
+(ivy-configure 'counsel-fonts
+ :display-transformer-fn #'counsel--font-with-sample)
+
+(defun counsel--font-with-sample (font-name)
+ "Format function for `counsel-fonts'."
+ (format "%-75s%s" font-name
+ (propertize "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ 'face (list :family font-name))))
+
;;** `counsel-kmacro'
(defvar counsel-kmacro-map
(let ((map (make-sparse-keymap)))
- [elpa] externals/ivy-hydra cbcb7ad 034/395: swiper.el (swiper-isearch-format-function): Refactor, (continued)
- [elpa] externals/ivy-hydra cbcb7ad 034/395: swiper.el (swiper-isearch-format-function): Refactor, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 388e0d4 043/395: ivy.el (ivy--magic-tilde-directory): Fix for non-standard home path, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 5e393b0 047/395: .travis.yml (env): Bump to emacs-26.3-travis, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 2d4d6d6 076/395: Use text, not "current", in -dispatching-done when no matches, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 8c23823 073/395: ivy-test.el (ivy-swiper-wgrep): Re-enable on 24.5, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 9e7f21a 078/395: ivy.el (ivy-completing-read): Fix require-match arg being symbol, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 3c6e5da 091/395: Remove counsel--grep-mode-occur, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra e22c8df 103/395: counsel.el (counsel-git-cands): Avoid an extra call to counsel-git-root, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 044f82c 106/395: ivy.el (ivy-set-text): Add, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 0a08436 169/395: ivy.el (ivy--set-candidates): Delete duplicates only for extra sources, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 22422dd 219/395: counsel.el (counsel-fonts): Add a custom transformer with font sample,
Basil L. Contovounesios <=
- [elpa] externals/ivy-hydra 7b3b672 230/395: counsel.el (counsel-company): Fix difference between company-common and company-prefix, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra d3c6cc1 205/395: Adapt tests to when wgrep is not installed, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 5ac1c97 190/395: ivy.el (ivy-dispatching-call): Fix ivy-text being "" for ivy-read-action-ivy, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 7abf656 192/395: Allow counsel-cd to run even if recursive minibuffers are not enabled, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra dd8f519 206/395: Fix ivy-completion-in-region return value, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 50b02a0 222/395: Remove unused lexical variable in recent test, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra a5c6ef9 231/395: counsel-kmacro: Create separator with defcustom instead of defvar., Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 4f6bd9e 210/395: .dir-locals.el (outline-regexp): "^(" is not an outline start, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 334d08c 227/395: ivy.el (ivy--update-history): Use ivy-text if it's not "", Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 24e68ea 225/395: counsel.el (counsel-git-log-cmd): Disable coloring., Basil L. Contovounesios, 2021/02/25