aboutsummaryrefslogtreecommitdiffstats
path: root/oni
diff options
context:
space:
mode:
authorGravatar Tom Willemse2025-04-10 16:30:05 -0700
committerGravatar Tom Willemse2025-04-10 16:30:05 -0700
commit4e6a70de56f108cd783fe0ef40db238b95348cab (patch)
tree8375db5fe8149c8b60007f9680ba375b42f1447c /oni
parent16c12362dd0b79b2f0506d4bddb8b8fa9a7b7586 (diff)
downloadnew-dotfiles-4e6a70de56f108cd783fe0ef40db238b95348cab.tar.gz
new-dotfiles-4e6a70de56f108cd783fe0ef40db238b95348cab.zip
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.
Diffstat (limited to 'oni')
-rw-r--r--oni/home/config/pop-os/emacs.el2
1 files changed, 1 insertions, 1 deletions
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))