aggressive-indent-mode icon indicating copy to clipboard operation
aggressive-indent-mode copied to clipboard

Wrong type argument: stringp, :lighter

Open tsdh opened this issue 3 years ago • 4 comments

Commit 6a96e2890caa19f64f75b43dbd020e4da8efc5c7 changed the define-minor-mode invocation to use keyword args but now the mandatory DOC argument is not provided anymore and at least emacs 29 signals the above error upon trying to update/install the package.

tsdh avatar Oct 04 '22 05:10 tsdh

I get the same error on Emacs 28.2.

joostkremers avatar Oct 04 '22 08:10 joostkremers

Should be fixed by #157.

skangas avatar Oct 04 '22 21:10 skangas

Just for the record, I have the same issue with emacs 28.1.

I temporarily fixed it by adding a docstring in ~/.emacs.d/elpa/aggressive-indent-20221003.2200/aggressive-indent.el

(define-minor-mode aggressive-indent-mode
++  "Minor mode to keep your code always indented."
  :lighter " =>"

fstamour avatar Oct 05 '22 17:10 fstamour

For anyone using Doom Emacs, this should help before it's merged, or at least it seems to work for me

(package! aggressive-indent :recipe (:host github :repo "skangas/aggressive-indent-mode" :branch "important-fix"))

Basically telling doom to use the branch from the fork instead of the main repo.

darthdeus avatar Oct 07 '22 15:10 darthdeus