]> git.eshelyaron.com Git - emacs.git/commit
Make it easier to customize wallpaper command
authorStefan Kangas <stefankangas@gmail.com>
Wed, 14 Sep 2022 10:12:46 +0000 (12:12 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Wed, 14 Sep 2022 10:57:09 +0000 (12:57 +0200)
commit8c3b40254bfa29c843eb4ff967c5e6f7c717bb07
tree22262f5aea07ef74541c0f6902a48cc2dee70e19
parent41a31553197911b6ccdb5da93801ff63cef9b3cf
Make it easier to customize wallpaper command

* lisp/image/wallpaper.el
(wallpaper--default-commands): New defvar.
(wallpaper--find-command): Use above new defvar.
(wallpaper--find-command-arguments): New defun.
(wallpaper-command): Rename from 'wallpaper-commands' and change
type to string.  Use 'wallpaper--find-command' to set it.
(wallpaper-command-args): New defcustom.  Use
'wallpaper--find-command-arguments' to set it.
(wallpaper--set-wallpaper-command): New defun.  Use as :set property
for 'wallpaper-command'.
(wallpaper-set): Use above new defcustoms to set the wallpaper.
Suggested by Eli Zaretskii <eliz@gnu.org>.
etc/NEWS
lisp/image/wallpaper.el