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
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 ...
16
votes
2answers
3k views

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 (...
3
votes
1answer
2k views

Changing the background of line number column (linum) to the same color of line highlighting background color

Is there a way to set the background color of the line numbering to the same color of the line highlighting background color? So far I have to put the line numbering background color manually and of ...
3
votes
0answers
427 views

Turning relative numbering on (with linum-relative) in Spacemacs only when in normal mode

In Vim I have relative numbering which is turned on most of the time but it's turned off when in insert mode or when the window losses focus (both when changing to another Vim window or when changing ...
0
votes
1answer
238 views

gud-break doesn't work with jdb

I successfully attach to my java app with emacs & gud, but gud-break doesn't work as expected: it runs only: stop at :48 if the line number is 48. So even the class name is missing and the ...
1
vote
0answers
450 views

Right aligned relative numbering with separator space in Spacemacs using linum-relative

I've been using Vim for a while and now I've discovered Spacemacs and I found it great how it blends Vim ease of editing with Emacs superior power. I really loved some parts of my Vim config, one of ...
1
vote
1answer
3k views

C++ with spacemacs_

I code in C++ using VIM, but would love to try spacemacs. My install is fresh, no custom configurations yet. So looking at https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Blang/c-c%2B%2B, ...
6
votes
3answers
2k views

How to remove elements from the spacemacs mode-line

I'd like to remove certain elements from the mode-line: To the left, the 802 is the buffer size in bytes, if I'm not mistaken. I could not care less about that. To the right, it tells me the buffer ...
4
votes
1answer
5k views

Wrap line/text in org-mode when I re-open a file

I run emacs 24.5 and word/line wrap works fine when I write new text. However, when I reopen an org file, the text is not wrapped. This makes it hard to read text I have written before. Is there a ...
2
votes
1answer
567 views

Term buffer font-size

I am trying to make term buffer to use slightly smaller font than of the rest of Emacs. I was able to quickly find that for that I need to customize term face. I changed the font size, and indeed ...
2
votes
1answer
772 views

How can I recreate this keybinding in Spacemacs?

My .vimrc contains this snippet: nnoremap S :%s//g<LEFT><LEFT> It creates a key binding which means that when I'm in normal mode, I can: type the character S type the string find/...
0
votes
0answers
33 views

UI issues in Spacemacs shell [duplicate]

I'm using Spacemacs and multi-term on OS X 10.11. Preferred shell in zsh with oh-my-zsh installed. In the Spacemacs shell window, there are two weird UI issues: Command line never scrolls to the ...
8
votes
1answer
723 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?
1
vote
1answer
656 views

Remapping Esc to Tab in Spacemacs

I'm accustomed to remapping Esc to Tab in Vim. In Spacemacs this can be done with: (define-key evil-insert-state-map [tab] 'evil-normal-state) (define-key evil-visual-state-map [tab] 'evil-normal-...
1
vote
2answers
755 views

insert word under cursor in projectile search

when typing in some projectile filter string for instance (eg SPC p f) in spacemacs, I often would like to reuse the word under the cursor. I know about C-y to paste. Which is the one to insert the ...
2
votes
0answers
621 views

Custom configuration layer for multi-term is ignored

I've created a new configuration layer (read more about it below) for multi-term but the settings specified there don't seem to apply. Here is the code in particular ;;; packages.el --- rgp-multi-...
2
votes
3answers
958 views

Whitespace issue in spacemacs

It seems that whitespace is no longer visible while editing files, since this github issue. Now I usually end up seeing the whitespace only after I have saved or even commited my files sometimes. ...
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 ?
1
vote
0answers
536 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
3k 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
115 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-*(...
0
votes
1answer
190 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)
6
votes
3answers
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
623 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
2k 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-...
3
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
474 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 ...
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: ...
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
506 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 ...
3
votes
1answer
3k 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
321 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 ...
33
votes
2answers
11k 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
595 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 ...
24
votes
5answers
19k 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": "...
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....
6
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
717 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)?
19
votes
5answers
13k 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 ...