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
0
votes
1answer
231 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 ...
0
votes
1answer
894 views

Changing mode-line face when evil state changes

I'm trying to change the mode-line face box attribute to be the same color as the evil emacs state face, obviously updating it each time the mode changes. I've seen some things about using a post-...
0
votes
2answers
654 views

Install the shell layer in spacemacs

I am new to spacemacs. I want to install the shell layer. The official page of spacemacs regarding the layer, https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Btools/shell, says To use ...
0
votes
1answer
199 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, })...
2
votes
1answer
434 views

Start spacemacs with specific layout open

I have a custom layout, which I can open with SPC l o f. Is there a way to start Emacs with a flag that would automatically load it at startup? I tried this way: emacs --eval '(persp-switch "Asd")' ...
0
votes
2answers
121 views

Rename multiple files from a predefined directory to another directory

I want to have a function, which moves a file or optionally multiple marked files from one directory to a different directory in some parent folder. I managed to design a script which does the main ...
1
vote
1answer
43 views

prettify-symbols-mode enabled for major mode, but ligatures don't show until toggling prettify on and off

I'm pretty new to emacs and giving it a shot because it seems to be much better integrated with the OCaml tool chain than any other editor. Since OCaml uses a lot of symbols, I want to enable ligature ...
0
votes
0answers
25 views

org-latex-preview on entering insert mode in spacemacs

I use Spacemacs and org mode for writing latexified notes. There is no custom setup, just the default latex layer. I usually toggle org-latex-preview by C-c C-x C-l. It is annoying, because I must ...
0
votes
1answer
74 views

Binding simple keys in spacemacs

I would like to set a projectile find file function to the hotkey C-e, and a elpy-goto-definition function to the hotkey F12, but I'm not sure why spacemacs is not recognizing the config that I'm ...
0
votes
0answers
14 views

Adding a Spacemacs layer for “classic” emacs mode

I' trying to wrap https://github.com/hading/chordpro-mode in a layer for Spacemacs. I ran M-x configuration-layer/create-layer and from there followed the documentation: https://www.spacemacs.org/doc/...
5
votes
1answer
166 views

Syntax highlighting is breaking in long bibtex files (spacemacs bibtex layer)

So I have a long papers.bib bibtex file that I edit with emacs (spacemacs bibtex layer), but the syntax highlighting only ever goes about halfway down. Here it is at about line 790: Other times this ...
1
vote
2answers
63 views

Emacs insane CPU load caused by org-superstar-mode

if I try to open a fairly large file in emacs with org-mode enabled (loads of bullets and babel snippets), emacs uses an insane amount of cpu - my cpu is maxed out for 30 sec or so. I am running a ...
2
votes
1answer
90 views

How can I make terms searched with `*` or `#` populate the search history?

In my attempt to have * and # work in Spacemacs as they do in Vim, I've followed the solution posted at this question. Those keys now work, but there's one hurdle more to overcome: the searched term ...
0
votes
0answers
38 views

Intermittently undo-tree aborts immediately after I CTL-P undo

Intermittently, I have a problem where I start an undo-tree-mode with C-X u. And as soon as I hit C-p to do an undo, the undo-tree pane closes. This has been happening for a long while now. It happens ...
0
votes
0answers
8 views

Rebind spacemacs/frame-killer (M-m q z) in Emacs mode

I found this useful function to configure an internal Spacemacs command: (evil-leader/set-key “q q” ‘spacemacs/frame-killer) Is there a way to do the same, but using C-x q or C-q q instead? (I'm not ...
1
vote
0answers
28 views

Directly transfer underlined phrases from pdf to org-mode?

I'm learning emacs (on spacemacs) and focusing on orgmode. Is there a way to transfer what you underline in a pdf (like in skim) directly as text in orgmode. In other words, when you underline a ...
25
votes
7answers
23k 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": "...
0
votes
0answers
14 views

Adding Spacemacs documented layers fails

Adding layers existing in the layer section of the .spacemacs documentation results in failed test in the dot-test-results buffer generated after reloading the .spacemacs file (with SPC-f-e-R). ...
0
votes
1answer
14 views

Spacemacs kept repositioning the cursor when there's unmatched parenthesis

I'm new to Emacs, and there's one thing I don't understand. Suppose there's a file called test.el, which have the following contents: (setq Yes, the parenthesis is not closed, because I haven't ...
0
votes
0answers
15 views

git-blame with spacemacs

I'm trying invoke magit-blame in spacemacs. If I do: SPC g b Then I see a "git-blame" section at the bottom which says: Press [_b_] again to blame further in the history, [_q_] to go up or ...
0
votes
0answers
35 views

How to animate GIFs in org-mode in emacs?

I inserted a GIF in my org file, but it was static, I want to animate it, how can I do it?
1
vote
2answers
587 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
3answers
28 views

The global value of a variable I set with setq in my config differs from the local value. How can I get my value to be what I want in every buffer?

I want web-mode-script-padding to be set to 0 at all times. In my config, I have tried both (with-eval-after-load 'web-mode (setq web-mode-script-padding 0) ) As well as simply, (setq web-mode-...
0
votes
0answers
10 views

How to disable `clean-aindent-mode` in spacemacs configuration

I noticed that clean-aindent-mode is messing up the indentation as I am writing python files. Hence, I wanted to disable this mode, at least when using python mode. I can manually disable this mode, ...
1
vote
1answer
24 views

Spacemacs gg=G replacing tabs with spaces in org-babel makefile block

I'm using Spacemacs, and my org-mode file contains an org-babel block of Makefile code, which I want to "tangle" so it becomes part of the source code while remaining in sync with the ...
0
votes
0answers
30 views

GUI started emacs has different env vars than terminal started one

I wrote LD_LIBRARY_PATH both in .bashrc and .bash_profile. However, if I started emacs in terminal using emacs, LD_LIBRARY_PATH is shown in getenv. If I started it using GUI, there is no such variable....
4
votes
1answer
1k views

Why do packages remain in `package-selected-packages`

I'm using Spacemacs, and I'm adding things to my dotspacemacs-configuration-layers. I can see its adding tons of packages to package-selected-packages. If I comment out 1 or 2 layers (that I tested ...
0
votes
1answer
36 views

Can I make projectile open a default file when I switch to a project?

I'm using helm-projectile in spacemacs. SPCpp runs helm-projectile-switch-project, which gives me a helm completion buffer for projectile projects. When I choose a project and hit enter, I then get a ...
0
votes
0answers
23 views

spacemacs search and replace - rebind keys to emulate classic emacs

I started using Spacemacs on a Mac recently and to my horror discovered the M-% doesn't bind to query replace, but takes a screenshot instead. How can I reconfigure Spacemacs to behave like classical ...
2
votes
1answer
1k views

Reloading .Xresources colors on the fly

I use pywal on Linux which is really cool and works on everything I use except for Firefox (gotta tinker with it) and (GTK) Emacs. For Emacs the author recommends this which is awesome but requires me ...
0
votes
0answers
9 views

Ocaml merlin binary not found / weird string being prepended to merlin-opam-bin-path

Using spacemacs with the ocaml layer and I get the following error when I edit a source file: Error from syntax checker ocaml-merlin: Searching for program: No such file or directory, alias: Expected ...
0
votes
0answers
32 views

Roadmap to advanced spacemacs

I have somewhat recently switched from neovim to spacemacs. After switching to the develop branch, taking some time to actually read the dotfile, reading the documentation of some layers, and adding ...
0
votes
1answer
51 views

How to enable paredit mode on all clojure, clojurescript and elisp buffers automatically?

I want to enable paredit-mode on all clojure, cljs and elisp buffers by default, which is probably going to happen through the .spacemacs file. This is what I have so far in the user-config function ...
0
votes
1answer
59 views

Spacemacs move cursor using word wrap, not line breaks

I would like to be able to move the cursor around using the visual buffer, but I don't want to add line breaks to the source file. I'm not sure a better way to describe it, so I got some gif examples. ...
0
votes
1answer
25 views

Spacemacs crashing on start with Ubuntu 20.04

I'm having a problem where every time I open Spacemacs it immediately crashes on Ubuntu 20.04. It was crashing for some actions with Magit and starting a CIDER REPL so I decided to do a fresh install. ...
0
votes
1answer
34 views

Configure the delay before window showing command completions is shown

When I start entering a command and pause, this helpful window pops up at the bottom: When I don't pause, it doesn't show up. But sometimes, it takes more time to complete a command that I know, e....
3
votes
2answers
578 views

How can I open magit-status in a new frame if such a frame does not already exist?

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) ...
0
votes
1answer
124 views

Spacemacs: shortcut to jump from opened orgmode file to Neotree pane

I am using Spacemacs. So I have a Neotree pan that I open with Spc-f-t and that works fine. Then I can navigate down the tree to open a file with l and that will move the cursor from the Neotree pane ...
1
vote
1answer
100 views

How to search certain subdirectories of directories that are ignored by Git

I'm working in a Scala project that has target/ directories entered as ignored in the .gitignore. However, there is also Scala code being generated during the build which is being nested under a ...
0
votes
1answer
61 views

configuring spacemacs for python development

It's been really frustrating trying to get spacemacs to work so far. I've grown to really love it - coming from vim - for its capabilities in manipulating and navigating text, but it's just been so ...
1
vote
1answer
27 views

While merging, how to tell Magit to use one version of the file?

When I merge something and there are conflicts, I can go to the file in the magit status page (SPC-g-s) and press, for example, e to start ediff. Within that, I can scroll through all conflicts and ...
0
votes
1answer
114 views

How to indent truncated lines?

For me it seems like a really ruff edge that default spacemacs comes without an option to give my lines a correct indentation, when they are wrapped. (Click the first link if you want to see the issue ...
0
votes
0answers
34 views

Make lsp recognize external c++ header

I am trying to develop an application with gtk3 in c++ and I am using Spacemacs as my main emacs distribution in addition to lsp for c++. In my main cpp file, I included the following header : #...
0
votes
1answer
545 views

Debugging with dap-mode for python and taking user input

I am trying to make dap-mode for python working on spacemacs. For the most part I was able to get it working, but I am having issues taking in input on the CLI def main(): a = input(">") The ...
1
vote
1answer
2k views

How to assign TAB to indentation and to yasnippet expand key

i'm trying to have the key TAB to: Indent my code (like in any other text editor) Trigger Yasnippet I have theses lines in my config: (global-set-key (kbd "TAB") 'yas-expand) (global-set-key (kbd "...
13
votes
1answer
5k views

Spacemacs: paste into minibuffer

Is there a way to paste something into the minibuffer? For example if I want to eval-expression and paste something in there neiter C-v or (obviously p) will work? There has to be a way.
0
votes
1answer
194 views

Error running timer ‘lsp--on-idle’: (error "The connected server(s) does not support method textDocument/documentLink

I'm trying to setup C++ IDE on spacemacs. Below are the layers configured . dotspacemacs-configuration-layers '( helm (auto-completion :variables auto-...
0
votes
1answer
133 views

python-shell-completion-complete-or-indent no mathes in ipython

import pandas as pd pd. # press tab, there are completions df = pd.DataFrame() df. # press tab, No Matches Same configuration worked on my local mac but not on linux server. If I use python ...
7
votes
2answers
2k views

How to install org-drill on Spacemacs?

The following is my failed attempt at installing org-drill on Spacemacs. I tried following instructions on https://bitbucket.org/eeeickythump/org-drill But there is no "org-modules" in my .spacemacs ...
0
votes
1answer
182 views

Spacemacs org-mode python session plotting problem

I have been using org-mode with R in Spacemacs for a while now with no issue. I'm moving my workflow from R to Python. Jupyter notebooks (EIN) works great, but I prefer org-mode: Normal (non-...

1
2 3 4 5
14