diff options
| author | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-05-18 10:12:16 -0400 |
|---|---|---|
| committer | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-05-18 10:12:16 -0400 |
| commit | 7e071192c0550cb07d2b81ed745aa713fa7c715a (patch) | |
| tree | 4755d9634256bb8fe753be5360a8517accf91424 | |
| parent | Orderless tweaks (diff) | |
| download | mmosmacs-7e071192c0550cb07d2b81ed745aa713fa7c715a.tar.gz mmosmacs-7e071192c0550cb07d2b81ed745aa713fa7c715a.tar.bz2 mmosmacs-7e071192c0550cb07d2b81ed745aa713fa7c715a.zip | |
Make HOME key respect indentation
| -rw-r--r-- | init.el | 17 |
1 files changed, 17 insertions, 0 deletions
| @@ -820,6 +820,23 @@ | |||
| 820 | 820 | ||
| 821 | 821 | ||
| 822 | ;; --------------------------------- | 822 | ;; --------------------------------- |
| 823 | ;; Improved HOME key behavior | ||
| 824 | ;; -------------------------- | ||
| 825 | ;; Something bugs me about HOME | ||
| 826 | ;; moving POINT to the actual | ||
| 827 | ;; beginning of the line. I want it | ||
| 828 | ;; to go to the beginning of the | ||
| 829 | ;; text (i.e. follow indentation) | ||
| 830 | ;; --------------------------------- | ||
| 831 | |||
| 832 | ;; Make home key respect indentation | ||
| 833 | (global-set-key (kbd "<home>") 'beginning-of-line-text) | ||
| 834 | |||
| 835 | ;; Use Shift + HOME for old behavior | ||
| 836 | (global-set-key (kbd "S-<home>") 'beginning-of-visual-line) | ||
| 837 | |||
| 838 | |||
| 839 | ;; --------------------------------- | ||
| 823 | ;; Improved Help buffer | 840 | ;; Improved Help buffer |
| 824 | ;; -------------------- | 841 | ;; -------------------- |
| 825 | ;; Helpful provides a more | 842 | ;; Helpful provides a more |