diff options
author | 2023-08-06 00:04:05 -0700 | |
---|---|---|
committer | 2023-08-06 00:04:05 -0700 | |
commit | e7acc034ee178cdc08f848bd7ddea54dbcb833e9 (patch) | |
tree | f20dcbd386831c966ea2d7cef31f0bcb1304db09 /oni-core.el | |
parent | 4d525286b06c0880786e7eb38ce8f5cdae1dffa1 (diff) | |
download | emacs-config-e7acc034ee178cdc08f848bd7ddea54dbcb833e9.tar.gz emacs-config-e7acc034ee178cdc08f848bd7ddea54dbcb833e9.zip |
[oni-core] Make the minibuffer prompt intangible
Diffstat (limited to 'oni-core.el')
-rw-r--r-- | oni-core.el | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/oni-core.el b/oni-core.el index 60a1ee4..6b198d1 100644 --- a/oni-core.el +++ b/oni-core.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse <tom@ryuslash.org> ;; Keywords: local -;; Version: 2023.0805.235739 +;; Version: 2023.0806.000329 ;; Package-Requires: (oni-data-dir oni-embrace oni-hydra expand-region multiple-cursors gcmh diminish ws-butler which-key insert-char-preview mixed-pitch ace-window vertico marginalia orderless consult embark docstr mini-frame) ;; This program is free software; you can redistribute it and/or modify @@ -181,7 +181,6 @@ _s_: String list" (add-hook 'auto-save-hook #'oni-core--ensure-autosave-directory-exists) (add-hook 'before-save-hook 'time-stamp) (add-hook 'electric-indent-local-mode-hook #'oni-core--switch-newline-keys) -(add-hook 'minibuffer-setup-hook 'electric-pair-local-mode) (add-hook 'prog-mode-hook 'goto-address-prog-mode) (global-set-key (kbd "C-M-SPC") 'er/expand-region) @@ -366,6 +365,14 @@ _s_: String list" ;;; Remember the place I left at in files when closing them. (save-place-mode) +;;; Minibuffer + +(add-hook 'minibuffer-setup-hook 'electric-pair-local-mode) +(add-hook 'minibuffer-setup-hook 'cursor-intangible-mode) + +(setq minibuffer-prompt-properties + (append '(cursor-intangible t) minibuffer-prompt-properties)) + ;;; Vertico (vertico-mode) |