I'm transitioning from emacs to spacemacs. In emacs I use neotree to have a nice sidebar where I can explore my files. I like it on the right side, so inside my custom-set-variables within my init file is:

'(neo-window-position (quote right))

which works perfectly.

BUT, with spacemacs things are different. I wrote that line inside my dotspacemacs/user-config() and nothing happens, when I hit SPC f t neotree still appears on the left side.

Can you help me to get it shown on the right? It's almost the only thing I need to feel comfortable working with spacemacs.

Thank you so much. :)

  • could it be neo-tree-mode might be loaded after your custom-set-variables command has executed ?? Check your init file and confirm once Sep 13, 2016 at 17:18
  • @ChakravarthyRaghunandan there is no custom-set-variables on spacemacs that I know of. Is it? Where? Sep 13, 2016 at 17:33
  • If there is no custom-set-variables why not add do something like this :- (eval-after-load "neotree" '(neo-window-position (quote right))). If even this does not work, maybe you should try use-package. It has an option to specify commands to load after a package has been loaded (which is what you need to do) Sep 13, 2016 at 17:47
  • Also just to confirm your code works, disable neotree-mode, go to your *scratch* buffer and copy paste '(neo-window-position (quote right)) and execute the command with C-M-x and reload neotree-mode. It should pop up on the right after you do this. PS. I haven't use neotree or spacemacs. but i assume this is how it should work Sep 13, 2016 at 17:50
  • 1
    Putting (setq neo-window-position 'right) in dotspacemacs/user-config works for me, so I don't know why it doesn't work for you. By the way, the expression '(neo-window-position (quote right)) doesn't do anything if it's not inside of custom-set-variables.
    – bmag
    Sep 14, 2016 at 5:21

1 Answer 1


put neo-window-position 'right in the dotspacemacs/init configuration

  • 2
    can you expand how different this is from the normal emacs configuration mentioned in the question, please? Jul 14, 2019 at 18:15
  • 2
    Can you add more information to your answer? Relevant docstrings and more elaborate answer would flesh out your question considerably.
    – user12563
    Jul 14, 2019 at 18:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.