这是我的目录布局。
 projects/   
   portal/   
   project1/   
   project2/
我希望“门户”子目录将缓冲区文件编码系统设置为 utf-8-unix。而对于其他子目录,我希望将缓冲区文件编码系统设置为 utf-8-dos。.dir-locals.el 文件如下所示,位于项目目录的根目录中。
((nil
  (buffer-file-coding-system . utf-8-dos))
 ("portal"
  (buffer-file-coding-system . utf-8-unix)))
当我从任何文件夹打开任何文件时,缓冲区文件编码系统设置为 utf-8-dos,即使它是来自“门户”子目录的文件。我做错了什么?