help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting keybinding for org-support-shift-select t


From: 2QdxY4RzWzUUiLuE
Subject: Re: Setting keybinding for org-support-shift-select t
Date: Sun, 4 Oct 2020 07:40:18 -0500

On 2020-10-04 at 14:25:27 +0200,
Christopher Dimech <dimech@gmx.com> wrote:

> A problem I am encountering with keybindings is that I end up with
> very strange key combinations. I rather type a key followed by a
> string as is done in Emacs such as "M-x org-mode". Is there an
> relatively easy way to do this for one's own operations?

The same way Emacs does it:  define your function as interactive, e.g.:

    (defun scroll-up-1-line () "Scroll up one line."
      (interactive) (scroll-up 1))

interactive can handle functions that take parameters, too, and will
prompt you when you execute the function with M-x.  It can also
interpret C-u and other numeric prefixes.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]