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
33
votes
6answers
6k 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 ...
21
votes
5answers
7k 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 ?
18
votes
1answer
5k 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 ...
5
votes
1answer
1k views

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....
4
votes
3answers
1k 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 ...
15
votes
3answers
17k 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/
3
votes
2answers
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 ...
1
vote
2answers
3k 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 ...
6
votes
4answers
1k 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 ...
2
votes
1answer
1k 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 ...
1
vote
1answer
337 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? * ...
1
vote
1answer
349 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 ...
24
votes
5answers
20k 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": "...
8
votes
1answer
4k 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 ...
12
votes
2answers
3k 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: ...
2
votes
1answer
3k 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 ...
7
votes
4answers
10k 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?
7
votes
1answer
3k views

Create private spacemacs layer for yafolding

I had tried to create my first (private) layer for spacemacs, for the yafolding package. So I had created the ~/.emacs.d/private/yafolding/packages.el file with the following contents: (setq ...
4
votes
1answer
4k 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 ...
3
votes
2answers
424 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-...
2
votes
2answers
594 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 ...
2
votes
2answers
294 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 ...
1
vote
0answers
430 views

“<t> is undefined” error on first keypress

So here's a pretty weird issue. Sometimes, when I start my emacs and press a key combination, the message <t> is undefined` gets printed in the echo area, and I need to press the key combo again....
1
vote
3answers
2k 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-...
0
votes
1answer
217 views

org-mode table editor behaves strangely

With cursor in row 2, col 3 | a | b | c | | 1 | 2 | 3 _| Pressing <TAB> creates a new row: | a | b | c | | 1 | 2 | 3 | | | | | Type more than one character and press tab. Vertical ...
8
votes
1answer
736 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?
4
votes
1answer
119 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 ...
3
votes
1answer
1k 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 ...
3
votes
2answers
731 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 ...
3
votes
2answers
1k 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 ...
3
votes
1answer
480 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 ...
2
votes
1answer
1k 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?
2
votes
1answer
950 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 ...
2
votes
1answer
358 views

How to control which window is opened as “other Window”?

I am new to Magit and Spacemacs. I do not understand descriptions of other-window and next-window in the manual. I have 4 windows open in a Spacemacs frame like this: +--+--+ | | | +--+--+ | | | ...
2
votes
2answers
570 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 ...
1
vote
2answers
287 views

autoload of general.el not working in spacemacs?

I have this in my personal spacemacs layer's packages.el: (setq mylayer-packages '(general (mylayer :location local) evil-org )) Then later in the same file: (defun ...
1
vote
2answers
771 views

How to a create keybinding to open a particular file?

How to change the SPC m c (org-capture) keybinding to open the ~/capture.org file instead? F-5 opens file when this is in .spacemacs file: (global-set-key (kbd "<f5>") (lambda() (interactive)(...
1
vote
1answer
975 views

helm-projectile find file doesn't ignore some files

I'm using helm-projectile in spacemacs. I want helm-projectile to ignore all the files in .stack-work directory when running helm-projectile-find-file. I added .stack-work in projectile-globally-...
1
vote
2answers
476 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. ...
1
vote
1answer
1k views

Cannot install spacemacs

I am currently trying to install spacemacs on my Arch Linux. I am following the standard installation instructions that have been put up here. Now, I am at the part where I need to launch emacs (...
0
votes
1answer
460 views

How to make auto-completion case sensitive?

spacemacs default configuration enables auto-completion, however by default its case insensitive. How to make auto-complete case sensitive (specifically using a spacemacs configuration)?
0
votes
2answers
2k views

How to get Exec-path-from-shell working in Spacemacs

I'm using the latest version of emacs, with and without a custom MacOS build (homebrew-emacs-plus). So, I'm trying to use spacemacs on MacOS, and I can't get it to pick up the $PATH on my host system. ...
0
votes
1answer
200 views

evil & org-time-stamp-inactive at end of line in normal mode

I use evil (via spacemacs) and I want to insert a time stamp at the end of the current line in org-mode. Alas the end-of-line in evil normal mode is not the same as in vanilla emacs, so that pressing $...
0
votes
1answer
444 views

Spacemacs home buffer not showing?

If I start Spacemacs, I don't see the homescreen. I saw it for a while after my first install, so I think it might be something I've changed it my dotfile. However, the only values I found that seem ...
0
votes
1answer
203 views

What is the keybinding for toggling between editing the shell contents as a buffer and running commands in it?

What is the keybinding for toggling between editing the shell contents as buffer on one hand and running commands in it on the other? I have configured multi-term to run bash and the shell is ...