switched isearch to consult-line

This commit is contained in:
2026-03-31 23:25:39 +02:00
parent 963be3b47f
commit 625e0db4b0
+33 -13
View File
@@ -52,10 +52,16 @@
(global-set-key (kbd "C-x C-b") 'ibuffer)
;; regex isearches as default
(global-set-key (kbd "C-s") 'isearch-forward-regexp)
(global-set-key (kbd "C-r") 'isearch-backward-regexp)
(global-set-key (kbd "C-M-s") 'isearch-forward)
(global-set-key (kbd "C-M-r") 'isearch-backward)
;; (global-set-key (kbd "C-s") 'isearch-forward-regexp)
;; (global-set-key (kbd "C-r") 'isearch-backward-regexp)
;; (global-set-key (kbd "C-M-s") 'isearch-forward)
;; (global-set-key (kbd "C-M-r") 'isearch-backward)
(global-set-key (kbd "C-M-s") 'isearch-forward-regexp)
(global-set-key (kbd "C-M-r") 'isearch-backward-regexp)
;; moved to consult-line
;; apropos?
(setq apropos-do-all t)
@@ -77,7 +83,7 @@
;; Move through windows with Ctrl-<arrow keys>
(windmove-default-keybindings 'control) ; You can use other modifiers here
;; (windmove-default-keybindings 'control) ; You can use other modifiers here
;; Fix archaic defaults
(setopt sentence-end-double-space nil)
@@ -112,8 +118,9 @@
("C-x b" . consult-buffer) ; orig. switch-to-buffer
("M-y" . consult-yank-pop) ; orig. yank-pop
;; Searching
("M-s r" . consult-ripgrep)
("M-s l" . consult-line) ; Alternative: rebind C-s to use
("C-S-f". consult-fd)
("C-r" . consult-ripgrep)
("C-s" . consult-line) ; Alternative: rebind C-s to use
("M-s s" . consult-line) ; consult-line instead of isearch, bind
("M-s L" . consult-line-multi) ; isearch to M-s s
("M-s o" . consult-outline)
@@ -240,9 +247,7 @@
;; TODO do we need flycheck anymore?
;; i don't think so?
;; (use-package flycheck :ensure t :defer t :hook after-init)
(use-package flycheck :ensure t :defer t :hook after-init)
;; (use-package flycheck-languagetool
;; :ensure t
;; :hook (text-mode . flycheck-languagetool-setup)
@@ -304,11 +309,11 @@
)
;; spell checking with languagetool, slow but thorough
;; dowloaded:
;; downloaded:
;; https://languagetool.org/download/ngram-data/ngrams-de-20150819.zip
;; https://languagetool.org/download/ngram-data/ngrams-en-20150817.zip
;; https://languagetool.org/download/LanguageTool-stable.zip
;; and put them in a directory like this
;; and put them in a directory like this:
;; emacs-init-dir/.languagetool/contents of LanguageTool-stable.zip like languagetool-server
;; emacs-init-dir/.languagetool/contents of ngram.* like de or en
(use-package languagetool
@@ -332,7 +337,7 @@
;; TODO make languagetool languagte toggle function
;; TODO make languagetool language toggle function
;; defun my/languagetool-toggle-language
;; switch between auto, en, de
;; have it be auto or de by default and then switch either to en or to de
@@ -373,6 +378,21 @@
(calendar-set-date-style 'european)
;; TODO: this is currently in my custom.el, but i'd like to have it here, figure out how to.
;; '(calendar-month-header
;; '(propertize
;; (format "%s (%d) %d" (calendar-month-name month) month year)
;; 'font-lock-face 'calendar-month-header))
;; stole from prelude:
;; reduce the frequency of garbage collection by making it happen on
;; each 50MB of allocated data (the default is on every 0.76MB)
(setq gc-cons-threshold 50000000)
;; warn when opening files bigger than 100MB
(setq large-file-warning-threshold 100000000)
;; flycheck told me to do this: