feat(lib): backport find-sibling-file

I will slowly phase out projectile in favor of project.el, starting with
projectile-find-other-file, which -- as of Emacs 29 -- has a native
alternative: `find-sibling-file`.

Ref: doomemacs/community#1
This commit is contained in:
Henrik Lissner
2024-03-10 20:43:52 -04:00
parent 3b405c8d81
commit 198fe82b6d
5 changed files with 77 additions and 9 deletions

View File

@ -8,13 +8,7 @@ be aligned.
If set to `nil', disable all the above behaviors.")
(after! projectile
(pushnew! projectile-other-file-alist
'("css" "scss" "sass" "less" "styl")
'("scss" "css")
'("sass" "css")
'("less" "css")
'("styl" "css")))
(add-to-list 'find-sibling-rules '("/\\([^/]+\\)\\.\\(\\(s[ac]\\|le\\)ss\\|styl\\)\\'" "\\1\\.css"))
;;