mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Expand on lambda!/lambda!!'s docstrings
This commit is contained in:
@ -101,13 +101,17 @@ at the values with which this function was called."
|
|||||||
;;; Sugars
|
;;; Sugars
|
||||||
|
|
||||||
(defmacro λ! (&rest body)
|
(defmacro λ! (&rest body)
|
||||||
"Expands to (lambda () (interactive) ,@body)."
|
"Expands to (lambda () (interactive) ,@body).
|
||||||
|
A factory for quickly producing interaction commands, particularly for keybinds
|
||||||
|
or aliases."
|
||||||
(declare (doc-string 1))
|
(declare (doc-string 1))
|
||||||
`(lambda () (interactive) ,@body))
|
`(lambda () (interactive) ,@body))
|
||||||
(defalias 'lambda! 'λ!)
|
(defalias 'lambda! 'λ!)
|
||||||
|
|
||||||
(defun λ!! (command &optional arg)
|
(defun λ!! (command &optional arg)
|
||||||
"Expands to a command that interactively calls COMMAND with prefix ARG."
|
"Expands to a command that interactively calls COMMAND with prefix ARG.
|
||||||
|
A factory for quickly producing interactive, prefixed commands for keybinds or
|
||||||
|
aliases."
|
||||||
(declare (doc-string 1))
|
(declare (doc-string 1))
|
||||||
(lambda () (interactive)
|
(lambda () (interactive)
|
||||||
(let ((current-prefix-arg arg))
|
(let ((current-prefix-arg arg))
|
||||||
|
Reference in New Issue
Block a user