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: RE: RE: RE: Setting keybinding for org-support-shift-select t Date: Mon, 5 Oct 2020 05:55:11 +0200 Message-ID: References: <87d01yi6ad.fsf@ebih.ebihd> <87y2kmgqi7.fsf@ebih.ebihd> <87ft6ugqcp.fsf@ebih.ebihd> <20201004124018.GA292110@scrozzle> <87r1qeavax.fsf@ebih.ebihd> <3713af7f-9c34-4ed9-8f51-acc912344bb2@default> <94858e0d-61f9-4e33-9c53-24ad39b0aab9@default> 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="9352"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org, moasenwood@zoho.eu To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 05 05:57:42 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 1kPHd7-0002JJ-C3 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 05 Oct 2020 05:57:41 +0200 Original-Received: from localhost ([::1]:40534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPHd6-0004wc-7N for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 23:57:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPHat-0004l8-NY for help-gnu-emacs@gnu.org; Sun, 04 Oct 2020 23:55:23 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:41883) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPHar-0006dG-De for help-gnu-emacs@gnu.org; Sun, 04 Oct 2020 23:55:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1601870112; bh=cSTRUTi7GGfUfy63O3P28ObAFCEAldAEC6+wyXfJZ30=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Fy/BuOts1aDlpcJKVA+r8wKeRTPlEAVuyElRhLnENIY7kOjqGLEYX8qOWUSj0UC66 +wGeekw/elwXCoKOJcrIhGE8rtcjzjj3OiK/mDP919HrDFrfz8ZmuW5JOQYF4VS+36 iFJzZRgrQ+ZI6kHAWZK4xqmWVRMIlDT1zlEJ+deg= 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); Mon, 5 Oct 2020 05:55:11 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:NYdlspKRYiCnraUMoI5kPgmvNcglNB4lCX+O3lGY2efFz0JkJ/rPnDfZ+uZS5w83v00iI lXroIhl7r9rTtAh81bue5ZoT4CLWfSgIpWLsFRayZPmPRAcjzd7VwsH+WEx3nQc+odQ0lLTAErwF iSpMXS3KZ0fOxTt6RMvHdN4vz58IUbddFHzZz0ngRb04qt+rtfuqHZzpkojHgHfV3nd6owtdPrwc wuYrP7pEoqbdkmtRgqzTRKtwbM8Hf0jsfHIQt7uf7A8/F7B/I77m2CwUgMnDZaDWnAEKneegK8jS EM= X-UI-Out-Filterresults: notjunk:1;V03:K0:C8vMGtO7IAE=:tjbnp/jqcjL2dUvZLtlUwY Nvj865Ciy1KpJaQrZ3c7nuYBDuIKN1ogNW/IZDw8ds1ZAlpQyH/SQW2M41NpDUOsIRlf/S+f4 ZIbJXrb+hNtjBKrQe5ugfJLp1hfZWzHaXD+dvZl1HqDeeWnzdQTVqP4qUL+98GZlb3r30EApu HXR+kDkFn8POrOYvG/qsxFZozTgk2B1H8ZxJXUE+6OChxMS9xHjB6pPrlMCrrCuHpDEVhVnkR BSZP90aFDA2EGQxfZ0h6ozQaPa6YHG/yGyByrumhcGYEJvOEGa8rC9TmwG9vsoRZE7a2y4aaf ivwSHi0rdwYiQzXovA1TTA8RqhZZIoXSNUa1uiqV82NyPaWwZTtFzE94EkoNyOlYENeWcv2q1 LC1kHz8D4cHpMpQ80tNmY3g9LKxT+4T+XZ0o4/mogqqQ78iFOzjyKoY/Aw6GGoOSKrv0F96i/ KSXcfNcJi42hBZuHG3TGbaceosERZuuBVMnMIYdwkJ33OmU0rY8XpGmEOo1ieaZIx4x1Mg/Hh A1+hFwAtQJvudggFTbrZ2v/mBbvqfntkQaP3ij8MW29gRb+fhyVqLyH+ejEAPETXNY0RgCQYH DNtE1xJgToe3UOuHOUb56Lxf1qduEBBKS8cLAIS6sBS4IgxcClOJHUyut8TJpWVckF/HVjCV4 tFldJb300CF7GQwObVjVv+8iZzlPQohwwQRJLd7X4clhnG7PEK0zMHoKQB83FbZ9ryWk= 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 23:55:19 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:124307 Archived-At: I am getting a bit confused on the to use #'func-name and when using 'func-name Previously, in my code, I was not using the #, see below ( global-set-key (kbd "C-t l ") 'Line-Dw ) Cheers C* > Sent: Sunday, October 04, 2020 at 8:00 PM > From: "Drew Adams" > To: "Christopher Dimech" > Cc: help-gnu-emacs@gnu.org, moasenwood@zoho.eu > Subject: RE: RE: RE: Setting keybinding for org-support-shift-select t > > > Instead of using > > > > (global-set-key [f2] #'execute-extended-command) > > > > can I call my function directly, > > > > (global-set-key "[f2] fnm" #'myfunction) > > Not with that KEY argument to `global-set-key'. > > You can bind your function to a legitimate KEY value. > > (global-set-key (kbd " x") 'myfunction) > > You need to read up on key bindings. Start with > `C-h r key bindings', which takes you here, but > in Emacs: > > https://www.gnu.org/software/emacs/manual/html_node/emacs/Key-Bindings.h= tml >