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
22
votes
5answers
9k 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 ?
1
vote
0answers
579 views

How can I make Spacemacs stop deleting my parentheses?

I've recently switched from emacs to spacemacs (develop branch), and I'm still getting used to the new defaults. I added smartparens to my excluded-packages in my config file, because I don't like ...
12
votes
5answers
4k views

Disable smartparens in spacemacs

The smartparens-mode doesn't suit my style of editing. If I attempt to disable it globally in spacemacs, however, the mode is re-enabled: (smartparens-global-mode -1) How do I disable smartparens-...
0
votes
0answers
134 views

Need help with a snippet

Can someone help me with this snippet? I found it here # -*- mode: snippet -*- # name: jsdoc comment # key: doc # -- /** * $0 `(save-excursion (let* ((pos-fun (re-search-forward "\\<function\\s-*(...
1
vote
1answer
199 views

Magit help popup enabled by default

Every time I open Magit status buffer I need to press ?. How can I make it so it opens automatically? doing this didn't help (add-hook 'magit-mode 'magit-dispatch-popup)
7
votes
4answers
3k views

how to add date and time into spacemacs' mode line

I usually use Spacemacs in maximized window, thus the date and time presented in mode line is a must. I understand that spacemacs uses powerline mode to mimic vim, the manuals of both spacemacs and ...
0
votes
0answers
784 views

Validity of RSI claims for Emacs users

If this is not a relevant place to post this, please let me know. My common workflow is Vim+Tmux. Mostly i do Clojure coding. Just yesterday i've downloaded and tried Spacemacs, out of curiosity. ...
3
votes
1answer
3k views

How do I run a function on start-up?

How do I run an arbitrary function upon starting up Emacs? My specific problem: in spacemacs, I have added the following to the config section of my .spacemacs file: (add-hook 'evil-insert-state-...
5
votes
1answer
1k views

Neotree ignore list?

Like in NERDTREE for vim, is there a way to list certain file types to be ignored (not displayed) by neotree ? for instance: *.cs.meta
1
vote
1answer
605 views

How to delete word in next line with evil-mode?

I use evil-mode (from spacemacs) and I get a strange behaviour which I'm not sure if it is right or a bug. If I delete words (with dw, i think it calls evil-delete), it works until I arrive at the ...
13
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: ...
4
votes
1answer
2k views

undo tree in spacemacs

Did anyone use undo tree in spacemacs? I configured it in spacemacs (global-undo-tree-mode 1) but it doens't work. how to let it work? It shows the error message of "unrecognized entry in undo ...
6
votes
1answer
536 views

Prevent electric-indent-mode from reindenting the current line on RET

I am using the Spacemacs configuration files. When I am typing code, electric-indent-mode reindents the current line whenever I press enter. This often causes the indentation to be incorrect when ...
4
votes
1answer
4k views

How to execute a python program (with a GUI) from Emacs?

I'm trying to test a program written in Python with a front panel generated with Qt Designer (converted from .ui to .py using pyuic4). I can make the following code work outside Emacs, from a terminal ...
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 ...
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 ...
4
votes
1answer
337 views

spacemacs SPC - expand list of hints

I've been trying out spacemacs for a while and it looks pretty good. I've got a problem, since I don't remember all the different commands after you press SPC, i keep having to look them up. When I ...
3
votes
1answer
1k views

Set a variable to a Windows path in init file

I want to use python in spacemacs on window OS, and need to tell it where to find python shell. So I added one line of (setq-default python-shell-interpreter "C:\Anaconda\Scripts\ipython.exe") to ...
35
votes
2answers
14k views

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 ...
1
vote
1answer
606 views

Make a monolithic personal config compatible with Prelude and Spacemacs

I'm refactoring my config from a monolithic init file (a .org that is tangled) to something more modular. In the same time, I am trying out Prelude and Spacemacs, and I feeling it very likely to use ...
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
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 ...
28
votes
7answers
27k 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": "...
7
votes
1answer
2k 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....
7
votes
2answers
2k views

If longlines-mode is removed in new emacs, how can I soft-wrap the line around the column instead of window edge?

I'm now trying to switch from Vim to Spacemacs. It seems that Longlines Mode is the way to go in Emacs to soft-wrap the line around the column http://emacswiki.org/emacs/LineWrap. However it seems ...
3
votes
2answers
865 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 ...
2
votes
2answers
4k views

How to configure linum-mode in spacemacs?

How can I configure spacemacs to always have linum-mode active in C/C++ buffers (cc-mode)?
21
votes
5answers
15k views

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 ...

1
11 12 13 14
15