about summary refs log tree commit diff stats
path: root/.emacs.d/lisp
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2021-08-21 19:48:31 +0100
committerDavid Morgan <djm_uk@protonmail.com>2021-08-21 19:48:31 +0100
commit46742599ddf6c31a0c1fe16ebc2ea9a143cf4f70 (patch)
treedb5b4f9e8aa9daa32c8e7b48d239f8670f5ec9fe /.emacs.d/lisp
parent2133fafc20c866ea9b802276945d253d3095bdaa (diff)
downloaddotfiles-46742599ddf6c31a0c1fe16ebc2ea9a143cf4f70.tar.gz
Try isearch instead of ctrlf
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r--.emacs.d/lisp/init-navigation.el33
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