Skip to main content

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.

Filter by
Sorted by
Tagged with
34 votes
6 answers
9k views

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 ...
Croad Langshan's user avatar
12 votes
2 answers
3k views

High CPU/memory usage and abnormally large savehist file?

I'm starting to use Spacemacs and occasionally I get stuck with Emacs beginning to require infinite amount of CPU and memory. Inspecting my .emacs.d/.cache folder reveals that the file savehist is 1....
xji's user avatar
  • 2,635
24 votes
5 answers
12k views

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's user avatar
19 votes
3 answers
25k views

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's user avatar
18 votes
1 answer
6k views

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 ...
abingham's user avatar
  • 927
6 votes
4 answers
2k views

How to disable mouse in Spacemacs

I'd like to completely disable my mouse in Spacemacs. Following the advice in this answer, I set up the following in my .spacemacs file as (defun dotspacemacs/user-config () "Configuration function ...
JuanCaicedo's user avatar
5 votes
3 answers
3k views

How do I paste code without auto indentation

I just setup the latest Spacemacs. I'm pasting python code from here https://raw.githubusercontent.com/jpmens/mosquitto-auth-plug/master/examples/http-auth-be.py into a new buffer. When I do this it ...
LaserJesus's user avatar
3 votes
2 answers
2k views

Re-creating .vimrc key mappings in Emacs

I've been using vim for a while (though I'm only a basic user) and I've been trying out Emacs (specifically spacemacs). I have remapped H and L to go to the start / end of the line by adding the ...
baxx's user avatar
  • 137
3 votes
1 answer
2k views

Tramp: Waiting for prompts from remote shell... Sending command `exec ssh -e none bin'

Tramp hangs for several minutes every time I launch Emacs, giving me these errors: Tramp: Opening connection for bin using scp... Tramp: Sending command `exec ssh -e none bin' Tramp: Waiting for ...
incandescentman's user avatar
2 votes
1 answer
1k views

How to auto-complete links to headlines in org-mode?

Given an example.org file having two headlines, I would like to auto-complete links to 1headlines. However hitting M-\ on [[* suggests *bold* words but not headlines. Any ideas what I'm 2missing? * ...
jjk's user avatar
  • 744
2 votes
2 answers
7k views

Hunspell flyspell and Emacs on windows

I know this has been asked many times, but the answers don't seem to do it for me. How do you get Flyspell to work with hunspell? After installing the hunspell executables via mingw-64-hunspell ...
user27636's user avatar
  • 231
1 vote
1 answer
570 views

Startup script for term-mode

In the documentation for shell-mode: Emacs sends the new shell the contents of the file ~/.emacs_shellname as input, if it exists, where shellname is the name of the file that the shell was ...
nalzok's user avatar
  • 675
1 vote
1 answer
2k views

How to set PATH variable to latex, so that I can use latex layer? [closed]

I installed the latest version of MacTex, and I am sure the latex is in the Libray/TeX/texbin/, I just don't know how to set the PATH variable, also I cannot install the AUCtex, I assume these two are ...
bagMan's user avatar
  • 181
0 votes
1 answer
61 views

Force one window when opening multiple files spacemacs

Looking for the spacemacs answer to this question. How do I have spacemacs open as if I had issued SPC w m (spacemacs/toggle-maximize-buffer)? I thought it might be dotspacemacs-maximized-at-startup, ...
mcp's user avatar
  • 556
37 votes
7 answers
43k views

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": "...
Emmanuel Touzery's user avatar
16 votes
2 answers
4k views

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: ...
Aviral Goel's user avatar
13 votes
4 answers
18k views

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's user avatar
  • 544
11 votes
1 answer
6k views

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

This is similar to this question but the answer there seems to be deprecated. Let's say I'm using a layer and want hack the code of a particular package that layer is using. How do I go about it? To ...
Dimitri Schachmann's user avatar
9 votes
3 answers
2k views

how do I do case sensitive searches using evil/spacemacs?

I'm trying to perform a search and replace in spacemacs but I need it to be case sensitive when by default it appears to be case insensitive. So I try to do :set noignorecase but then I have this ...
ChiseledAbs's user avatar
8 votes
1 answer
3k views

Org-Mode correct indentation

I am using spacemacs and try to use full text indentation. When I execute "visual-line-mode" and "adaptive-wrap-prefix-mode" by hand via M-x the text will indent, when I edit it. Of course I tried to ...
gunnarw's user avatar
  • 81
8 votes
1 answer
1k views

Cursor moves one position left after exiting insert mode?

I'm using evil via spacemacs. When I exit insert state, the cursor moves to the left one character. Why is that? Is it a bug, or is it a feature? Can I turn it off?
vitvly's user avatar
  • 201
7 votes
2 answers
5k views

How do I open a file in spacemacs?

Say I have spacemacs open and now I want to launch some sort of file browser to open a file. How do I do it? I have found SPC f f which sort of works but the navigation is quite cumbersome. There is ...
Elias's user avatar
  • 171
6 votes
2 answers
3k views

How to see *Messages* buffer in Spacemacs?

How to see *Messages* buffer as advised in this answer - https://emacs.stackexchange.com/a/32069/23367? Why do I need this? I am new to Spacemacs and I am trying to understand how it can help me ...
Anatoli Babenia's user avatar
6 votes
2 answers
2k views

Pasting without auto-indent

Whenever I paste something in a source code buffer it is automatically re-indented. This is great sometimes, if I'm pasting a complete block of code or a single self contained line for example, but it'...
Thomas Parslow's user avatar
5 votes
3 answers
980 views

Undo region spacemacs

I really appreciate the undo in region command in standard emacs, where you can just mark a region and only changes made in that region are undone. This doesn't seem to work in the default spacemacs ...
tom4everitt's user avatar
5 votes
1 answer
6k views

Conditional True color (24 bit color) support for iTerm2 and Terminal.app in OSX with Fish shell

I'd like to try and get to a similar setup that I have with N/Vim in OSX, whereby Truecolor support is enabled in iTerm2 (which supports 24bit colors) but disabled in the native Terminal app (which ...
purpletonic's user avatar
5 votes
1 answer
294 views

How to get release note of updated package in Spacemacs

In spacemacs, you can update all the installed package. However, is there a way to get a release notes for each package which have been updated ?
mb14's user avatar
  • 153
5 votes
2 answers
7k views

Spacemacs use anaconda environment

I have anaconda environments for python2 and python3 as I have code written in the different versions In spacemacs (with python layer installed), when I open ipython (SPC m s i) it starts with my ...
Simon's user avatar
  • 431
5 votes
2 answers
2k views

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

According to the "Evilified modes" documentation [1], C-u gets moved to C-U, but when I try to hit that (Ctrl+Shift+u), my cursor still gets moved one page up, instead of starting a new long command. ...
loxs's user avatar
  • 153
5 votes
1 answer
5k views

Where to put user configurations/defaults for spacemacs?

I am a vim user trying to covert to emacs/spacemacs, but I'm having a horribly difficult time configuring things that seem like a breeze others. I want to limit the fill to 80 (mainly for .txt files ...
haff's user avatar
  • 218
4 votes
2 answers
2k views

Spacemacs - Change font size based on system name

I use one synced dotfiles repository for all of my computers, with some system-specific customization built-in. I've got a new high-DPI display on one of my computers, and would like to increase Emacs'...
Ryan's user avatar
  • 4,059
4 votes
2 answers
1k views

Keep spacemacs from retrieving package archives at startup

I'm trying to figure out a way to speed up my spacemacs start time. The main offender at the moment is the refreshing of package archives at start. I was hoping that setting dotspacemacs-check-for-...
flooose's user avatar
  • 521
4 votes
2 answers
7k views

How can I use multiple cursors in evil/spacemacs

There are multiple multiple-cursors implementations for emacs. I have the impression that extra work has been required to make them work well in evil and spacemacs in particular. I imagine the ...
Croad Langshan's user avatar
4 votes
1 answer
191 views

Possible to cache newsgroup message headers in Gnus

I'd like to start using Gnus to read mailing lists via nntp/Gmane. Works fine so far, but each time I press RET on a group name in the *Group* buffer, Gnus seems to download a lot of data (in case of ...
andreas-h's user avatar
  • 1,569
3 votes
1 answer
589 views

Open buffer created by run-python in the current window

I recently started using spacemacs, and have a newbie question about modifying the way run-python works. When I execute run-python, a new buffer is opened in a different window. I'd like to change it ...
lane0335's user avatar
3 votes
2 answers
1k views

How can I disable "q" in normal state in evil for some modes?

I'm using Spacemacs. I noticed that in help-mode, q quits, which is exactly what I want. However, in certain other modes, customize-mode, for example, q is bound to evil-record-macro. (I set it to ...
Alex R's user avatar
  • 239
3 votes
2 answers
2k views

org-drill doesn't load with spacemacs configuration

I am trying to load org-drill in Emacs with spacemacs configuration. I have added the module into .spacemacs file as: (custom-set-variable ;; ... '(org-modules (quote (org-bbdb org-bibtex ...
jakub.wojciech's user avatar
3 votes
1 answer
734 views

How can I temporarily disable Spacemacs key bindings to work with org mode?

I am trying to learn an orgmode tutorial in Spacemacs (terminal mode) and it seems tha the Spacemacs key bindings are getting in the way. How can I revert the Spacemacs bindings temporarily for that ...
vfclists's user avatar
  • 1,433
3 votes
2 answers
389 views

make * in Spacemacs work like it does in vim

In Spacemacs, is there an easy way to make * (which calls the function spacemacs/enter-ahs-forward) work like it does in Vim? That is, I want * to perform forward searching like in Vim, without ...
illabout's user avatar
  • 285
3 votes
2 answers
2k views

How can I show the full path to the current file in the mode-line for Spacemacs (Spaceline)?

I'd like to display the full path instead of just the filename itself. How can this be done? So essentially where it says .spacemacs in the below image (seems this mode-line is called "Spaceline"):
Chris Stryczynski's user avatar
2 votes
0 answers
295 views

Anaconda Mode only complete module variables, get No Matches for assigned variables on linux server accessed via ssh

Description Anaconda Mode only complete module variables, get No Matches for assigned variables on linux server accessed via ssh Reproduction guide Observed behaviour: - Start Emacs execute import ...
spacegoing's user avatar
2 votes
1 answer
284 views

Align columns in Org Mode with Korean letters

When I try to make a table that has Korean character (한글) mixed with English words, the table becomes unaligned, and according to an answer about Japanese found here the the same problem with Japanese ...
Jim Larsen's user avatar
2 votes
3 answers
1k views

How to enable paredit mode on all clojure, clojurescript and elisp buffers automatically?

I want to enable paredit-mode on all clojure, cljs and elisp buffers by default, which is probably going to happen through the .spacemacs file. This is what I have so far in the user-config function ...
zendevil.eth's user avatar
2 votes
1 answer
2k views

How can the start up log of Spacemac be viewed?

When I start Spacemacs there is a message about some faults on my setup which scroll past quickly before I can view them. Is there some file or some buffer that holds them for review?
vfclists's user avatar
  • 1,433
2 votes
1 answer
1k views

disable auto-completion for all buffers by default in spacemacs

Is there a way to keep auto-completion enabled as a layer, but have it disabled by default in spacemacs? For example, I want to have the auto-completion layer enabled in dotspacemacs-configuration-...
illabout's user avatar
  • 285
2 votes
1 answer
160 views

What are the '.#' links for? [duplicate]

When an Emacs buffer is modified, a broken link is created. The link's name is a concatenation of '.#' followed by the file's name. For example: $ ls .#spacemacs_ref.org -l lrwxrwxrwx. 1 wolfv wolfv ...
wolfv's user avatar
  • 1,393
2 votes
1 answer
2k views

Display multi-file org agenda as a sparse tree?

org-sparse-tree function lists selected information with the headline structure above it. This is useful when the meaning of org headings depends on context: SPC m T (org-show-todo-tree) org-agenda ...
wolfv's user avatar
  • 1,393
2 votes
3 answers
3k views

Play Org-Pomodoro sounds

I am running Emacs version 25.0.92.1, Spacemacs 0.105.x, Windows 7. In my .spacemacs, in dotspacemacs/user-config I have: ;; Org ;; Org-pomodoro (setq org-pomodoro-length 25) (setq org-pomodoro-short-...
user619882's user avatar
2 votes
2 answers
1k views

How does emacs know to use `helm-find-files` in this context?

There is a stock emacs function called append-to-file that is defined as follows (in files.el): (defun append-to-file (start end filename) "Append the contents of the region to the end of file ...
George's user avatar
  • 919
2 votes
1 answer
266 views

Custom title format in iTerm2 / Terminal

I've been looking all over but none of the guides I saw worked for me. I am trying to have the title of Spacemacs to show a custom format, namely the current project's name (the current folder's name)...
hakunin's user avatar
  • 135