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

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

Re: Reset C-, only for the org-mode case


From: Christopher Dimech
Subject: Re: Reset C-, only for the org-mode case
Date: Wed, 5 May 2021 10:31:19 +0200


---------------------
Christopher Dimech
General Administrator - Naiad Informatics - GNU Project (Geocomputation)
- Geophysical Simulation
- Geological Subsurface Mapping
- Disaster Preparedness and Mitigation
- Natural Resource Exploration and Production
- Free Software Advocacy


> Sent: Wednesday, May 05, 2021 at 6:37 PM
> From: "Emanuel Berg via Users list for the GNU Emacs text editor" 
> <help-gnu-emacs@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Reset C-, only for the org-mode case
>
> Christopher Dimech wrote:
>
> >>> Is it good enough?
> >>>
> >>>   (define-key org-mode-map (kbd "C-,") 'undefined)
> >>>   (define-key org-mode-map (kbd "C-,") 'text-scale-decrease)
> >
> > "C-," in already bound in org-mode
>
> Doesn't matter, you don't have to bind it to `undefined'
> first :)

So it is a bit different than with the usual "unset-key"
or "set-key" to nil.

(global-set-key (kbd "C-e") nil)
(global-unset-key (kbd "C-e"))



> > Was not aware one can use #' with emacs code, but only with
> > user defined code.
>
> Oh no, it is the same code, the part of Emacs that is Lisp,
> that's the same Lisp.
>
> --
> underground experts united
> https://dataswamp.org/~incal
>
>
>



reply via email to

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