bug-hyperbole
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#67199: Koutliner breaks Emacs key binding conventions


From: Robert Weiner
Subject: bug#67199: Koutliner breaks Emacs key binding conventions
Date: Thu, 16 Nov 2023 00:44:40 +0000

Nice solution, Martin.  You can join the low traffic hyperbole-users mail list 
via instructions in the README or manual and let us know what uou like and 
don’t like about the Koutliner.  Please use the pre-release available as a 
package at elpa-devel.  — rsw

> On Nov 16, 2023, at 12:30 AM, Martin Marshall <law@martinmarshall.com> wrote:
> 
> Hi Mats, thanks for the reply.
> 
>> kotl-mode defines a lot of bindings, bindings that has been there
>> for a very long time.
> 
> I suspected that might be a factor.  Very understandable.
> 
> In case anyone finds it helpful, I used the code below to create a
> "C-c C-x" prefix and move the bindings there.  Being new to Koutliner,
> I don't know if that will be the best place for these bindings.  But
> it works for now.
> 
> (defvar-keymap my-kotl-extra-map
>    "a" 'kotl-mode:add-child
>    "b" 'kvspec:toggle-blank-lines
>    "c" 'kotl-mode:copy-after
>    "d" 'kotl-mode:down-level
>    "e" 'kotl-mode:exchange-cells
>    "g" 'kotl-mode:goto-cell
>    "h" 'kotl-mode:cell-help
>    "k" 'kotl-mode:kill-contents
>    "l" 'klink:create
>    "m" 'kotl-mode:move-after
>    "p" 'kotl-mode:add-parent
>    "s" 'kotl-mode:split-cell
>    "t" 'kotl-mode:transpose-cells
>    "u" 'kotl-mode:up-level
>    "C-h" 'kotl-mode:hide-tree)
> (defvar kotl-mode-map) ; Keep Flymake happy.
> (advice-add
> 'kotl-mode:setup-keymap :after
> (lambda ()
>   (define-keymap
>     :keymap kotl-mode-map
>     "C-c a" nil
>     "C-c b" nil
>     "C-c c" nil
>     "C-c d" nil
>     "C-c e" nil
>     "C-c g" nil
>     "C-c h" nil
>     "C-c k" nil
>     "C-c l" nil
>     "C-c m" nil
>     "C-c p" nil
>     "C-c s" nil
>     "C-c t" nil
>     "C-c u" nil
>     "C-c C-h" nil
>     "C-c C-x" my-kotl-extra-map)))
> 
> -- 
> Best regards,
> Martin Marshall
> _______________________________________________
> Bug-hyperbole mailing list
> Bug-hyperbole@gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-hyperbole





reply via email to

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