summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--itches/emacs/emoji.org11
-rw-r--r--itches/emacs/tracker.org38
-rw-r--r--reviews/emacs/hype.org3
3 files changed, 44 insertions, 8 deletions
diff --git a/itches/emacs/emoji.org b/itches/emacs/emoji.org
index 0d163c7..d38066f 100644
--- a/itches/emacs/emoji.org
+++ b/itches/emacs/emoji.org
@@ -15,12 +15,7 @@ For example: regional flags, ZWJ sequences from
- 🐕‍🦺
- regional indicators: 🇪🇺, 🇫🇷
-* TODO Add a convenient way to set a font for all emojis
+* DONE Add a convenient way to set a font for all emojis
-AFAICT there is no convenient way to =set-fontset-font= e.g. Noto
- Color Emoji for "all emojis"; valid TARGETs for this function are
- - single characters
- - character ranges
- - scripts, as defined in =script-representative-chars=
- - charsets
- - nil = any character not already covered by another font-spec
+Robert Pluim added an =emoji= script that can be used with
+~set-fontset-font~ in Emacs 28.
diff --git a/itches/emacs/tracker.org b/itches/emacs/tracker.org
index 33f1ce1..f6e80f7 100644
--- a/itches/emacs/tracker.org
+++ b/itches/emacs/tracker.org
@@ -125,6 +125,44 @@ Unfortunately, Symbola now comes with a [[https://dn-works.com/wp-content/upload
Cf. [[https://bugs.archlinux.org/task/58886][Arch Linux]], [[https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=897047][Debian]], [[https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/EC6I35ILFICKY5W5XTHYJC6UH36B2UQS/][Fedora]], [[https://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg88799.html][Gentoo]], [[https://github.com/NixOS/nixpkgs/pull/79679][NixOS]] and [[https://bugs.launchpad.net/ubuntu/+source/ttf-ancient-fonts/+bug/1824065][Ubuntu]] threads; also
[[https://en.wikipedia.org/wiki/Talk:Open-source_Unicode_typefaces#Symbola_font][Wikipedia]] thread.
+*** imenu
+**** TODO Add grouping/sorting predicates to ~imenu~ completion
+So that ~imenu~ + ~icomplete-vertical-mode~ becomes a built-in,
+buffer-less equivalent of ~imenu-list~.
+
+Simple example of these predicates in action:
+
+#+begin_src elisp
+(completing-read
+ "bleh? "
+ (lambda (string pred action)
+ (if (eq action 'metadata)
+ (let ((sort-fn
+ (lambda (candidates)
+ (let* ((numbers (sort (mapcar 'string-to-number candidates) '<))
+ (evens (seq-filter 'cl-evenp numbers))
+ (odds (seq-difference numbers evens)))
+ (mapcar 'number-to-string
+ (if (and (car evens) (< (car evens) (car odds)))
+ (append evens odds)
+ (append odds evens)))))))
+ `(metadata
+ (cycle-sort-function . ,sort-fn)
+ (display-sort-function . ,sort-fn)
+ (group-function
+ . (lambda (candidate transform)
+ (if transform
+ candidate
+ (if (cl-evenp (string-to-number candidate))
+ "even"
+ "odd"))))))
+ (complete-with-action action
+ (mapcar 'number-to-string
+ (number-sequence 1 10))
+ string
+ pred))))
+#+end_src
+
*** project
**** DONE [[bug:45765]] Change default-directory before prompting in project-compile
:PROPERTIES:
diff --git a/reviews/emacs/hype.org b/reviews/emacs/hype.org
index eeb770a..ef9a5fb 100644
--- a/reviews/emacs/hype.org
+++ b/reviews/emacs/hype.org
@@ -103,6 +103,9 @@ With this option, =RET= and =^= no longer make Dired buffers pile up 🎉
Previously, =a= (~dired-find-alternate-file~) could be used instead of
=RET=, but one had to write a custom command for =^=.
+** Help
+*** Outline in ~describe-bindings~
+~describe-bindings-outline~ makes =C-h b='s output less overwhelming.
* 27
** ~what-cursor-show-names~
I sometimes use =C-u C-x == to (re)discover how the Unicode consortium