]> git.eshelyaron.com Git - emacs.git/commit
Add support for user-customizable icons
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 28 Jul 2022 12:31:33 +0000 (14:31 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 28 Jul 2022 12:39:38 +0000 (14:39 +0200)
commit601737d7506727d66953a65e68105cf7eb3ee044
tree1dbe961f0305c2c2d6f14550cad3203567dcad84
parent163424e04b7f75a1655fd263ba4b6d6d4fa880b2
Add support for user-customizable icons

* doc/emacs/custom.texi (Specific Customization): Mention it.

* doc/emacs/display.texi (Icons): New node.

* doc/lispref/display.texi (Icons): New node.

* lisp/button.el (buttonize):
(button--properties, buttonize-region): Allow not overriding faces.

* lisp/cus-edit.el (custom-save-all): Save icons.
(custom-icon): New widget.
(custom-icon-value-create, custom-toggle-hide-icon)
(custom--icons-widget-value, custom-icon-set): Helper functions
for the widget.
(customize-icon): Main command.
(custom-icon-state-set, custom-icon-state): Helper functions.
(custom-theme-set-icons): Function to be used by theme writers.
(custom-set-icons): Function to be used in .emacs.
(custom-save-icons): New function.

* lisp/custom.el (custom-push-theme): Add icons.

* lisp/emacs-lisp/icons.el: New file.

* test/lisp/emacs-lisp/icons-tests.el: Add some tests.
doc/emacs/custom.texi
doc/emacs/display.texi
doc/lispref/display.texi
etc/NEWS
lisp/button.el
lisp/cus-edit.el
lisp/custom.el
lisp/emacs-lisp/icons.el [new file with mode: 0644]
test/lisp/emacs-lisp/icons-tests.el [new file with mode: 0644]