From 4e6a70de56f108cd783fe0ef40db238b95348cab Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 10 Apr 2025 16:30:05 -0700 Subject: emacs/pop-os: Fix path fixup for phpstan This fixes the situation where ‘/app/’ shows up more than once in the path, I'm only interested in replacing the first occurrence. --- oni/home/config/pop-os/emacs.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oni/home/config/pop-os/emacs.el b/oni/home/config/pop-os/emacs.el index 97390f4..b29a3c8 100644 --- a/oni/home/config/pop-os/emacs.el +++ b/oni/home/config/pop-os/emacs.el @@ -202,7 +202,7 @@ buffers.") (lambda (e) (setf (flycheck-error-filename e) (expand-file-name - (string-replace "/app/" "" (flycheck-error-filename e)) + (replace-regexp-in-string (rx string-start "/app/") "" (flycheck-error-filename e)) (project-root (project-current)))) e) errors)) -- cgit v1.3-2-g0d8e