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

How to get fixed-pitch code blocks in variable-pitch Spacemacs org-mode?

I like to use variable-pitch mode when working with prose in org-mode, but I have to turn it off when I involve tables or code blocks. Using answers found elsewhere, such as https://stackoverflow.com/...
5
votes
1answer
515 views

Truncate lines at a specific visual column instead of truncating in the last visual column

How can I visually truncate the lines of a buffer at a specific column instead at the last column of the buffer? Is this even possible in Emacs? If, so, is it possible to also choose at which column ...
2
votes
1answer
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 ...
7
votes
1answer
3k views

mu4e folders for multiple accounts (contexts)

I'm trying to set mu4e to use for both personal and work gmail accounts. I successfully configured offlineimap and fetched the mail. Then I tried setting mu4e, and according documentation: the ...
0
votes
0answers
536 views

colemak user :: spacemacs <caps lock> key-chord f d [hit f then d really fast]

Following https://stackoverflow.com/questions/127591/using-caps-lock-as-esc-in-mac-os-x I remapped caps lock (51) to esc (53). I think it was actually esc + : (: is shift-; on qwerty but shift-p on ...
5
votes
2answers
722 views

Map keys in all modes?

Is there a way to bind keys across all modes? For example I have one binding: (define-key evil-normal-state-map (kbd "gt") 'persp-next) This works fine in some modes, but not in others, like org-...
8
votes
1answer
5k 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 ...
1
vote
1answer
175 views

Perp-mode - open new blank tab without prompts?

I'm trying to replicate vims :tabnew functionality, which just creates a new empty tab (perspective). All the commands I've looked at prompts for confirmations and names etc. They clone the current ...
5
votes
2answers
3k views

How do I specify a different folder for .spacemacs file?

I want to put my .spacemacs into Github, so I cloned it to a local directory. How to let Emacs use the .spacemacs in that directory instead of from the default ~/.spacemacs?
1
vote
1answer
631 views

How to backup bookmark for spacemacs?

I want to re-install spacemacs, since something doesn't work and I don't want to spent on fix it. But how to backup the bookmarks of the spacemacs, even better also backup the most recent open file ...
3
votes
1answer
690 views

How to customize a lazy-loaded variable?

In Spacemacs, how can I customize a variable used in a layer that's loaded lazily? Specifically, I'm trying to use Zathura and Synctex with Spacemacs' Latex layer. I have the following code in my ...
2
votes
1answer
697 views

spacemacs: keep track locations of smart search

I have custom visit history ring which is independant of search seach engine used. I would like spacemacs smart search filled my ring as well. Details: 1. I'm in some buffer under location1. 2. I've ...
2
votes
1answer
1k views

Can I write elisp code to act on the text in a buffer [closed]

I am fairly new to emacs and I want to learn emacs Lisp. In particular, is it possible to write elisp functions in, say, the scratch buffer to do some complex text-processing on my program file ...
0
votes
1answer
283 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 $...
16
votes
2answers
8k views

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

Is there any keybinding or function to move an open buffer to a different window or a different frame in spacemacs?
4
votes
1answer
237 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 ?
4
votes
2answers
931 views

Always enter emacs mode with ansi-term

I have a freshly installed spacemacs installation and I want to make it so that I ansi-term is in emacs mode. However, I try to add (add-to-list 'evil-emacs-state-modes 'term-mode) to my .spacemacs ...
33
votes
1answer
21k views

Command to insert code block? [duplicate]

I found the command SPC m x c to insert a small code snippet like ~~. I would like to insert a longer snippet like #+BEGIN_SRC #+END_SRC Is there a command to do this? I found a way to add it for ...
33
votes
6answers
7k 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 ...
3
votes
1answer
1k views

What's the difference between `set-face-background` and `custom-set-faces`?

I get an error, Invalid face: helm-selection, using dotspacemacs/user-config: (set-face-background 'helm-selection "#EEAD0E") It runs fine if I manually enter it using helm-M-x. However, I get no ...
4
votes
1answer
778 views

How to speed up the initial use of `helm-M-x`?

When I run helm-M-x (SPC :) in Spacemacs, the first time is slow in loading/showing. Is there a way to "preload" it during startup/.spacemacs?
4
votes
1answer
260 views

How to prevent Gnus from creating a `~/News` directory?

I'm using Spacemacs on Debian Linux. Each time I start Gnus with SPC a g, it creates a folder ~/News in my home directory. I don't see the point in this, as I only use Gnus to read news via NNTP. ...
1
vote
0answers
715 views

Spacemacs: Cannot open load file: git-gutter+

I'm trying install spacemacs on elementary OS, emacs --version: GNU Emacs 24.3.1 emacs --daemon (Spacemacs) --> refreshing package archive: marmalade... [1/4] Contacting host: marmalade-repo.org:...
4
votes
1answer
963 views

how to discard a change in magit from spacemacs

In a normal emacs (not spacemacs), discard change is bound to key of "k", then in spacemacs, base on the following information. http://spacemacs.org/doc/DOCUMENTATION.html On the other hand, ...
6
votes
2answers
2k views

Can't use Magit in Spacemacs - “Symbol's function is void: cl-struct-define”

When I try to run magit-commit-popup in Spacemacs, I get the error Symbol's function definition is void: cl-struct-define The only reference I could find to this issue was on this Github thread, but ...
5
votes
3answers
2k views

interactively crop screenshot region and insert link to local image in org buffer

I am trying to pull together information that is scattered across a multipage PDF in an org buffer. The related items typically occupy a small region on a page only and may be many pages apart, hence ...
5
votes
2answers
7k views

Configuring org-mode within spacemacs

I'm a bit confused because the I'm trying to configure org within spacemacs as advised in the official layer documentation for spacemacs), I should use (with-eval-after-load 'org ( ... : (defun ...
1
vote
0answers
1k views

.png's not displaying

I recently uninstalled emacs 24.3 and then installed 24.5.1, because I was not able to update Spacemacs in 24.3. Now .png images are not displaying, including the spacemacs logo that should appear on ...
3
votes
0answers
3k views

Spacemacs - opening and creating files [closed]

Lets say I'm already in emacs and I need to open some obscure file (long complicated path) that I rarely ever edit (so its not in my recent files list) - what is the correct way to do this using ...
3
votes
1answer
532 views

Spacemacs/org-mode with nvAlt: disabling numbered backups

I'm fairly new to spacemacs/emacs, so apologies if this is a trivial question. I'm using org-mode for my notes, stored within nvAlt. This works wonderfully in terms of searching/syncing, however ...
5
votes
2answers
8k views

spacemacs flycheck: use specific linter for python

I would like to use a specific linter for python files in spacemacs. A coworker sent me an emacs code-snippet that should solve my problem, but doesn't seem to be loaded. (add-hook 'python-mode '(...
2
votes
0answers
311 views

Spacemacs not using the theme for tooltips after resizing the window

I'm using Spacemacs with Solarized dark theme on Arch linux using i3wm, and I'm having some issues with tooltips. If I open Emacs so it only covers part of the screen, the tooltips shows up with the ...
5
votes
1answer
140 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
3k 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
457 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
263 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
464 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
3k 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 ...
8
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
651 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
805 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
38 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
878 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
773 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
3answers
903 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
634 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
1k 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. ...
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 ?