dot/emacs: Move the cursor properly.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 3 Oct 2021 14:00:21 +0000 (15:00 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 3 Oct 2021 14:00:21 +0000 (15:00 +0100)
Vertical motion is by visual lines, because this allows more
fine-grained motion -- and not for any deep philosophical reason,
because the arguments from principle are all in favour of motion by
logical lines.

Move the cursor visually horizontally when the cursor keys are pressed,
but in buffer order when the traditional C-b/C-f keys are used.  This
makes most sense to me when I'm trying to edit mixed-direction text.  It
probably won't suit anyone else.

dot/emacs

index 370cfee..d67444e 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
 (setq-default comment-column 40)       ;Set a standard comment column
 (setq-default truncate-partial-width-windows nil
              truncate-lines t)
+(setq line-move-visual t
+      visual-order-cursor-movement t)
 (setq default-indicate-empty-lines t)
 (setq view-read-only t)
 (setq-default view-exit-action #'kill-buffer)