Break function into library

This commit is contained in:
Case Duckworth 2022-01-05 17:12:03 -06:00
parent 2c86771b1d
commit 084618a930
2 changed files with 19 additions and 5 deletions

View File

@ -1320,8 +1320,6 @@ See also `crux-reopen-as-root-mode'."
(setup (:straight zoom-frm))
(setup (:straight zzz-to-char)
(:+key "M-z" (lambda (prefix)
"Call `zzz-to-char' or `zzz-up-to-char' with PREFIX arg."
(interactive "P")
(call-interactively
(if prefix #'zzz-up-to-char #'zzz-to-char)))))
(:require +zzz-to-char)
(:option zzz-to-char-reach 1024)
(:global "M-z" #'+zzz-to-char))

16
lisp/+zzz-to-char.el Normal file
View File

@ -0,0 +1,16 @@
;;; +zzz-to-char.el -*- lexical-binding: t; -*-
;;; Commentary:
;;
;;; Code:
(defun +zzz-to-char (prefix)
"Call `zzz-to-char' or `zzz-up-to-char' with PREFIX arg."
(interactive "P")
(call-interactively
(if prefix #'zzz-up-to-char #'zzz-to-char)))
(provide '+zzz-to-char)
;;; +zzz-to-char.el ends here