Closed twmr closed 2 years ago
Why doesn't it work for you?
Good question.
What does it return for you?
(string-match-p "ya?ml" "yaml")
(string-match-p "ya?ml" "yml")
BTW I'm on emacs-29
0, which is truthy in elisp.
Ok, maybe there was a misunderstanding then. I always thought that sth is fishy because yaml-p
is 0.
Thx for the tip about 0
being t
in elisp! This ticket can be closed.
In https://github.com/wyuenho/emacs-pet/blob/main/pet.el#L221 you're using
string-match-p
for the config file extensions. This doesn't work for me, becausestring-match-p
returns 0 in my case. I would simply useor maybe you have a better idea.