Explorar el Código

Update isearch configs

master
10sr hace 4 años
padre
commit
e7fb00cd79
Firmado por: 10sr ID de clave GPG: C384BB17CBB19347
Se han modificado 1 ficheros con 11 adiciones y 2 borrados
  1. +11
    -2
      emacs.el

+ 11
- 2
emacs.el Ver fichero

@@ -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))


Cargando…
Cancelar
Guardar