domtronn / spaceline-all-the-icons.el

A Spaceline Mode Line theme using All The Icons for Emacs
MIT License
235 stars 25 forks source link

Requesting help installing in spacemacs #31

Closed teesloane closed 7 years ago

teesloane commented 7 years ago

EDIT: Figured it out!

I just had to run `SPC SPC configuration-layer/update-packages.

Leaving this here for ...posterity? Helping any others who might be in the same boat...


Hello, hello!

I stumbled across your spaceline tonight and it looks awesome. I've spent about the last 1.5 hours getting it to work with my spacemacs and I'm feeling like perhaps I've got something in my .spacemacs that could be conflicting with it. If you have time to lend a hand that would be great!

Here's what I've tried.

   dotspacemacs-additional-packages '(js-import centered-window-mode all-the-icons spaceline-all-the-icons base16-theme)

so None of the above seemed to work for me, so I also just tossed this from your readme into my user-config

  (package-install 'spaceline-all-the-icons)

  (require 'spaceline-all-the-icons)
  (use-package spaceline-all-the-icons
    :after spaceline
    :config (spaceline-all-the-icons-theme))

but at this point I have no idea what I'm doing!

Thanks for any help, and let me know if I can provide any more information.

👍

domtronn commented 7 years ago

Thanks for all this info @teesloane! I don't use Spacemacs personally, so this is really helpful!

I'll look at adding this to the README.md to help others, but I'll leave this issue here for now, like you say, to help others 🙂

franksn commented 7 years ago

You can try adding new layer and write this in the packages.el (using spacemacs-base for example):

(defconst my-spaceline-packages
  '(all-the-icons
    spaceline
    spaceline-all-the-icons))

(defun my-spaceline/init-all-the-icons ()
    (use-package all-the-icons
      :config (setq neo-theme 'icons)))

(defun my-spaceline/init-spaceline ()
   (use-package spaceline))

(defun my-spaceline/init-spaceline-all-the-icons ()
    (use-package spaceline-all-the-icons
      :after spaceline
      :config (progn
                (spaceline-all-the-icons-theme)
                (setq spaceline-all-the-icons-separator-type 'slant))))

Correct me if any of you found a better way.

teesloane commented 7 years ago

Closing this as I figured it out!

itome commented 7 years ago

@teesloane Hi! I'm now trying to use this package in spacemacs. I installed this package by adding to dotspacemacs-additional-packages. I added this in dotspacemacs/user-config

  (use-package spaceline-all-the-icons
    :after spaceline
    :config (spaceline-all-the-icons-theme))

And Run SPC SPC configuration-layer/update-package But not worked correctly. Did you do something other than I write here? Any ideas would be appreciated!!

CarlQLange commented 6 years ago

in case you're wondering, @franksn's solution works perfectly.

  1. run SPC SPC configuration-layer/create-layer
  2. select the private directory (or whatever dir you want)
  3. name it my-spaceline or whatever you want
  4. paste the following into the opened packages.el
(defconst my-spaceline-packages
  '(all-the-icons
    spaceline
    spaceline-all-the-icons))

(defun my-spaceline/init-all-the-icons ()
    (use-package all-the-icons
      :config (setq neo-theme 'icons)))

(defun my-spaceline/init-spaceline ()
   (use-package spaceline))

(defun my-spaceline/init-spaceline-all-the-icons ()
    (use-package spaceline-all-the-icons
      :after spaceline
      :config (progn
                (spaceline-all-the-icons-theme)
                (setq spaceline-all-the-icons-separator-type 'slant))))

Great job @franksn!