emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Easy configuration of a site-lisp directory


From: Eli Zaretskii
Subject: Re: Easy configuration of a site-lisp directory
Date: Thu, 12 Aug 2021 08:48:32 +0300

> From: "Basil L. Contovounesios" <contovob@tcd.ie>
> Cc: monnier@iro.umontreal.ca,  cpitclaudel@gmail.com,
>   yuri.v.khan@gmail.com,  arthur.miller@live.com,  emacs-devel@gnu.org
> Date: Wed, 11 Aug 2021 19:21:50 +0100
> 
> >> FWIW, I run an installed Emacs, but tell M-. to prefer the Git sources
> >> with the following MWE:
> >
> > Is this for Lisp only?
> 
> Yes.
> 
> > Because AFAICT it does nothing for C sources.
> 
> When installed from a Git checkout, source-directory already holds the
> correct value, so M-. works OOTB for definitions in C.
> 
> In other installations, the user need only set that one variable
> appropriately.  Even if they don't, M-. will prompt for it
> interactively.

YMMV, but IMO configuring Xref to use etags for Lisp is an easier and
more versatile technique.  All it needs is this:

  (add-hook 'emacs-lisp-mode-hook 'xref-etags-mode)

I did that long ago, and never looked back.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]