Simplify mwim config and prioritize beginning-of-line

C-a C-k is too ingrained for starting in mid-line
This commit is contained in:
2024-09-20 11:53:07 -07:00
parent ab391624d6
commit c947a53dce
2 changed files with 6 additions and 11 deletions

View File

@@ -4,17 +4,11 @@
:ensure t
:bind (([remap move-beginning-of-line] . mwim-beginning)
([remap move-end-of-line] . mwim-end))
:init
(defun thoom/mwim-org-heading-beginning ()
(mwim-point-at
(move-beginning-of-line nil)
(skip-syntax-forward "_ " (line-end-position))))
:config
(setq mwim-beginning-position-functions
'(thoom/mwim-org-heading-beginning
mwim-code-beginning
mwim-comment-beginning
mwim-line-beginning)))
:custom
(mwim-beginning-position-functions
'(mwim-line-beginning
mwim-code-beginning
mwim-comment-beginning)))
;; Allow movement during isearch
;; C/M-v move to next/previous match not currently visible