[Top][All Lists]

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

Re: org-mode-map binds [tab]

From: Stefan Monnier
Subject: Re: org-mode-map binds [tab]
Date: Thu, 08 Jul 2021 23:01:29 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> Does outline.el need to be fixed too?
> ——snippet from outline.el
> (defvar outline-mode-cycle-map
>  (let ((map (make-sparse-keymap)))
>    (let ((tab-binding `(menu-item
>                         "" outline-cycle
>                         ;; Only takes effect if point is on a heading.
>                         :filter ,(lambda (cmd)
>                                    (when (outline-on-heading-p) cmd)))))
>      (define-key map [tab]       tab-binding)
>      (define-key map (kbd "TAB") tab-binding)
>      (define-key map (kbd "<backtab>") #'outline-cycle-buffer))
>    map)
>  "Keymap used by `outline-mode-map' and `outline-minor-mode-cycle'.")

Very much so, indeed, thanks.
I just pushed that change to `master`.


reply via email to

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