diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2022-04-23 11:58:47 +0200 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2022-04-23 11:58:47 +0200 |
| commit | 079d13cdd801ff467a93570ba3ade16669a42e0e (patch) | |
| tree | 47b6d1099874e9bf5b9159f4e8bc1e0213b663f4 | |
| parent | 07f40be79be741a4062d287891b44702feddf57f (diff) | |
change hook to run when in "Bibliothèques de Paris" directory
| -rw-r--r-- | local/bibli-paris/bibli-paris.el | 2 |
1 files changed, 1 insertions, 1 deletions
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)))) |
