关于.dir-local文件

Sometimes, you may wish to define the same set of local variables to all the files in a certain directory and its subdirectories, such as the directory tree of a large software project. This can be accomplished with directory-local variables. File local variables override directory local variables, so if some of the files in a directory need specialized settings, you can specify the settings for the majority of the directory's files in directory variables, and then define file local variables in a few files which need the general settings overridden.

大概说的意思是我们能在指定目录设置特别变量,文件局部变量会优先目录局部变量。

((nil . ((indent-tabs-mode . t)         ;; 设置所有模式下的缩进
         (fill-column . 80)))
 (c-mode . ((c-file-style . "BSD")      ;; 指定c-mode下的file style
            (subdirs . nil)))
 ("src/imported". ((nil . ((change-log-default-name . "ChangeLog.local"))))))  ;; 指定目录下的特殊设置

如何重新应用dir-locals,当你选择过以后