From: Dmitry Gutov <dmitry@gutov.dev>
To: Matt <matt@excalamus.com>, Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Globally apply xref-etags-mode
Date: Sun, 12 Nov 2023 03:35:28 +0200 [thread overview]
Message-ID: <70146c95-885f-fc30-d45f-493424c019bc@gutov.dev> (raw)
In-Reply-To: <18bbebd5024.c6aaed5d1590166.2241907810903668110@excalamus.com>
On 11/11/2023 16:15, Matt wrote:
> (if (string= "tmp" (cadr (file-name-split (file-name-directory (buffer-file-name)))))
This should be shorter:
(if (string-match-p "^/tmp/" (buffer-file-name))
> ;; Bootstrap the TAGS referencing
> (with-current-buffer "ob-shell.el"
> (xref-etags-mode))
Or just 'M-x xref-etags-mode'?
If there is a significant demand for it, we could add
global-xref-etags-mode (with 'define-globalized-minor-mode'), which
would affect all buffers. But so far questions like this one seem rare
enough.
And for some reason or other, you also decided to only turn this minor
mode on in certain files.
next prev parent reply other threads:[~2023-11-12 1:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-11 11:23 Globally apply xref-etags-mode Matt
2023-11-11 13:58 ` Eli Zaretskii
2023-11-11 14:15 ` Matt
2023-11-12 1:35 ` Dmitry Gutov [this message]
2023-11-12 6:22 ` Eli Zaretskii
2023-11-12 9:47 ` Matt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=70146c95-885f-fc30-d45f-493424c019bc@gutov.dev \
--to=dmitry@gutov.dev \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=matt@excalamus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).