On Tue, 22 Dec 2020 at 17:18, Gustavo Barros <gusbrs.2...@gmail.com>
wrote:
Anyway, what I came up is a slight variation from Marco's approach,
which may
be 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.