Fully working mwim config

- Enable in org-mode and visual-line-mode
- Configure visual line stops as first options
This commit is contained in:
2024-09-20 22:52:57 -07:00
parent 8ae628339a
commit 9071ade61b
2 changed files with 24 additions and 5 deletions

View File

@@ -3,12 +3,29 @@
(use-package mwim
:ensure t
:bind (([remap move-beginning-of-line] . mwim-beginning)
([remap move-end-of-line] . mwim-end))
([remap move-end-of-line] . mwim-end)
:map visual-line-mode-map
("C-a" . mwim-beginning)
("C-e" . mwim-end))
:init
(defun mwim-visual-line-end ()
(mwim-point-at
(end-of-visual-line)))
(defun mwim-visual-line-beginning ()
(mwim-point-at
(beginning-of-visual-line)))
:custom
(mwim-beginning-position-functions
'(mwim-line-beginning
'(mwim-visual-line-beginning
mwim-line-beginning
mwim-code-beginning
mwim-comment-beginning)))
mwim-comment-beginning))
(mwim-end-position-functions
'(mwim-visual-line-end
mwim-block-end
mwim-code-end
mwim-line-end)))
;; Allow movement during isearch
;; C/M-v move to next/previous match not currently visible