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

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

Re: Key binding phases of the moon


From: Jean Louis
Subject: Re: Key binding phases of the moon
Date: Wed, 18 Nov 2020 02:23:25 +0300
User-agent: Mutt/2.0 (3d08634) (2020-11-07)

* Christopher Dimech <dimech@gmx.com> [2020-11-18 02:11]:
> How can I display the phases of the moon by setting
> a keybinding in my emacs init file?
> 
> Emacs says that I can use 'M-x phases-of-moon'.
> But how can I set a key binding for it?
> 
> https://ftp.gnu.org/old-gnu/Manuals/emacs/html_node/emacs_423.html

use the manual within Emacs by using C-h r to get Emacs info manual.

I suggest you find this section there:

File: emacs.info,  Node: Key Bindings,  Next: Init File,  Prev: Variables,  Up: 
Customization

49.3 Customizing Key Bindings
=============================


Globally over all various modes of editing you may define key binding as:

(global-set-key (kbd "<f5>") 'phases-of-moon)



reply via email to

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