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
2
votes
2answers
411 views

How can I open magit-status in a new frame?

How can I open magit-status in a new frame? I've tried to write a custom function for this but it has some issues as described below. (spacemacs/set-leader-keys "gs" (lambda () (interactive) ...
2
votes
1answer
132 views

Making custom shell command function have popup buffer showing std-out

I'm customizing spacemacs for my workflow. I'm new to elisp and can't figure out how to do this after looking at other functions in .el files and other posts. Basically, I wrote an elisp function ...
1
vote
0answers
90 views

Slowness opening and moving around within large files

I'm running spacemacs 0.200.13 on emacs 25.3.1 from a macOS 10.12 machine. In some scenarios, things feel very sluggish. They get worse as a dozen buffers or so are opened during the day. From the ...
0
votes
2answers
46 views

Can't close Robe console split in spacemacs

I run SPC m s i to start Robe (Ruby code inspection tool) in spacemacs, and it opens a split with a REPL. When I'm done issuing commands I can't close the split. SPC is not usable because the REPL ...
0
votes
1answer
58 views

How to get vanilla find-file in Spacemacs

Even when i M-x find-file I get the Helm stuff. I usally also want that, it's just with some Tramp stuff I think there are Problems. How to get the plain old find-files from vanilla emacs in ...
0
votes
0answers
119 views

What features differentiate Spacemacs from other editors and IDEs in terms that someone unfamiliar with both Vim and Emacs can understand?

I am in the position of onboarding junior developers to Spacemacs but I am unable to find a detailed, canonical description of Spacemacs that is geared toward beginners. Specifically, I don't find ...
2
votes
1answer
180 views

Emacs doesn't seem to recognize .emacs.d on the latest Windows Insider Preview

I was able to use Emacs normally on Windows until the latest update to Build 17711.rs_prerelease.180703-1539. Now, whenever I start Emacs, it just shows the default welcome page, even though .emacs.d ...
3
votes
2answers
223 views

How to load an Idris file that depends on a package?

Working in Spacemacs (on Linux Mint, if that is relevant), using the Idris layer, one of my major mode commands is SPC m-r (Vim-style keybindings): idris-load-file. This causes Spacemacs to load up an ...
4
votes
1answer
359 views

Is there a way to use spacemacs with emacs 24.3 version?

I am working in a cluster environment, where the default emacs version is 24.3. Unfortunately spacemacs support only from >24.4. Administrators refuse to update the version. They asked me install my ...
2
votes
1answer
86 views

Halting Clojure debugger after pressing the Continue Command

I use Emacs with Cider to debug Clojure Code. After setting a breakpoint using the default debugging framework, there appears the list of debugging options one might execute shown in this Figure I ...
1
vote
1answer
185 views

Reopen closed window in Spacemacs

How can I reopen a closed window in Spacemacs? Something like Cmd-Shift-t in Chrome. I open a window using SPC w s and delete it with SPC w d, but I don't know how to reopen one that I've closed.
1
vote
1answer
121 views

Call emacs function from terminal and obtain the same behaviour

I have this simple function that opens an external shell (st) in the same directory of the current buffer: (defun external-shell-in-dir () (interactive) (start-process "st" nil "st")) However, ...
2
votes
1answer
462 views

How to disable line wrapping in LaTeX layer?

The LaTeX Layer by default wraps a line after column 85 by inserting a new line while typing and moving the current word to the new line. When the line is a comment, it even automatically inserts the ...
0
votes
1answer
356 views

Enable .dir-locals.el variables inside just opened buffer

I'm programmtically create a new buffer as a result of shell command (defun jira-ticket-view (&optional jira-ticket) "Open Jira Ticket Inside Emacs" (interactive) (setq jiraURL (get-jira-...
1
vote
1answer
680 views

Emacs is using the wrong SHELL

I'm using emacs 26.1 and spacemacs (emacs-plus from homebrew and spacemacs is from the develop branch). I've configured my local shell to use ZSH from homebrew as well (installed to /usr/local/bin/zsh)...
0
votes
1answer
38 views

Trying to make keybinding in spacemacs

I'm trying to bind ",," to eval the topmost S-expression containing the cursor in common lisp layer, from this page I assumed it would be done like so: (spacemacs/set-leader-keys-for-major-mode '...
0
votes
0answers
33 views

GNUS - how to persist “R” (read) state of the email back to gmail?

When I read an email in gnus, the email state changes to read whose symbol is R, The problem is that when I then open gmail on the browser I find that the already read email is still marked as unread. ...
1
vote
1answer
66 views

Spacemacs Evil mode does not have :for?

I tried to use :for num in [1-30] today in my spacemacs evil mode. But it says Unknown command for Are :for and such command an extension to Vi that is not available for Spacemacs Evil?
0
votes
3answers
500 views

Project management in projectile or other, like Sublime Text's projects

Ever since I first started using Emacs (Spacemacs) a few months ago I've been trying to set up a sane multi-project workflow. I got the single project workflow going by having Emacs start up into what ...
2
votes
0answers
998 views

Extremely slow startup on Windows - How to debug?

I have a serious problem with an extremely slow spacemacs startup (emacs-init-time = ~200s). (The server works, but this is so slow I cannot debug some other problems that I am trying to fix) My ...
7
votes
4answers
892 views

Have Ctrl-a increase a number just like in vim

In spacemacs Ctrl-a is being used to move to the beginning of the line. I'm more used to 0 to move to the beginning of the line and $ to the end, which works in spacemacs. Ctrl-a increases numbers in ...
4
votes
2answers
1k views

How to set up custom layout for spacemacs?

I want to ask something regarding making my own custom layout for spacemacs. I have read the documentation. They have an example like this: This is the custom layout for ERC buffers. (spacemacs|...
0
votes
1answer
472 views

Using tab as indentation in anaconda-mode with spacemacs

I recently installed spacemacs with the python mode and would like to change the default indentation to be TAB instead of four spaces. What I did is I added (setq-default indent-tabs-mode t tab-width ...
1
vote
1answer
317 views

Spacemacs evil-window key bindings not working?

I have these keybindings in my dotspacemacs/user-config function: ;; Modify evil-mode keybindings from hjkl motion to jkl; ;; Motion mappings (define-key evil-motion-state-map "H" 'evil-window-bottom)...
0
votes
1answer
529 views

Spacemacs visual line navigation not working

Running spacemacs 0.200.13 on emacs 25.2.2 on Kubuntu 18.04. In ~/.spacemacs, there is: (global-visual-line-mode t) (add-hook 'text-mode-hook #'visual-line-mode) So, when I open a text file, I see ...
3
votes
2answers
929 views

Update spacemacs packages from the command line

I'm trying to write a shell function to launch (spac)emacs, update packages, and then restart emacs in daemon mode. I tried this, but it hangs: emacs --daemon && emacsclient -e '(progn (...
1
vote
1answer
535 views

Spacemacs trigger holy mode in major mode

I'm using Spacemacs for clojure development and have gotten used to the vim commands mostly. However, when I start up a Repl I would like to only use holy mode with insert mode. Does anyone know how/...
0
votes
0answers
281 views

Disabling recentf mode?

I try to disable this via (recentf-mode -1) (setq recentf-mode nil) ;; mysteriously switches to t after some time but it keeps automatically turning on after some time and is causing problems for ...
0
votes
0answers
56 views

Spacemacs terminal emulator share history with zsh

In plain vanilla emacs, I can M-x term RET RET. This starts zsh. And it 'shares' history with my non-emacs terminals. So, I can ESC / and search for commands, etc. How do I achieve that for ...
1
vote
0answers
73 views

Migrate my init.el to spacemacs

Running emacs 25.2.2. Currently I am trying out spacemacs, primarily because I found the keybindings more intuitive. I needed some stuff from my init.el to move to .spacemacs before I can start using ...
1
vote
0answers
36 views

ALT as my modifier key stops me using a pound sign [duplicate]

I've just switched to Spacemacs (Evil mode), as it is time to change things up, having used Sublime Text for years. I have a British Mac keyboard which relies on ALT + 3 to output the pound sign (#). ...
1
vote
0answers
89 views

adjust font of *中文* word in org-mode

I'm using PingFang SC for Chinese characters in spacemacs dotspacemacs-default-font '(("Fira Code" :size 14 :weight normal ...
5
votes
2answers
965 views

Getting MyPy Working in Spacemacs

I'm struggling to get type checking working in spacemacs, and I would appreciate any help. I've installed MyPy properly on my system (I can run it from terminal) and added python-mypy to dotspacemacs-...
0
votes
2answers
1k views

How to use org-protocol and org-capture in spacemacs?

I've been having some problems when using org inside spacemacs. I make use of org-protocol to capture stuff that I find interesting when I'am browsing and have it inside spacemacs. The problem is ...
0
votes
1answer
2k views

How to indent with the tab character with a visual length of 4 spaces in spacemacs?

I have used Vim for years now, Emacs for a couple of weeks and recently switched to Spacemacs. How do I set indentation settings either globally or the C/C++ mode? (A solution for either one is fine.) ...
1
vote
0answers
405 views

Setting fonts in org-beamer with Metropolis theme

Environment: OSX 10.13.4, spacemacs 0.200.7 Here's a pared-down org-beamer file #+TITLE: A Presentation #+SUBTITLE: A really good one, in fact #+AUTHOR: WallyMetropolis #+DATE: 05-02-2018 #+OPTIONS: ...
1
vote
0answers
776 views

auto-save is unreliable

I almost never manually save files; I rely on auto-save. In the past few months I have noticed some of my edits mysteriously disappearing. The disappearances seem to be related to Linux crashes (...
1
vote
0answers
172 views

Is this a c-default-style? If not, how can i configure it?

I've just started using spacemacs and the docstrings for cc-styles are a bit daunting. I've also just started working on a new project in c, and would like to keep consistent with existing style: ...
1
vote
1answer
81 views

How to use my own fork of a package in spacemacs

How would I go about using my own fork of some core packages in spacemacs? So for example I'd like to use my own fork of spaceline, but I would like to keep the modifications that spacemacs does for ...
1
vote
1answer
180 views

Is there a way to disable all mouse functionality in spacemacs?

I have tried doing this which I found in another StackExchange post but it doesn't work for me, is there another way to disable the mouse in spacemacs completely, I use evil mode, thanks. How to ...
1
vote
2answers
1k views

Cannot set tab-width in Golang mode with Spacemacs

I set the tab-width for Golang to 2 using the following: (add-hook 'go-mode-hook (lambda () (setq-default indent-tabs-mode 1) (setq-default tab-width 2))) And when ...
1
vote
1answer
509 views

capture template for org-projectile?

Is there a way to define a capture template for org-projectile/capture (SPC a o p)? The default capture template creates a todo in root and I'd rather have it under Tasks (/Project Name/Tasks/<the ...
1
vote
0answers
228 views

Slow typing on go mode

need a little help here, my emacs is so slow if while writing go code, it look like it is stuttering. On my observation, it happens because I have "not that" a lot folders in my src directory, most ...
1
vote
1answer
424 views

Where is ispell private dictionary located on Spacemacs?

My Spacemacs help ispell-personal-dictionary says: ispell-personal-dictionary is a variable defined in ‘ispell.el’. Its value is nil Documentation: File name of your personal spelling dictionary, or ...
0
votes
1answer
165 views

Capitalize word as you type in emacs/spacemacs (YAS snippet)

Trying the following yas snippet # -*- mode: snippet -*- #name : vuex-action #key : va # -- [${1:$$(capitalize-word yas-text)}]: ({ commit, dispatch, getters, }, { $2, }) => { commit($1, { $2, })...
0
votes
1answer
332 views

from the spacemacs shell, how do I edit a file in a new buffer in the main window?

I open a new shell using space-'. From that shell window I can type ls to see files. Let's say I want to edit ~/.zshrc. From the shell prompt, what do I type to edit that file in a new buffer in the ...
2
votes
1answer
196 views

Omit current and parent directories in Ivy find-file completion

I'm using Ivy in a fairly standard Spacemacs setup. When I'm opening a file I'd like . and .. to be omitted from the list of completion candidates. In particular, I'd like to be able to tab through ...
2
votes
0answers
369 views

Distraction free writing mode and vertically centered?

One feature, that I really adored in Ulysses is it's typewriting scroll center lock mode (for the lack of a better description). It would keep the line centered, no matter if the cursor is at the ...
1
vote
1answer
152 views

Convert math in org file to markdown file correctly

I'm trying to convert/export a org file to Markdown. Most Markdown supports math with $x^2$ or $$x^2$$. I tried ox-gfm and pandoc, but they don't seem to handle it correctly: org file: \[x^2\] $$x^...
1
vote
1answer
64 views

spacemacs - Map single evil keypress to multiple keystrokes

I'm a Vim user trying out spacemacs for the first time. In Vim, I have a keybind that when I press L (jump to bottom of screen), it also centers the screen on the cursor. In my .vimrc, this is done ...