help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How can I reload etags project path


From: Sébastien Vauban
Subject: Re: How can I reload etags project path
Date: Mon, 03 Nov 2008 17:03:44 +0100
User-agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux)

Hi yinglcs,

> In my .emacs I have defined the etags project path like this:
>
> (defvar etags-project-path "/media/storage/working" "*Base path for
> your project")
>
> (require 'etags)
> (setq tags-file-name (expand-file-name "TAGS" etags-project-path))
>
> After i open emacs, how can i point to a different project
> path,let's say i have multiple project etag files, how can i
> switch dynamically?

Use:

(require 'sure-tags)

which will make sure that tags file exists (and builds it if it
doesn't), allowing you to first rebuild the tags file or specify
a new one when the search fails.

Seb

-- 
Sébastien Vauban


reply via email to

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