Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexmurray/ivy-xref
Ivy interface for xref results
https://github.com/alexmurray/ivy-xref
Last synced: about 2 months ago
JSON representation
Ivy interface for xref results
- Host: GitHub
- URL: https://github.com/alexmurray/ivy-xref
- Owner: alexmurray
- Created: 2017-12-01T05:38:39.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-07T14:50:17.000Z (about 2 years ago)
- Last Synced: 2024-11-09T19:41:39.962Z (2 months ago)
- Language: Emacs Lisp
- Size: 142 KB
- Stars: 56
- Watchers: 8
- Forks: 15
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ivy-xref - select from xref candidates with ivy
[![License GPL 3](https://img.shields.io/badge/license-GPL_3-green.svg)](http://www.gnu.org/licenses/gpl-3.0.txt)
[![MELPA](http://melpa.org/packages/ivy-xref-badge.svg)](http://melpa.org/#/ivy-xref)
[![Build Status](https://travis-ci.org/alexmurray/ivy-xref.svg?branch=master)](https://travis-ci.org/alexmurray/ivy-xref)Use [Ivy](https://github.com/abo-abo/swiper) as the interface to select from
xref candidates.![](https://raw.githubusercontent.com/alexmurray/ivy-xref/master/ivy-xref.png)
## Installation
### MELPA
The preferred way to install `ivy-xref` is via
[MELPA](http://melpa.org) - then you can just M-x package-install RET
ivy-xref RETTo enable then simply add the following to your init file:
```emacs-lisp
(require 'ivy-xref)
;; xref initialization is different in Emacs 27 - there are two different
;; variables which can be set rather than just one
(when (>= emacs-major-version 27)
(setq xref-show-definitions-function #'ivy-xref-show-defs))
;; Necessary in Emacs <27. In Emacs 27 it will affect all xref-based
;; commands other than xref-find-definitions (e.g. project-find-regexp)
;; as well
(setq xref-show-xrefs-function #'ivy-xref-show-xrefs)
```We recommend to use [use-package](https://github.com/jwiegley/use-package) to
make this automatic:```emacs-lisp
(use-package ivy-xref
:ensure t
:init
;; xref initialization is different in Emacs 27 - there are two different
;; variables which can be set rather than just one
(when (>= emacs-major-version 27)
(setq xref-show-definitions-function #'ivy-xref-show-defs))
;; Necessary in Emacs <27. In Emacs 27 it will affect all xref-based
;; commands other than xref-find-definitions (e.g. project-find-regexp)
;; as well
(setq xref-show-xrefs-function #'ivy-xref-show-xrefs))
```### Manual installation
If you would like to install the package manually, download or clone it and
place within Emacs' `load-path`, then enable as above.## License
Copyright © 2017 Alex Murray
Distributed under GNU GPL, version 3.