Parcourir la source

Update isearch configs

master
10sr il y a 4 ans
Parent
révision
e7fb00cd79
Signé par: 10sr ID de la clé GPG: C384BB17CBB19347
1 fichiers modifiés avec 11 ajouts et 2 suppressions
  1. +11
    -2
      emacs.el

+ 11
- 2
emacs.el Voir le fichier

@@ -460,8 +460,17 @@ Otherwize hook it."
(define-key esc-map "u" 'undo)
(define-key esc-map "i" (kbd "ESC TAB"))
;; (global-set-key (kbd "C-r") 'query-replace-regexp)
(global-set-key (kbd "C-s") 'isearch-forward-regexp)
(global-set-key (kbd "C-r") 'isearch-backward-regexp)

;; (global-set-key (kbd "C-s") 'isearch-forward-regexp)
;; (global-set-key (kbd "C-r") 'isearch-backward-regexp)
(set-variable 'search-default-mode t)
;; TODO: Do not depend on ivy function
(set-variable 'search-default-mode
(lambda (str lax)
(ivy--regex-fuzzy (replace-regexp-in-string (rx (one-or-more whitespace))
""
str))))
;; (isearch-symbol-regexp "a")

(when (fboundp 'undo-fu-only-undo)
(global-set-key (kbd "C-_") 'undo-fu-only-undo))


Chargement…
Annuler
Enregistrer