Closed teesloane closed 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 🙂
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.
Closing this as I figured it out!
@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!!
in case you're wondering, @franksn's solution works perfectly.
SPC SPC configuration-layer/create-layer
my-spaceline
or whatever you wantpackages.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!
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.
SPC SPC Package install
-> search for your package and install it (both all-the-icons and spaceline-all-the-icons).SPC SPC spaceline-all-the-icons-theme
(see screenshot)so None of the above seemed to work for me, so I also just tossed this from your readme into my
user-config
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.
👍