diff options
author | Alan Pearce | 2016-03-17 14:25:30 +0100 |
---|---|---|
committer | Alan Pearce | 2016-03-17 14:25:30 +0100 |
commit | 5b5f0d195a04289301848a8ff454185b80b5948b (patch) | |
tree | 2690adceae02a7a6b708f71838d4d6cd87196897 | |
parent | 4e89ea1bbfdd8d9d0d4c55e8439c20e0d19d4415 (diff) | |
download | dotfiles-5b5f0d195a04289301848a8ff454185b80b5948b.tar.lz dotfiles-5b5f0d195a04289301848a8ff454185b80b5948b.tar.zst dotfiles-5b5f0d195a04289301848a8ff454185b80b5948b.zip |
Emacs: Remove isearch configuration
-rw-r--r-- | tag-emacs/emacs.d/init.org | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index ccf726a..aa4cb29 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 |