From d5cb19e4cf6809649f1950e86c7fab2b31402fd3 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 11 Oct 2021 11:02:17 -0700 Subject: emacs: strict regex for PROJECT file Since on macOS the filesystem is not case insensitive, it means that a file named `projects.org` will be associated with YAML if the regexp is only `PROJECT`. Making the regexp more strict fixes this issue. --- emacs/custom/fcuny-conf.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emacs/custom') diff --git a/emacs/custom/fcuny-conf.el b/emacs/custom/fcuny-conf.el index 3952c87..2909510 100644 --- a/emacs/custom/fcuny-conf.el +++ b/emacs/custom/fcuny-conf.el @@ -7,7 +7,7 @@ (use-package yaml-mode ;; At Twitter, we use PROJECT files to define a project and the ;; format is YAML - :mode (("PROJECT" . yaml-mode)) + :mode (("PROJECT\\'" . yaml-mode)) :ensure t) (use-package js-mode -- cgit 1.4.1