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

View File

@@ -9,6 +9,7 @@
("C-j" . nil)) ("C-j" . nil))
:hook ((org-mode . visual-line-mode)) :hook ((org-mode . visual-line-mode))
:custom :custom
(org-special-ctrl-a/e 'reversed)
(org-todo-keywords '((sequence "TODO(t)" "BLOCKED(b)" "|" "DONE(d)"))) (org-todo-keywords '((sequence "TODO(t)" "BLOCKED(b)" "|" "DONE(d)")))
(org-image-actual-width '(800))) (org-image-actual-width '(800)))