From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: 2QdxY4RzWzUUiLuE@potatochowder.com Newsgroups: gmane.emacs.help Subject: Re: Setting keybinding for org-support-shift-select t Date: Sun, 4 Oct 2020 07:40:18 -0500 Message-ID: <20201004124018.GA292110@scrozzle> References: <87d01yi6ad.fsf@ebih.ebihd> <87y2kmgqi7.fsf@ebih.ebihd> <87ft6ugqcp.fsf@ebih.ebihd> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33848"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 04 14:41:21 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kP3KK-0008j5-Q1 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 14:41:20 +0200 Original-Received: from localhost ([::1]:58498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kP3KJ-0005k4-SZ for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 08:41:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <2QdxY4RzWzUUiLuE@potatochowder.com>) id 1kP3JX-0005ju-Sj for help-gnu-emacs@gnu.org; Sun, 04 Oct 2020 08:40:33 -0400 Original-Received: from www458.your-server.de ([136.243.165.62]:43178) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <2QdxY4RzWzUUiLuE@potatochowder.com>) id 1kP3JU-0004d2-Vj for help-gnu-emacs@gnu.org; Sun, 04 Oct 2020 08:40:30 -0400 Original-Received: from sslproxy05.your-server.de ([78.46.172.2]) by www458.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from <2QdxY4RzWzUUiLuE@potatochowder.com>) id 1kP3JN-0002RU-BK for help-gnu-emacs@gnu.org; Sun, 04 Oct 2020 14:40:21 +0200 Original-Received: from [172.58.59.0] (helo=localhost) by sslproxy05.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <2QdxY4RzWzUUiLuE@potatochowder.com>) id 1kP3JM-000TsH-Jo for help-gnu-emacs@gnu.org; Sun, 04 Oct 2020 14:40:21 +0200 Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: X-Authenticated-Sender: 2QdxY4RzWzUUiLuE@potatochowder.com X-Virus-Scanned: Clear (ClamAV 0.102.4/25946/Sat Oct 3 15:56:08 2020) Received-SPF: pass client-ip=136.243.165.62; envelope-from=2QdxY4RzWzUUiLuE@potatochowder.com; helo=www458.your-server.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/04 08:40:22 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124276 Archived-At: On 2020-10-04 at 14:25:27 +0200, Christopher Dimech 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.