From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Setting keybinding for org-support-shift-select t Date: Sun, 4 Oct 2020 16:03:45 +0200 Message-ID: References: <87d01yi6ad.fsf@ebih.ebihd> <87y2kmgqi7.fsf@ebih.ebihd> <87ft6ugqcp.fsf@ebih.ebihd> <20201004124018.GA292110@scrozzle> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25933"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: 2QdxY4RzWzUUiLuE@potatochowder.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 04 16:06:52 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 1kP4f5-0006ej-Mg for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 16:06:51 +0200 Original-Received: from localhost ([::1]:55728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kP4f3-00057N-Tc for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 10:06:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kP4cK-00057A-7T for help-gnu-emacs@gnu.org; Sun, 04 Oct 2020 10:04:00 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:55889) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kP4cI-0004Ob-6J for help-gnu-emacs@gnu.org; Sun, 04 Oct 2020 10:03:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1601820226; bh=1a3i7Ls88ANuNXTCFMJpu1jFQMwLhF9H3jRX3a48r4k=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=QTl48CCOuI/Rw5kCwFtChPf6ZCQcX6lbC1oEMEJKX0CMdAt2N32on1YISZrc6/POF wqopGUeeAjlNKSQuyIt3mbf2Di6DCdOUs9EHk3AE/Ogp4NVaxFevx4dE3HxVdkhLYE 9NboIVdTN1Bg9d+KyyUPN1LFWFNUV+nKskiYTjgM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs04.server.lan [172.19.170.170]) (via HTTP); Sun, 4 Oct 2020 16:03:45 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <20201004124018.GA292110@scrozzle> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:1F55xQ1YFF4yOUdQNMH1GGNq/r5EHCF1z887h6HGr/XlUF3/HXUVCSFpAbOTkHvo0Y21x Z+VpHoV2gfvuDd7wYJyXGHsb3DlFpaS1GhRRwZpriE/mZcvHlGQZUUz5tcxCm/YCH4PofTCE/o1n /D1BEeq3VKBHraucJQY3t7UulWlI4DTIWN5O3oFFE3Wq5UpSBd50FbhVyJALgZKrNAVDQLuXSyW2 rwaAz2VM3M5v+27gb2n6hyiLPlv9TwleVNTD9g3twXK+P4v3By1CCzOx1bG3ONBB6QAsY4t55DmH uU= X-UI-Out-Filterresults: notjunk:1;V03:K0:9IRsnXZ9nAs=:K4ls40uFPkVgfz8LR0Rbt0 houh6xiG7h9U1K/8gndVWb1w6GOMR7CujCfPtkzcTd8Ad4Sa6JdQJudZaG//jsbzkCakxJTgQ 5rkHs2Z4HzMA0/ByCbeQ/Syl7DzYC2hwrk7AOPbLOMnd3Gn593eA54+360WvbN9Cuf4EeKxmW 3A5Ehr5+E5xvCDyS7GLgFhcKMlDq7BWay1wSfxkilbwmK8Bfc1yTOsoqFOKRAMuUC12F+6c/5 yqYL9oiKHqW//EDY385czG5atbxjEhddWogSeELr/Pjk73eZHlv5lzXuK9S226ElByqV75OLO OrssPgAvpR1vPqBaGpckng7G86UlhYhVEFAG1SUqmHin3W+R+msxpdX2uDInwIRTXQsNSYjlc z/nkRPls5cCeoRjmUxWRYlO0bg+ogXef+Ch9qW4K4BoIKhIXqaa93PF1G88+U6wGFBXKM3pKd xhguoUnhMF9GQiNkDnWcHcxUy1ahHYzH9AGF9s15y9IHxtqKfwDie2c4XD51M60GtOyzShh+a BRywdfberY1k5ywc5CvdB2i47ZjbvHzQwUDKK0gDpjWdvQB8pB1hg82AFNvVVisoDEw/AaPSC ZdyXX8CD0UTM8Mf6MoUzA7sQCIWn6KdxHkrywQ153ESnmCtaoseFsftbjSz1qOGY1TpfY910M Lm2JcCVtSdxtohYluQ1nI19x3LEiiU37/HlrxrOTdu0zqymBTIFO5W14R6//+UIPiUyA= Received-SPF: pass client-ip=212.227.17.20; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/04 10:03:55 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:124279 Archived-At: Let's try to do a simple thing I have (global-set-key (kbd " a") 'org-agenda) How can I use " agenda" to fire org-agenda. Regards C* > Sent: Sunday, October 04, 2020 at 1:40 PM > From: 2QdxY4RzWzUUiLuE@potatochowder.com > To: help-gnu-emacs@gnu.org > Subject: Re: Setting keybinding for org-support-shift-select t > > 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. > >