Replies: 4 comments 1 reply
-
(defun my-meow-mark-symbol ()
(interactive)
(if (use-region-p)
(call-interactively 'meow-next-symbol)
(call-interactively 'meow-mark-symbol))) |
Beta Was this translation helpful? Give feedback.
-
Well, you can have any command you like, there's really no restriction here. Personally, I'm against "Do-What-I-Mean" style command. With a DWIM style command, you call once it does one thing, you call again, it does something else. I want every commands work as how they are described. If we have a command that named as "mark a symbol", it should mark a symbol, that's it. You may notice there are some "DWIM" behaviors in Meow, for example, you can use |
Beta Was this translation helpful? Give feedback.
-
Hi, This seems useful in order to move from one thing to next/prev. I've found myself implementing this in normal mode: '("[" . backward-paragraph) But maybe something like this could work?
|
Beta Was this translation helpful? Give feedback.
-
Oh, I didn't check that one. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I have bound the key
w
tomeow-mark-symbol
. Now when I pressw
a symbol is marked. When i pressw
again nothing changes. It would be nice ifw
wouldmeow-next-symbol
when a region already exists.Is there a simple way to set this up?
Is there a reason not to have such region dependent key bindings?
Beta Was this translation helpful? Give feedback.
All reactions