I'm using swiper for searching, one thing i very much miss compared to isearch is to insert the word at point into swiper. I have icicles installed, but
M-., which i usally use to insert word at point into the current minifbuffer, doesn't seem to work.
I found some code in the emacs wiki
(define-key swiper-map (kbd "M-.") (lambda () (interactive) (insert (format "\\<%s\\>" (with-ivy-window (thing-at-point 'word))))))
That seemed to basically do what I want, except it doesn't really work. It inserts the text with
<> surrounded (ok, i could fix that) and multiple calls to
M-. don't continue inserting the next word(s) into swiper.
Therefore I wonder if there is any canonical solution to this, if swiper already provides the functionality to insert word at point into the search, then I didn't find it in the documentation.