commit 27ee8734c98689d7cf844ede5fea2251ad8895f7 parent 91f1b9c0f3b56f687f4536ecd176a7265b9dbe91 Author: Tomas Hlavaty <tom@logand.com> Date: Sun, 8 Dec 2024 21:44:59 +0100 add fbi functions Diffstat:
M | emacs-framebuffer.el | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/emacs-framebuffer.el b/emacs-framebuffer.el @@ -677,6 +677,15 @@ (s (mod m 60))) (format "%d:%02d:%02d" (floor sec 3600) (floor (- m s) 60) s))))) +(defun framebuffer-fbi-directory () + (interactive) + (suspend-emacs "fbi -a $(find . -type f); fg")) + +(defun framebuffer-fbi-slideshow (&optional sec) + (interactive) + (suspend-emacs + (format "fbi -a -t %s $(find . -type f); fg" (or sec 2)))) + (defun framebuffer-fbi (filename) (suspend-emacs (format "fbi -a %s; fg"