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
0answers
11 views

Auto insert include guard in cpp header when inside projectile project

I am currently learning C++ and I came across include guards to avoid double inclusion. Now I would like to use the google's style convention like this : // project/src/app.hpp #ifndef ...
0
votes
1answer
19 views

Prompt for stdin via `shell-command`

Sometimes when I copy+paste into my spacemacs over SSH, I get some random garbage that seems to be due to spacemacs interpreting some of the pasted content as commands. In vim, my workaround is to run ...
0
votes
0answers
32 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
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/...
0
votes
0answers
39 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
29 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 ...
0
votes
0answers
15 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 ...
1
vote
1answer
21 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
36 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
67 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 ...
0
votes
3answers
29 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
1answer
17 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, ...
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....
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 ...
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
1answer
37 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
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 ...
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
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
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. ...
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
0answers
38 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
0answers
21 views

Why does open projectile ask for pattern?

Whenever I am opening a project in spacemacs, it is asking for [] pattern: and a with list of files as a option. Why It is asking for a pattern ?
0
votes
0answers
36 views

How to enable paredit mode on all clojure, closurescript 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
53 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
28 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
0answers
18 views

Spacemacs: “Wrong type argument: stringp, nil” Auctex error when building tex file

following a recent update, Auctex now refuses to build. Throwing a wrong type argument: stringp, nil error. The full debug text: Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-...
0
votes
1answer
35 views

Spacemacs - What does C-c do (what things are inside this menu)?

I'm learning emacs/spacemacs right now and I'm slightly confused about the C-c binding. Pressing it opens a menu with many helpful things that I cannot reach otherwise (it seems like it at least). I'...
1
vote
0answers
107 views

How to use doom-modeline in spacemacs?

This might be a fairly stupid question but I simply can't figure it out. I've been trying to install doom-modeline for spacemacs: https://seagle0128.github.io/doom-modeline/#install I've added the ...
0
votes
0answers
14 views

Have a key run multiple commands in Spacemacs

I want to be able to bind multiple commands to a press of a single key. This is what I used to have: (spacemacs/set-leader-keys-for-major-mode 'racket-mode "r" 'racket-run-and-switch-to-repl) I ...
1
vote
1answer
25 views

How to replace the highlighted word in yasnippet?

After the snippet gets expanded the cursor is put to the first section (long_name). What key do I need to press in order to replace long_name? Evil operations like e.g. cw or ce change long or to ...
0
votes
1answer
215 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-...
1
vote
0answers
36 views

Skip over remaining errors in current file to next error in next file

tl;dr I am using :cn in Evil's Ex command line and would like to use :cnf as well, but it is not there, and I don't know what function to bind it to. Details As a former Vim user who is slowly ...
0
votes
0answers
16 views

Is there a way to undo hook attached to major modes in spacemacs?

In my .spacemacs file I set the following hooks to run: (add-hook 'js-mode-hook 'prettier-js-mode) (add-hook 'web-mode-hook 'prettier-js-mode) I, however, have projects where I don't want these to ...
0
votes
1answer
34 views

How to set the mark using keybindings when C-SPC is unavailable to emacs

Suppose I have the following code block in an org file. #+begin_src sql SELECT id FROM product WHERE name = 'Apple' #+end_src I want to select this part: SELECT id FROM product WHERE name = 'Apple' ...
1
vote
1answer
25 views

How can I unbind a key in org mode?

M-return is interfering with export (M-return e e) and other functions that I use a lot. I tried (define-key org-mode-map kbd "M-return" nil), but after loading that (with M-m f e r, since I am ...
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 ...
0
votes
1answer
61 views

How can I set the indentation offset for `indent-region`

I am using spacemacs + lsp layer (ccls) for c/c++ editing Having my c-basic-offset set to 4: if I select a region and press = (maybe invoking indent-region?), the region is indented by 2 spaces (...
1
vote
0answers
12 views

Displaying markdown in EIN

I've recently started working with EIN, and I have it mostly working now (sans autocompletion unfortunately...). There's still something I'm struggling with which I'm not sure is even possible: is ...
1
vote
0answers
11 views

Evil text objects on kebab-case behave differently on dw and cw

I would like my evil text objects to work on kebab-case words, so that dw or cw act on the "whole-kebab-word" and not just on "whole". Therefor I have put (modify-syntax-entry ?- "w" clojure-mode-...
0
votes
0answers
7 views

org-mode: add parent node when exporting to iCalendar

I have an org file: * My Project ** TODO Step1 SCHEDULED: <2020-04-24 Fri 18:00-18:30> When exporting to an iCalendar file, I can only see Step1 in my Apple Calendar, that is not what I ...
1
vote
0answers
21 views

How to open url inside lsp-ui-doc popup childframe in browser

I am using spacemacs go layer with lsp as backend with gopls. How to open the link in the childframe of lsp-ui-doc in browser?
0
votes
1answer
38 views

Send a single raw keystroke to ansi-term

Occasionally, I want to send a keystroke to a program in my ansi-term buffer that is already mapped to something in emacs. I know that for one I use often I could change my configuration to always ...
0
votes
0answers
29 views

auctex preview at point shows equations for the entire document

I am using the latex-layer (auctex) in spacemacs. When I use preview-at-point it renders all of the equations in the document. Is there a way to really make it render on the equation at the cursor? ...
0
votes
0answers
31 views

vterm is not found after installing the Spacemacs shell layer

According to the Spacemacs shell layer documentation, vterm is supported on emacs. I've followed the site's installation instructions for the layer - namely installed the appropriate apt packages and ...
0
votes
0answers
14 views

How can I get the TypeScript layer for Spacemacs to do type-checking?

I'm using the TypeScript layer for Spacemacs. Type information, go-to-definition, completions, etc. all work great. But if I do this: const x: string = 3; Nothing yells at me about the type error. ...
1
vote
1answer
33 views

Unmapping Treemacs `<prior>` and `<next>` (Page up and Page down)

I'm trying to unmap the <next> and <prior> key-bindings from Treemacs, because I find counterintuitive that it's the only place where they scroll a different window instead of the current ...
0
votes
3answers
43 views

How to disable autoindent on new line?

I find a lot of questions similar to this, but not one with an answer that matches what I need. I'm using spacemacs in evil mode, and I want "new lines" (done with RET in insert mode, or o or O etc) ...

1
2 3 4 5
14