From 8cb8d0dcee54236827abb6b8c98b2fde0f1a3aa6 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 5 Jun 2020 17:31:31 -0400 Subject: [PATCH] Pull in my fork of ivy-xref --- emacs/init.org | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/emacs/init.org b/emacs/init.org index c1deef9..3414cab 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -4895,6 +4895,22 @@ An alternative minibuffer completion framework: (leader-def-key "cs" #'lsp-ivy-workspace-symbol) #+END_SRC +#+BEGIN_SRC emacs-lisp + (use-package ivy-xref + :ensure t + :straight (ivy-xref :fork (:host github :repo "jdormit/ivy-xref")) + :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)) +#+END_SRC + + * graphviz #+BEGIN_SRC emacs-lisp (use-package graphviz-dot-mode