How can I bind "F" to negative-argument -> meow-find ? #638
Replies: 1 comment
-
Yes, it's very possible: (meow-normal-define-key
'("F" . (lambda ()
(interactive)
(let ((current-prefix-arg -1))
(call-interactively 'meow-find))))) You're close... lambdas need to be in their own s-expressions, and see https://www.gnu.org/software/emacs/manual/html_node/elisp/Prefix-Command-Arguments.html for relevant info about prefix args. Note that for all keybindings, the "target" needs to be a command, that is, it contains In my custom config, you'll find this section that defines convenience commands for both find and till: (defmacro nt--call-negative (form)
`(let ((current-prefix-arg -1))
(call-interactively ,form)))
(defun nt-negative-find ()
(interactive)
(nt--call-negative 'meow-find))
(defun nt-negative-till ()
(interactive)
(nt--call-negative 'meow-till)) You might find these helpful to include in your own. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My elispfu is terrible. Is this possible? I tried this in the meow-config:
'("F" . lambda () ((negative-argument) (meow-find)))
But obviously it doesn't work.
Beta Was this translation helpful? Give feedback.
All reactions