Malabarba / aggressive-indent-mode

Emacs minor mode that keeps your code always indented. More reliable than electric-indent-mode.
850 stars 36 forks source link

Wrong type argument: stringp, :lighter #158

Open tsdh opened 1 year ago

tsdh commented 1 year ago

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.

joostkremers commented 1 year ago

I get the same error on Emacs 28.2.

skangas commented 1 year ago

Should be fixed by #157.

fstamour commented 1 year ago

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 " =>"
darthdeus commented 1 year ago

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.