refactor: prefer cl-lib over dash
This commit is contained in:
parent
c17b5473d0
commit
b70acaa3f6
1 changed files with 13 additions and 13 deletions
|
|
@ -2093,10 +2093,10 @@ Problem solved, right? Not quite. We can't just read the variable it returns, be
|
|||
"Guess the indent offset of the current buffer based on
|
||||
`editorconfig--get-indentation'."
|
||||
(require 'editorconfig)
|
||||
(require 'dash)
|
||||
(let* ((indent-value 720720)
|
||||
(alist (editorconfig--get-indentation nil (number-to-string indent-value))))
|
||||
(--some (pcase it
|
||||
(cl-some (lambda (entry)
|
||||
(pcase entry
|
||||
;; Non-mode-specific variables - ignore
|
||||
(`(tab-width . ,_) nil)
|
||||
(`(evil-shift-width . ,_) nil)
|
||||
|
|
@ -2106,7 +2106,7 @@ Problem solved, right? Not quite. We can't just read the variable it returns, be
|
|||
((zerop (mod indent-value val))
|
||||
(* (symbol-value var) (/ indent-value val)))
|
||||
((zerop (mod val indent-value))
|
||||
(/ (symbol-value var) (/ val indent-value))))))
|
||||
(/ (symbol-value var) (/ val indent-value)))))))
|
||||
alist)))
|
||||
|
||||
(advice-add #'indent-bars--guess-spacing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue