[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Org mode pollutes the narrow-map
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Org mode pollutes the narrow-map |
Date: |
Fri, 23 Aug 2019 10:40:21 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
Hello,
Omar Antolín Camarena <address@hidden> writes:
> Hello everyone,
>
> Does it seems a little rude that Org mode binds its own narrowing commands in
> the global narrow-map?
>
> You can find this in org.el starting at line 19018:
>
> #+begin_src emacs-lisp
> ;;;; Narrow map
> (org-defkey narrow-map "s" #'org-narrow-to-subtree)
> (org-defkey narrow-map "b" #'org-narrow-to-block)
> (org-defkey narrow-map "e" #'org-narrow-to-element)
> #+end_src
>
> I don't need or really want those commands bound in non-org buffers.
> I think it would be better to bind them (to C-x n s, C-x n b and C-x
> n e) in org-mode-map. This is the approach taken by AUCTeX, for
> example. (To be clear, I mean AUCTeX has some narrowing commands and
> it binds them to C-x n e and C-x n g in its own keymaps.)
It sounds reasonable. I changed the bindings in master. Thank you.
Regards,
--
Nicolas Goaziou