emacs-devel
[Top][All Lists]
Advanced

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

Re: status of dir-vars or dir-locals inclusion in emacs?


From: Stefan Monnier
Subject: Re: status of dir-vars or dir-locals inclusion in emacs?
Date: Tue, 31 Jul 2007 14:45:04 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

>     ;; - need a way to add to auto-mode-alist per-project
>     ;;   e.g., semantic wants GCC's .def files to be c-mode
>     ;;   (RMS points out that this is also easily done by adding comments
>     ;;   to the particular files.)

> The point is, we don't need another way to do it,
> so that item should be deleted.

BTW, another way to implement it is to match the directory portion in
auto-mode-alist.  E.g. you can have an entry such as
("/emacs/.*\\.[ch]\\'" . gnu-style-c-mode).

>     ;; When a file is loaded, project.el will search up the directory
>     ;; hierarchy.

Maybe you can try to use the new `locate-dominating-file' function.


        Stefan




reply via email to

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