|
From: | Gustavo Barros |
Subject: | Re: Bug: Org line commands and visual-line mode bindings [9.3.7 (9.3.7-15-gc9abb4-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20200727/)] |
Date: | Tue, 22 Dec 2020 17:24:55 -0300 |
User-agent: | mu4e 1.4.13; emacs 27.1 |
On Tue, 22 Dec 2020 at 17:18, Gustavo Barros <gusbrs.2016@gmail.com> wrote:
Anyway, what I came up is a slight variation from Marco's approach, which maybe just general enough to be employed by Org. #+begin_src emacs-lisp (add-hook 'visual-line-mode-hook #'my/visual-line-mode-hook-for-org) (defun my/visual-line-mode-hook-for-org () (when (and (derived-mode-p 'org-mode) visual-line-mode) ;; Ensure 'visual-line-mode' does not shadow Org's line commands. (local-set-key [remap move-beginning-of-line] nil) (local-set-key [remap move-end-of-line] nil) (local-set-key [remap kill-line] nil))) #+end_src I've lightly tested this here and it seems to be working. WDYT?
Damn! Sorry for the noise. It *doesn't* work, and disables Org's own remappings, of course. Just as I sent I realized I had something else enabled which was doing the actual job (my previous take on this thread). Back on the deadlock.
Sorry again. Gustavo.
[Prev in Thread] | Current Thread | [Next in Thread] |