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: michael-franzese
Subject: Re: Reset C-, only for the org-mode case
Date: Tue, 4 May 2021 01:50:00 +0200

I have applied the following and gets things to work as I liked.

Is it good enough?

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



> Sent: Sunday, May 02, 2021 at 6:35 PM
> From: "Eli Zaretskii" <eliz@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Reset C-, only for the org-mode case
>
> > From: michael-franzese@gmx.com
> > Date: Sat, 1 May 2021 22:20:08 +0200
> > Sensitivity: Normal
> >
> > Have been using the following keybindings to change the text height.
> >
> > (global-set-key (kbd "C-,") 'text-scale-decrease)
> > (global-set-key (kbd "C-.") 'text-scale-increase)
> >
> > But in org-mode C-, is already being used for org-cycle-agenda-files
> >
> > C-'
> > C-, (org-cycle-agenda-files)
> >
> > It was suggested to me that I can reset C-, and then apply my new keybinding
> > to execute "text-scale-decrease".
> >
> > I would like to reset C-, only for the org-mode case.  What can be done?
>
> global-set-key changes the global binding, not the binding local to
> Org mode.  I suggest to read the node "Rebinding" of the Emacs manual,
> including "Init Rebinding" to which it cross-references, to understand
> the difference between these two, and also learn how to solve your
> particular problem.
>
>



reply via email to

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