Questions tagged [spacemacs]

Spacemacs is an Emacs layer focused on modal editing via Evil mode, mnemonics and easy configuration, and the space bar. Use this tag if your question relates to Spacemacs-specific functionality.

Spacemacs is an Emacs layer focused on modal editing via Evil mode, mnemonics and easy configuration, and the space bar.

It can be installed by cloning a GitHub repository, and more extensive documentation is on GitHub as well.

814 questions
41
votes
1 answer

Command to insert code block?

I found the command SPC m x c to insert a small code snippet like ~~. I would like to insert a longer snippet like #+BEGIN_SRC #+END_SRC Is there a command to do this? I found a way to add it for markdown, which is SPC m x c
JuanCaicedo
  • 679
  • 1
  • 6
  • 11
39
votes
2 answers

How to clear cache of projectile file in spacemacs?

I am using spacemacs and often use the SPC p f key binding to find files in a projectile project. But even after removing a file from a git, SPC p f will show me that deleted file. I tried using SPC p I to invalid the cache, but that didn't work.…
Daniel Wu
  • 1,711
  • 2
  • 17
  • 26
38
votes
7 answers

How to pretty-format code (auto-insert newlines, indent, etc)?

I'm using spacemacs but presumably it's emacs knowledge that's required here. I have a JSON file with a single long line, let's say this JSON from json.org/example: {"menu": {"id": "file", "value": "File", "popup": {"menuitem": [{"value": "New",…
Emmanuel Touzery
  • 961
  • 1
  • 8
  • 17
34
votes
6 answers

Running spacemacs alongside regular emacs: how to keep a separate .emacs.d

I would like to try spacemacs. But I don't want to switch from my regular emacs configuration just yet, so I would like the configuration that's currently in my .emacs.d to be in one directory, and the equivalent configuration for spacemacs to be…
Croad Langshan
  • 3,192
  • 14
  • 42
25
votes
5 answers

How to disable line wrapping in Spacemacs?

I have limited emacs experience. Tried to find a solution to disable line wrapping in Spacemacs but couldn't find any. The solution to this problem in Vim is to execute set nowrap. But it's not working in Spacemacs. Any solution to this would be…
Vamsee
  • 353
  • 1
  • 3
  • 5
24
votes
5 answers

How do I change portions of a custom theme?

I'm using one of the pre-defined custom themes that come bundled with Spacemacs (zenburn). How can I modify specific portions of the theme, for example just change the font color used for comments ?
Running Turtle
  • 467
  • 1
  • 4
  • 7
22
votes
4 answers

How to change indent size for typescript layer in Spacemacs?

I have a tsfmt.json file with { "indentSize": 2, "tabSize": 2 } which does get picked up appropriately by tide when running M-x tide-format. But when I start a new line by pressing RET or 'o', it gets indented 4 spaces. How do I change…
agentofuser
  • 501
  • 3
  • 11
19
votes
3 answers

How install a custom theme to spacemacs

It's possible to install a new theme in spacemacs? How should I do this? I'm trying to install some theme from http://themegallery.robdor.com/
Mateus Vahl
  • 541
  • 1
  • 4
  • 8
18
votes
1 answer

Spacemacs: paste into minibuffer

Is there a way to paste something into the minibuffer? For example if I want to eval-expression and paste something in there neiter C-v or (obviously p) will work? There has to be a way.
sebastian
  • 417
  • 3
  • 9
18
votes
2 answers

How do I move a buffer in spacemacs to a different window / frame

Is there any keybinding or function to move an open buffer to a different window or a different frame in spacemacs?
bombadil
  • 547
  • 4
  • 13
18
votes
1 answer

What's the best way to use local packages in spacemacs?

I'm a developer for a package (ycmd) used by spacemacs, and I'd like to try using spacemacs as well. I'd like spacemacs to use the "development version" of my package, i.e. the one I'm hacking on locally. What's the best/proper way to tell spacemacs…
abingham
  • 927
  • 6
  • 18
17
votes
2 answers

How do I turn off Spacemacs’s tildes on empty lines?

I just installed Spacemacs, mainly for its nifty defaults. One default I'm not so pleased about is that it puts tildes on empty lines in the file. I've tried putting (setq vi-tilde-fringe nil) and (setq indicate-empty-lines nil) inside the…
Violet
  • 488
  • 4
  • 13
15
votes
2 answers

How do I jump out of enclosing parentheses?

I'm using spacemacs to edit Python code. When I type an opening parentheses, the closing parentheses is automatically inserted for me and the cursor is put in the middle for further typing. But: once I am done typing inside the parentheses, I need…
Aviral Goel
  • 153
  • 1
  • 4
13
votes
4 answers

Spacemacs: kill buffer and kill window in one command?

Is there a spacemacs command that both closes the window and kills the buffer? In other words, the equivalent of Vim's :q?
sid-kap
  • 544
  • 1
  • 6
  • 13
12
votes
1 answer

How can I use the #+OPTIONS: broken-links: option to ignore broken links, in a specific way?

I have a very large orgmode document that has internal links to many different parts of the document. If I try to export a subtree that has an internal link that points to a part of the document outside of the subtree exported, I get an error Unable…
Jim Larsen
  • 141
  • 4
1
2 3
54 55