From 0b639b68fde61050a3ee1bad9822498b75100f0b Mon Sep 17 00:00:00 2001 From: Steph Enders Date: Sat, 1 Apr 2023 10:00:34 -0400 Subject: 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. --- .emacs.d/init.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.emacs.d/init.el') 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)) -- cgit v1.2.3-54-g00ecf