diff options
author | David Morgan <djm_uk@protonmail.com> | 2021-08-21 19:48:31 +0100 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2021-08-21 19:48:31 +0100 |
commit | 46742599ddf6c31a0c1fe16ebc2ea9a143cf4f70 (patch) | |
tree | db5b4f9e8aa9daa32c8e7b48d239f8670f5ec9fe /.emacs.d/lisp | |
parent | 2133fafc20c866ea9b802276945d253d3095bdaa (diff) | |
download | dotfiles-46742599ddf6c31a0c1fe16ebc2ea9a143cf4f70.tar.gz |
Try isearch instead of ctrlf
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r-- | .emacs.d/lisp/init-navigation.el | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/.emacs.d/lisp/init-navigation.el b/.emacs.d/lisp/init-navigation.el index ce7420b..d925545 100644 --- a/.emacs.d/lisp/init-navigation.el +++ b/.emacs.d/lisp/init-navigation.el @@ -2,20 +2,29 @@ ;;; Commentary: ;;; Code: -(use-package ctrlf - :init - (ctrlf-mode +1) - :config - (add-to-list 'ctrlf-minibuffer-bindings '("C-M-g" . ctrlf-cancel)) - (add-to-list 'ctrlf-minibuffer-bindings '("C-o o" . ctrlf-occur)) - (add-to-list 'ctrlf-minibuffer-bindings '("C-o C-o" . ctrlf-occur)) +;; (use-package ctrlf +;; :init +;; (ctrlf-mode +1) +;; :config +;; (add-to-list 'ctrlf-minibuffer-bindings '("C-M-g" . ctrlf-cancel)) +;; (add-to-list 'ctrlf-minibuffer-bindings '("C-o o" . ctrlf-occur)) +;; (add-to-list 'ctrlf-minibuffer-bindings '("C-o C-o" . ctrlf-occur)) +;; :custom +;; (ctrlf-default-search-style 'fuzzy-regexp) +;; (ctrlf-alternate-search-style 'literal) +;; :bind +;; ("C-S-s" . ctrlf-forward-default) +;; ("C-M-g" . ctrlf-cancel) ;; always bind this in case we have left the minibuffer +;; ("C-*" . ctrlf-forward-symbol-at-point)) + +(use-package isearch + :ensure nil :custom - (ctrlf-default-search-style 'fuzzy-regexp) - (ctrlf-alternate-search-style 'literal) + (search-whitespace-regexp ".*\\b") + (isearch-lax-whitespace t) + :bind-keymap ("C-c s" . search-map) ;; M-s clashes with paredit/smartparens bindings :bind - ("C-S-s" . ctrlf-forward-default) - ("C-M-g" . ctrlf-cancel) ;; always bind this in case we have left the minibuffer - ("C-*" . ctrlf-forward-symbol-at-point)) + ("C-*" . isearch-forward-symbol-at-point)) (use-package smartscan :config |