unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Unset keybindings from major and minor modes
@ 2021-05-01 20:46 michael-franzese
  2021-05-01 21:24 ` Andreas Schwab
  0 siblings, 1 reply; 3+ messages in thread
From: michael-franzese @ 2021-05-01 20:46 UTC (permalink / raw)
  To: emacs-devel

I would find it useful if there was the equivalent of unset-key that
unsets a keybinding for a particular major or minor-mode, leaving the
keybinding intact for the remaining modes.

  (global-unset-key KEY)
  (local-unset-key KEY)







^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unset keybindings from major and minor modes
  2021-05-01 20:46 Unset keybindings from major and minor modes michael-franzese
@ 2021-05-01 21:24 ` Andreas Schwab
  2021-05-01 21:37   ` michael-franzese
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2021-05-01 21:24 UTC (permalink / raw)
  To: michael-franzese; +Cc: emacs-devel

On Mai 01 2021, michael-franzese@gmx.com wrote:

> I would find it useful if there was the equivalent of unset-key that
> unsets a keybinding for a particular major or minor-mode, leaving the
> keybinding intact for the remaining modes.

Bind it to #'undefined.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unset keybindings from major and minor modes
  2021-05-01 21:24 ` Andreas Schwab
@ 2021-05-01 21:37   ` michael-franzese
  0 siblings, 0 replies; 3+ messages in thread
From: michael-franzese @ 2021-05-01 21:37 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: emacs-devel

I would need more assistance

> Sent: Sunday, May 02, 2021 at 9:24 AM
> From: "Andreas Schwab" <schwab@linux-m68k.org>
> To: michael-franzese@gmx.com
> Cc: emacs-devel@gnu.org
> Subject: Re: Unset keybindings from major and minor modes
>
> On Mai 01 2021, michael-franzese@gmx.com wrote:
>
> > I would find it useful if there was the equivalent of unset-key that
> > unsets a keybinding for a particular major or minor-mode, leaving the
> > keybinding intact for the remaining modes.
>
> Bind it to #'undefined.

Would need some more details to implement what you are saying.

> Andreas.
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
> "And now for something completely different."
>
>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-01 21:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-01 20:46 Unset keybindings from major and minor modes michael-franzese
2021-05-01 21:24 ` Andreas Schwab
2021-05-01 21:37   ` michael-franzese

unofficial mirror of emacs-devel@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/emacs-devel/0 emacs-devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 emacs-devel emacs-devel/ https://yhetil.org/emacs-devel \
		emacs-devel@gnu.org
	public-inbox-index emacs-devel

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.devel
	nntp://news.gmane.io/gmane.emacs.devel


code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs.git

AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git