Fully working mwim config
- Enable in org-mode and visual-line-mode - Configure visual line stops as first options
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user