   (defun my-swiper-thing-at-point ()
     (interactive)
     (deactivate-mark)
-    (ivy-with-thing-at-point 'swiper)
+    (ivy-with-thing-at-point 'swiper-isearch)
     )
 
   )

  :config
  (add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)
  (add-hook 'LaTeX-mode-hook 'turn-on-reftex)
  (add-hook 'LaTeX-mode-hook 'visual-line-mode)
  (add-hook 'LaTeX-mode-hook 'TeX-source-correlate-mode)
  (add-hook 'LaTeX-mode-hook 'TeX-PDF-mode)
  (setq TeX-source-correlate-method 'synctex) ;; use SyncTeX for forward/backward search between source/PDF output

  ;; Width of posframe (full window width)
  (setq ivy-posframe-parameters
	'((left-fringe . 8)
	  (right-fringe . 8)
	  (lines-truncate . t)))
  (defun ivy-posframe-get-size ()
    "The default functon used by `ivy-posframe-size-function'."
    (list
     :height ivy-posframe-height
     :width (window-width)
     :min-height (or ivy-posframe-min-height ivy-height)
     :min-width (or ivy-posframe-min-width (round (* (window-width) 1.0))))
    )
  )

(use-package ivy-xref
