diff options
author | Case Duckworth | 2024-07-13 00:34:41 -0500 |
---|---|---|
committer | Case Duckworth | 2024-07-13 00:34:41 -0500 |
commit | a163ed2bc13c68d679e5461dea9f7ef79e98eb8c (patch) | |
tree | 849c6aad1559617bd018090409bd9a8749edac58 /emacs | |
parent | Add mastodon (diff) | |
download | dots-a163ed2bc13c68d679e5461dea9f7ef79e98eb8c.tar.gz dots-a163ed2bc13c68d679e5461dea9f7ef79e98eb8c.zip |
Small changes
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/emacs b/emacs index 3844535..f80ca9c 100644 --- a/emacs +++ b/emacs | |||
@@ -4,8 +4,6 @@ | |||
4 | 4 | ||
5 | ;;; Initialization -- see also ~/.emacs.d/early-init.el | 5 | ;;; Initialization -- see also ~/.emacs.d/early-init.el |
6 | 6 | ||
7 | (setq load-prefer-newer t) | ||
8 | |||
9 | (setopt custom-file (locate-user-emacs-file "custom.el")) | 7 | (setopt custom-file (locate-user-emacs-file "custom.el")) |
10 | (load custom-file :no-error) | 8 | (load custom-file :no-error) |
11 | (add-hook 'Custom-mode-hook | 9 | (add-hook 'Custom-mode-hook |
@@ -218,14 +216,6 @@ | |||
218 | (keymap-set minibuffer-local-map "M-DEL" #'minibuffer-delete-directory) | 216 | (keymap-set minibuffer-local-map "M-DEL" #'minibuffer-delete-directory) |
219 | (keymap-set completion-list-mode-map "C-g" #'quit-window) ; is this a good idea? | 217 | (keymap-set completion-list-mode-map "C-g" #'quit-window) ; is this a good idea? |
220 | 218 | ||
221 | ;; Corfu --- tryin this out | ||
222 | |||
223 | (package-ensure 'corfu t) | ||
224 | (keymap-set corfu-map "TAB" #'corfu-next) | ||
225 | (keymap-set corfu-map "<tab>" #'corfu-next) | ||
226 | (keymap-set corfu-map "S-TAB" #'corfu-previous) | ||
227 | (keymap-set corfu-map "<backtab>" #'corfu-previous) | ||
228 | (global-corfu-mode) | ||
229 | 219 | ||
230 | ;;; Minibuffer | 220 | ;;; Minibuffer |
231 | 221 | ||
@@ -577,6 +567,14 @@ | |||
577 | (setq indent-tabs-mode | 567 | (setq indent-tabs-mode |
578 | (if (apply #'derived-mode-p space-indent-modes) nil t)))) | 568 | (if (apply #'derived-mode-p space-indent-modes) nil t)))) |
579 | 569 | ||
570 | ;; Corfu | ||
571 | (package-ensure 'corfu t) | ||
572 | (keymap-set corfu-map "TAB" #'corfu-next) | ||
573 | (keymap-set corfu-map "<tab>" #'corfu-next) | ||
574 | (keymap-set corfu-map "S-TAB" #'corfu-previous) | ||
575 | (keymap-set corfu-map "<backtab>" #'corfu-previous) | ||
576 | (global-corfu-mode) | ||
577 | |||
580 | ;; Eldoc | 578 | ;; Eldoc |
581 | (setopt eldoc-documentation-strategy #'eldoc-documentation-compose-eagerly) | 579 | (setopt eldoc-documentation-strategy #'eldoc-documentation-compose-eagerly) |
582 | 580 | ||
@@ -651,7 +649,6 @@ | |||
651 | (^turn-off 'display-fill-column-indicator-mode)) | 649 | (^turn-off 'display-fill-column-indicator-mode)) |
652 | (add-hook 'prog-mode-hook #'auto-fill-mode) | 650 | (add-hook 'prog-mode-hook #'auto-fill-mode) |
653 | (add-hook 'prog-mode-hook #'electric-pair-local-mode) | 651 | (add-hook 'prog-mode-hook #'electric-pair-local-mode) |
654 | (setopt warning-suppress-types '(comp)) | ||
655 | (context-menu-mode) | 652 | (context-menu-mode) |
656 | (delete-selection-mode) | 653 | (delete-selection-mode) |
657 | (global-goto-address-mode) | 654 | (global-goto-address-mode) |