mirror of
https://github.com/vale981/apheleia
synced 2025-03-04 17:11:40 -05:00
Delete apheleia-formatters-args-from-file (#273)
Remove unused artifact from #224
This commit is contained in:
parent
f868b22357
commit
2b9e03a7b2
1 changed files with 0 additions and 11 deletions
|
@ -92,17 +92,6 @@ FILE-NAME."
|
||||||
(when-let ((file (locate-dominating-file default-directory file-name)))
|
(when-let ((file (locate-dominating-file default-directory file-name)))
|
||||||
(list file-flag (concat (expand-file-name file) file-name))))
|
(list file-flag (concat (expand-file-name file) file-name))))
|
||||||
|
|
||||||
(defun apheleia-formatters-args-from-file (file-name)
|
|
||||||
"Extract arguments from a text file.
|
|
||||||
Look for a file up recursively from the current directory until FILE-NAME is
|
|
||||||
found. If found, read the file and return an Alist of lines in the file."
|
|
||||||
(when-let ((file (locate-dominating-file default-directory file-name)))
|
|
||||||
(with-temp-buffer
|
|
||||||
(insert-file-contents (concat (expand-file-name file) file-name))
|
|
||||||
(cl-loop for line in (split-string (buffer-string) "\n" t)
|
|
||||||
collect line)))
|
|
||||||
)
|
|
||||||
|
|
||||||
(defun apheleia-formatters-extension-p (&rest exts)
|
(defun apheleia-formatters-extension-p (&rest exts)
|
||||||
"Assert whether current buffer has an extension in EXTS."
|
"Assert whether current buffer has an extension in EXTS."
|
||||||
(when-let ((name buffer-file-name)
|
(when-let ((name buffer-file-name)
|
||||||
|
|
Loading…
Add table
Reference in a new issue