3

Upon working on org agenda, it's super convenient to employ (org-agenda-follow-mode)

The Org Manual: Agenda Commands

It display the original contents on other window instantly while scrolling around the agenda.

F (org-agenda-follow-mode)
Toggle Follow mode. In Follow mode, as you move point through the agenda buffer, the other window always shows the corresponding location in the Org file. The initial setting for this mode in new agenda buffers can be set with the variable org-agenda-start-with-follow-mode.

When it comes to Dired Dired - GNU Emacs Manual

You have to invoke C-o to achieve the same result.

Is it possible to enable follow-mode in Dired?

3

AFAICS this feature has not yet been realized.

For a start you can use this little minor mode.

(define-minor-mode dired-follow-mode
  "Diplay file at point in dired after a move."
  :lighter " dired-f"
  :global t
  (if dired-follow-mode
      (advice-add 'dired-next-line :after (lambda (arg) (dired-display-file)))
    (advice-remove 'dired-next-line (lambda (arg) (dired-display-file)))))

Note that there is also a follow-mode in Emacs with a different meaning.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.