This package is a multiple-cursors extension for phi-search.
phi-search-mc.el provides the following interactive commands:
These functions serve as great way to add fake cursors at your desired points using phi-search.
This package is available on MELPA.
Run the following line to rebind
mc/mark-all-like-this in phi-search
Run the following line to bind
mc/mark-all-like-this in isearch
(add-hook 'isearch-mode-hook 'phi-search-from-isearch-mc/setup-keys)
If you have bound multi-stroke keys to
this may not be enough. For example, I bound
functions, and since they are complex multi-stroke keys on my terminal
emulator where C-> is mapped to C-x @ c > etc.,
I had to add the following lines for the features to work properly.
(defvar phi-search-from-isearch-mc/ctl-map (let ((map (make-sparse-keymap))) (define-key map (kbd ">") 'phi-search-from-isearch-mc/mark-next) (define-key map (kbd "<") 'phi-search-from-isearch-mc/mark-previous) (define-key map (kbd ". !") 'phi-search-from-isearch-mc/mark-all) map)) (defadvice phi-search-from-isearch-mc/setup-keys (after for-terminal activate) (define-key isearch-mode-map (kbd "C-x @ c") phi-search-from-isearch-mc/ctl-map))
Copyright (c) 2013-2015 Akinori MUSHA.
Licensed under the 2-clause BSD license. See
Visit GitHub Repository for the latest information.