From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: Accessing Lisp Intro with eintr Date: Mon, 17 Oct 2022 10:20:58 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27437"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02) Cc: "help-gnu-emacs@gnu.org" To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 17 09:34:42 2022 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 1okKe1-0006vw-Vk for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 17 Oct 2022 09:34:41 +0200 Original-Received: from localhost ([::1]:44032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okKds-0002GO-Up for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 17 Oct 2022 03:34:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okKRd-0007NW-I1 for help-gnu-emacs@gnu.org; Mon, 17 Oct 2022 03:21:53 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:51987) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okKRX-0000Af-Dr for help-gnu-emacs@gnu.org; Mon, 17 Oct 2022 03:21:52 -0400 Original-Received: from localhost ([::ffff:102.87.19.13]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000056203.00000000634D0267.00000173; Mon, 17 Oct 2022 00:21:10 -0700 Mail-Followup-To: Heime , "help-gnu-emacs@gnu.org" Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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:140069 Archived-At: * Heime via Users list for the GNU Emacs text editor [2022-10-17 07:57]: > Using info, this is the way to access the manuals using "elisp" and > "emacs". I recommend using Hyperbole package to get some quicker functions: {M-x package-install RET hyperbole} as then what you see here within curly brackets becomes a link that you activate with M-RET: - For Emacs Lisp reference I use always {C-h r TAB RET} - To get into Emacs Lisp Intro is to evaluate this function: (info "(eintr) Top") - To make a command, meaning invokable Emacs Lisp function: (defun my-emacs-lisp-intro () (interactive) (info "(eintr) Top")) - To assign that command to a key: (keymap-set global-map "C-c e" #'my-emacs-lisp-intro) Now all what you need to do is press {C-c e} to get "An Introduction to Programming in Emacs Lisp" And remember that key bindings shall rather begin with C-c for user configured functions. You can put those definitions in your init file. (defun my-emacs-lisp-intro () (interactive) (info "(eintr) Top")) Little problem is that function `keymap-set' is in my latest version of Emacs, so you better use: (define-key global-map (kbd "C-c e") #'my-emacs-lisp-intro) -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/