From: Tatsu Takamaro Sent: Thursday, December 19, 2024 4:19 PM
Got it! Just needed to use a function name that I defined in the first line of
"defun..."
"C-S-<left>" #'tt-delword-backward
"C-S-<right>" #'tt-delword-forward
So easy! I entangled myself trying to find out "some way to bind a whole piece of
code to a key".
You need to read up on `interactive'.
Yes, you're right. The word "interactive" played a trick on me first. English
is not my native and the docs could be tricky sometimes. I learned Lisp (it was Scheme
(script fu), a dialect of Lisp to create plugins for GIMP) many years ago, rather unusual
language and that's what makes it interesting.
You're doing fine. It takes time to find one's way around these things. A few
things, in particular, are a bit complicated (key bindings, menus, font-lock,
display-buffer-alist,...).
Thanks for your patience in explaining! I'm grateful to you and to all who has
been answering!
You're welcome.
So, now there is only one question stays unanswered. I posted it under title "Q4 -
the bottom edge of Emacs doesn't stick to the taskbar", no answers for now.
I did answer that. IMO, it's not super-straightforward. As I said (Eli didn't
agree), Emacs doesn't know about a Windows task bar. (The task bar can be in
different places and have different sizes. AFAIK, you need to access the
registry to find out its details.)
Unless someone gives you a simpler approach, maybe take a look at
`frame-cmds.el' and `oneonone.el' for info about how I, at least,
position/resize frames so their bottoms are on the task bar.
https://www.emacswiki.org/emacs/download/frame-cmds.el
https://www.emacswiki.org/emacs/download/oneonone.el