From 5b5f0d195a04289301848a8ff454185b80b5948b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 17 Mar 2016 14:25:30 +0100 Subject: Emacs: Remove isearch configuration --- tag-emacs/emacs.d/init.org | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'tag-emacs') diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index ccf726a5..aa4cb293 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -2142,26 +2142,6 @@ a mode for that. (delete-selection-mode t) #+END_SRC -Isearch has a keybind for searching for the currently-selected word. - I often want to use a symbol though, so this comes in handy. [[http://blog.jorgenschaefer.de/2012/11/emacs-search-for-symbol-at-point.html][Source]] - -#+BEGIN_SRC emacs-lisp -(defun fc/isearch-yank-symbol () - "Yank the symbol at point into the isearch minibuffer. - -C-w does something similar in isearch, but it only looks for -the rest of the word. I want to look for the whole string. And -symbol, not word, as I need this for programming the most." - (interactive) - (isearch-yank-string - (save-excursion - (when (and (not isearch-forward) - isearch-other-end) - (goto-char isearch-other-end)) - (thing-at-point 'symbol)))) -(bind-key "C-d" #'fc/isearch-yank-symbol isearch-mode-map) -#+END_SRC - Sub-word movement is really nice for camel- and Pascal-case #+BEGIN_SRC emacs-lisp -- cgit 1.4.1