Skip to content

Commit fd8b94c

Browse files
committed
refactor(lib): remove the unused +mode-alist-add-ts-modes!
1 parent 0ac2069 commit fd8b94c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

core/me-lib.el

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,6 @@ If INDEX is 0, ELEMENT is inserted before the first element."
134134
(setcdr c (cons element (cdr c)))
135135
(set list-var (cdr padded-list))))
136136

137-
(defmacro +mode-alist-add-ts-modes! (mode-alist)
138-
"Duplicate elements in MODE-ALIST to include Treesit modes.
139-
140-
For the alist \=((some-mode . spec)), this will add \=(some-ts-mode . spec)."
141-
`(cl-callf append ,mode-alist
142-
(cl-loop
143-
for mode-spec in ,mode-alist
144-
collect (let ((ts-mode (intern (format "%s-ts-mode" (string-remove-suffix "-mode" (symbol-name (car mode-spec)))))))
145-
(when (fboundp ts-mode) (cons ts-mode (cdr mode-spec)))))))
146-
147137
;;; Missing primitive utilities
148138

149139
;; Adapted from `evil-unquote', takes functions into account

0 commit comments

Comments
 (0)