Re: Key binding in help (was: Re: PROPOSAL: Bind `org-fold-hide-subtree' by default in Org Mode.)

2023-03-08 Thread Max Nikulin
On 26/02/2023 06:32, Samuel Wales wrote: i acccomplished this with (define-key org-mode-map (quote [C-tab]) (quote org-next-link)) [kbd would be better]. ... i.e. like m-. on a function name, if that is set up to work, or c-h f command tab ret to go to the fuction definition, but for keys. I

Re: Key binding in help (was: Re: PROPOSAL: Bind `org-fold-hide-subtree' by default in Org Mode.)

2023-02-25 Thread Samuel Wales
what i meant was that i have a binding, org-next-link, bound to c-tab. i acccomplished this with (define-key org-mode-map (quote [C-tab]) (quote org-next-link)) [kbd would be better]. i did similar with org-link-minor-mode. i was just offtopicing that it would be useful to jump to those definiti

Re: PROPOSAL: Bind `org-fold-hide-subtree' by default in Org Mode.

2023-02-25 Thread Karl Fogel
On 25 Feb 2023, Max Nikulin wrote: On 25/02/2023 07:13, Karl Fogel wrote: Okay, today I did some research and found that every "C-c C-" binding is used in Org Mode except for "C-c C-g". While that one is technically reserved for the mode's use No, there is an explicit exception for C-g, see

Re: PROPOSAL: Bind `org-fold-hide-subtree' by default in Org Mode.

2023-02-25 Thread Max Nikulin
On 25/02/2023 07:13, Karl Fogel wrote: Okay, today I did some research and found that every "C-c C-" binding is used in Org Mode except for "C-c C-g". While that one is technically reserved for the mode's use No, there is an explicit exception for C-g, see (info "(elisp) Key Binding Conventio

Key binding in help (was: Re: PROPOSAL: Bind `org-fold-hide-subtree' by default in Org Mode.)

2023-02-25 Thread Max Nikulin
On 23/02/2023 11:48, Samuel Wales wrote: huh i had put org-next-link there. i wish define-key could have a button in a help page like functions and vars do so you could go to where you define it. [there are probably 300 competing packages that do exactly that.] C-h f org-next-link displays a

Re: PROPOSAL: Bind `org-fold-hide-subtree' by default in Org Mode.

2023-02-24 Thread Karl Fogel
Okay, today I did some research and found that every "C-c C-" binding is used in Org Mode except for "C-c C-g". While that one is technically reserved for the mode's use, I suspect the reason it's unbound is that people are accustomed to using C-g as a quit command (and they get that effect if

Re: PROPOSAL: Bind `org-fold-hide-subtree' by default in Org Mode.

2023-02-23 Thread Karl Fogel
On 23 Feb 2023, Max Nikulin wrote: On 23/02/2023 00:01, Karl Fogel wrote:  (when (not (keymap-lookup nil "C-"))    (keymap-local-set "C-" 'org-fold-hide-subtree)) So FWIW C- is not bound in Org Mode buffers for me, in Emacs 30.x (i.e., recent development builds). lisp/tab-bar.el:130: (unl

Re: PROPOSAL: Bind `org-fold-hide-subtree' by default in Org Mode.

2023-02-22 Thread Samuel Wales
huh i had put org-next-link there. i wish define-key could have a button in a help page like functions and vars do so you could go to where you define it. [there are probably 300 competing packages that do exactly that.] On 2/22/23, Max Nikulin wrote: > On 23/02/2023 00:01, Karl Fogel wrote: >>

Re: PROPOSAL: Bind `org-fold-hide-subtree' by default in Org Mode.

2023-02-22 Thread Max Nikulin
On 23/02/2023 00:01, Karl Fogel wrote:  (when (not (keymap-lookup nil "C-"))    (keymap-local-set "C-" 'org-fold-hide-subtree)) So FWIW C- is not bound in Org Mode buffers for me, in Emacs 30.x (i.e., recent development builds). lisp/tab-bar.el:130: (unless (global-key-binding [(control t

Re: PROPOSAL: Bind `org-fold-hide-subtree' by default in Org Mode.

2023-02-22 Thread Karl Fogel
On 22 Feb 2023, Max Nikulin wrote: On 22/02/2023 14:29, Karl Fogel wrote: I put it on "C-" because that's normally unbound in Org Mode, and because so many of the Org Mode cycling commands involve modified tab already. Perhaps C- is not the best choice: 9092c289b6bea38bb519e6c59a60237ae5af8f

Re: PROPOSAL: Bind `org-fold-hide-subtree' by default in Org Mode.

2023-02-22 Thread Max Nikulin
On 22/02/2023 14:29, Karl Fogel wrote: I put it on "C-" because that's normally unbound in Org Mode, and because so many of the Org Mode cycling commands involve modified tab already. Perhaps C- is not the best choice: 9092c289b6bea38bb519e6c59a60237ae5af8f08 author Bastien Mon Jun 1 14:39:28

PROPOSAL: Bind `org-fold-hide-subtree' by default in Org Mode.

2023-02-21 Thread Karl Fogel
Hey everyone, is there a reason we don't bind `org-fold-hide-subtree' by default in Org Mode? I bind it to C- and now find this to be one of the most useful keybindings in Org Mode. I suspect my workflow is pretty typical. The use case is simple: When reading material within a certain head