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: Emanuel Berg
Subject: Re: Reset C-, only for the org-mode case
Date: Wed, 05 May 2021 11:00:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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"))

? :)

What is it that you want to do? You want this?

  (define-key org-mode-map (kbd "C-,") #'text-scale-decrease)

Then it is enough :)

Now it is `text-scale-decrease' and it doesn't matter what it
was before or if it was set n times to n different values...

Year zero. No tradition. No history!

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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