38 votes

How to clear cache of projectile file in spacemacs?

Type M-x projectile-invalidate-cache and you'll see the command with the bindings listed next to it. For me the bindings said M-m p I which was correct, and should be the default I suspect for holy ...
Jimmy Hoffa's user avatar
31 votes
Accepted

How to change indent size for typescript layer in Spacemacs?

There is a variable called typescript-indent-level that, by default is set to 4. For Spacemacs specifically, you can change the value of this variable by directly setting it in your dotspacemacs/user-...
J.C. Yamokoski's user avatar
24 votes

How install a custom theme to spacemacs

Select your theme: http://themegallery.robdor.com/ Go to your dotfile: SPC f e d Adding or edit the follow line adding our theme name(gruvbox in this example), make sure that is the first element of ...
Mateus Vahl's user avatar
18 votes
Accepted

Spacemacs: paste into minibuffer

C-y does work, but you can also paste into the minibuffer from the default register using dotspacemacs-emacs-leader-key instead of dotspacemacs-leader-key, in which case you can use: leaderre" or ...
Braham Snyder's user avatar
18 votes

Spacemacs: kill buffer and kill window in one command?

spacemacs binding for kill-buffer-and-window: Cx,4,0
sjas's user avatar
  • 301
17 votes

how to use org-mode speed commands (speed keys)?

You're referring to the org-mode speed commands. They are not well documented. Org-mode speed commands, also called speed keys, are single-key keybindings that perform actions on org-mode subtrees (or ...
incandescentman's user avatar
16 votes
Accepted

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

It seems key bindings have been changed in Spacemacs since @Nathanael's answer. To move a buffer to a diffferent window, you can use SPC b [n] (buffer-to-window-[n]), where n is the number of the ...
ThomasH's user avatar
  • 326
14 votes
Accepted

How to use a local version of a package in spacemacs?

First, you should never modify the code in master branch, Spacemacs is designed to be hackable while keeping the master branch read-only, also not that force pushes to master branch may happen!. If ...
syl20bnr's user avatar
  • 2,095
14 votes
Accepted

How to unhighlight after searching in evil mode?

You can achieve the same as entering :noh with the command evil-ex-nohighlight. But since you are using spacemacs, it can be even simpler: hit SPC s c to clear highlights.
EFLS's user avatar
  • 1,572
13 votes

Expanding Snippets in evil-insert-mode

M-/ is the default binding to expand snippets not TAB. You can find this out with Spc ? then searching for yas
owise1's user avatar
  • 351
13 votes

Can I highlight Lisp like this?

With show-paren-mode you can highlight the whole expression. You need to have the following code in your init file. You can try different style and choose what you like to highlight. (show-paren-mode ...
Hariharan's user avatar
  • 473
12 votes

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

Since there is more to do on init than just loading a file and on the other hand symlinking .emacs.d or changing HOME changes my runtime environment, I opted for a variant of what @glucas had proposed....
Uwe Koloska's user avatar
12 votes

How to operate the undo-redo tree in spacemacs?

On Vim editing style, naturally: j and k to navigate through the tree up and down. h and l to switch branches. When using Emacs editing style: n and p to navigate through the tree up and down. f ...
Alexandro de Oliveira's user avatar
12 votes

How does Spacemacs allow tab completion in helm?

The "tab completion" that spacemacs does in helm is actually the helm command helm-execute-persistent-action. By default helm-execute-persistent-action is bound to C-z and TAB is bound to helm-select-...
Moyamo's user avatar
  • 398
12 votes
Accepted

How can I do a git diff on the current file with magit?

Firstly, make sure you're aware of https://stackoverflow.com/a/17799517 If you want a Magit diff buffer for the current file, you can call magit-diff-buffer-file directly, or use the "diff" option (d) ...
phils's user avatar
  • 51.2k
12 votes

Automatically preview Latex in org-mode as soon as I finish typing

I wrote a plugin that does this. You can install the plugin, then add (add-hook 'org-mode-hook 'org-fragtog-mode) to your config. The plugin enables latex previews when your cursor leaves the ...
io12's user avatar
  • 121
12 votes

Have Ctrl-a increase a number just like in vim

The package evil-numbers does exactly what you need.
Panagiotis Koutsourakis's user avatar
11 votes

How install a custom theme to spacemacs

You need to first add themes mega-pack to your .spacemacs start emacs edit conf Spacefed udpate dotspacemacs-configuration-layer adding themes-megapack resync conf SpacefeR update dotspacemacs/user-...
random-forest-cat's user avatar
10 votes
Accepted

How to disable Spacemacs from auto-balancing the split windows?

Spacemacs sets window-combination-resize to t, which causes Emacs to split windows evenly. You need to add this to user-config: (setq window-combination-resize nil)
bmag's user avatar
  • 1,713
10 votes
Accepted

Spacemacs use anaconda environment

Basically, this is a duplicate of this question. Reproducing the proposed behavior with spacemacs, I changed my user-init to: (defun dotspacemacs/user-init () (setenv "WORKON_HOME" "/home/<...
Michael Gecht's user avatar
10 votes

Update spacemacs packages from the command line

Instead of trying to start emacs in daemon mode first and asking it to execute the package update, I'd recommend doing that after performing a scripted upgrade of the packages. To update the packages ...
David Antaramian's user avatar
10 votes

Have Ctrl-a increase a number just like in vim

I've stumbled upon the same issue of preference and as suggested before, evil-numbers is the package for that. But while trying to set it up, it was surprising that evil-numbers is already in ...
Alvin's user avatar
  • 101
9 votes

How do I change portions of a custom theme?

In spacemacs, install the layer theming, see https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Bthemes/theming For example, I have the following snipped in the dotspacemacs/user-init of my ....
Thorsten's user avatar
  • 191
9 votes

mu4e folders for multiple accounts (contexts)

You can't set mu4e-maildir in contexts. cf. http://www.djcbsoftware.nl/code/mu/mu4e/Contexts-example.html You can set any kind of variable; including settings for mail servers etc. However, ...
lurdan's user avatar
  • 1,071
9 votes
Accepted

Spacemacs disable :q

Adding the following to my config file (~/.spacemacs) resolved the problem: (evil-ex-define-cmd "q[uit]" nil) This can also be used to modify the behaviour of the ex command line by replacing nil ...
Mark's user avatar
  • 440
9 votes
Accepted

How can I scroll a half page on C-v and M-v?

I actually managed to find the equivalent functions. They are View-scroll-half-page-forward View-scroll-half-page-backward So, I've updated my dotfile's user-config section to contain (global-set-...
Violet's user avatar
  • 488
9 votes
Accepted

Spacemacs: kill buffer and kill window in one command?

Spacemacs has recently added two shortcuts for kill-buffer-and-window: SPC b x and SPC w x.
sid-kap's user avatar
  • 544
9 votes
Accepted

How do I use Mac/OSX key bindings with Spacemacs?

Spacemacs has a "layer" called "osx" that should do everything you want. https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Bos/osx Just put osx in the dotspacemacs-configuration-layers ...
mclear's user avatar
  • 1,555
9 votes
Accepted

How to open .org files with visual-line-mode automatically turned on?

You can switch on visual-line-mode in org-mode and text-mode by (add-hook 'text-mode-hook #'visual-line-mode) in your init-file (e.g. ~/.emacs). (Thanks to user lawlist for clarifying that org-mode ...
Tobias's user avatar
  • 33.2k
9 votes
Accepted

How do I hit the equivalent of `C-u` (of normal emacs) in Spacemacs?

That would be SPC u if memory serves me correctly.
EFLS's user avatar
  • 1,572

Only top scored, non community-wiki answers of a minimum length are eligible