summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteph Enders <steph@senders.io>2023-04-01 10:00:34 -0400
committerSteph Enders <steph@senders.io>2023-04-01 10:00:34 -0400
commit0b639b68fde61050a3ee1bad9822498b75100f0b (patch)
tree2ec8c622a0da0182af227c62ad585ff8a6ed22b6
parentcd734d9a27b28ae2ba68ca5acf945c9bc1b94b1d (diff)
emacs: Have C-e/a respect true lines
With virtual-lines C-e / C-a will jump to the end of the virtual line. This has it jump to the ACTUAL start/end of the line, much like vim's 0 $ does. Which is nice.
-rw-r--r--.emacs.d/init.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 5192c51..42788eb 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -40,6 +40,10 @@
;; follow symlinks
(setq vc-follow-symlinks nil)
+;; visual-line-mode make C-a/C-e go to the end of the /actual line/
+(global-set-key (kbd "C-e") 'end-of-line)
+(global-set-key (kbd "C-a") 'beginning-of-line)
+
;; Custom mode prefixes
;;; set gemini to markdown mode for now
(add-to-list 'auto-mode-alist '("\\.gmi\\'" . markdown-mode))