From 079d13cdd801ff467a93570ba3ade16669a42e0e Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Sat, 23 Apr 2022 11:58:47 +0200 Subject: =?UTF-8?q?change=20hook=20to=20run=20when=20in=20"Biblioth=C3=A8q?= =?UTF-8?q?ues=20de=20Paris"=20directory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- local/bibli-paris/bibli-paris.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'local') diff --git a/local/bibli-paris/bibli-paris.el b/local/bibli-paris/bibli-paris.el index 11d560e..0b5f36a 100644 --- a/local/bibli-paris/bibli-paris.el +++ b/local/bibli-paris/bibli-paris.el @@ -510,7 +510,7 @@ STATE (string)." (add-hook 'find-file-hook (lambda () - (when (and (string= (file-name-base buffer-file-name) "Bibliothèques de Paris") + (when (and (string-suffix-p "Bibliothèques de Paris/" (file-name-directory buffer-file-name)) (string-prefix-p "org" (file-name-extension buffer-file-name))) (bibli-paris/mode +1)))) -- cgit v1.2.3