[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
- Reset C-, only for the org-mode case, michael-franzese, 2021/05/01
- Re: Reset C-, only for the org-mode case, Eli Zaretskii, 2021/05/02
- Re: Reset C-, only for the org-mode case, michael-franzese, 2021/05/03
- Re: Reset C-, only for the org-mode case, Emanuel Berg, 2021/05/03
- Re: Reset C-, only for the org-mode case, Christopher Dimech, 2021/05/05
- Re: Reset C-, only for the org-mode case, Emanuel Berg, 2021/05/05
- Re: Reset C-, only for the org-mode case, Christopher Dimech, 2021/05/05
- Re: Reset C-, only for the org-mode case,
Emanuel Berg <=
- Re: Reset C-, only for the org-mode case, Christopher Dimech, 2021/05/05
- Re: Reset C-, only for the org-mode case, Emanuel Berg, 2021/05/05
- Re: Reset C-, only for the org-mode case, Christopher Dimech, 2021/05/05