From 7e071192c0550cb07d2b81ed745aa713fa7c715a Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Thu, 18 May 2023 10:12:16 -0400 Subject: Make HOME key respect indentation --- init.el | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index fafea62..70608e2 100644 --- a/init.el +++ b/init.el @@ -819,6 +819,23 @@ (defalias 'yes-or-no-p 'y-or-n-p) +;; --------------------------------- +;; Improved HOME key behavior +;; -------------------------- +;; Something bugs me about HOME +;; moving POINT to the actual +;; beginning of the line. I want it +;; to go to the beginning of the +;; text (i.e. follow indentation) +;; --------------------------------- + +;; Make home key respect indentation +(global-set-key (kbd "") 'beginning-of-line-text) + +;; Use Shift + HOME for old behavior +(global-set-key (kbd "S-") 'beginning-of-visual-line) + + ;; --------------------------------- ;; Improved Help buffer ;; -------------------- -- cgit v1.2.3