rougier / nano-modeline

GNU Emacs / N Λ N O Modeline
GNU General Public License v3.0
175 stars 31 forks source link

Dependency on Magnars/s #3

Closed romatthe closed 3 years ago

romatthe commented 3 years ago

Hi,

I was trying to give your (quite beautiful!) package a spin but couldn't get it to work with the following configuration

(use-package nano-theme
  :straight (nano-theme :type git
                        :host github
                        :repo "rougier/nano-theme")
  :demand t
  :config
  (nano-dark))

(use-package nano-modeline
  :straight (nano-modeline :type git
                           :host github
                           :repo "rougier/nano-modeline")
  :demand t
  :config
  (nano-modeline))

I would constantly get the error

Error (use-package): nano-modeline/:catch: Cannot open load file: No such file or directory, s Disable showing Disable logging

File is missing: Cannot open load file, No such file or directory, s

It took me a while to realize this, but it was complaining about missing Magnars' string manipulation package, and indeed you swapped out subr-x for s in 3bfc046.

Now this is easily fixed by requiring the s package, but:

What do you think is the best approach?

rougier commented 3 years ago

Thanks for the analysis and I think it would be better if we can get rid of the dependency. I think I used in the first place because I could not find the equivalent in elisp (I'm still learning). Do you know if this exists? Else we coudl write our own. Could you make a PR?

rougier commented 3 years ago

Dependency has been removed.