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
24 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
21 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
31 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
27 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 ...
0
votes
0answers
15 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
28 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
50 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
25 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
22 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
24 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
36 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
21 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
16 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
34 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
78 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
13 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
22 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
121 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
32 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
24 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
58 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
49 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 (...
0
votes
0answers
10 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
17 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
34 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
25 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
25 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
31 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
41 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) ...
0
votes
0answers
21 views

org-mode done timestamp only on specific tags

Hello I am using Emacs with Spacemacs and I would like to have the closed tag only if I select done and not if I select my second option which is watched. As you can see in the picture it shows for ...
2
votes
0answers
29 views

Find and display duplicated regions of (org-mode) text across multiple files

What I'm trying to do I'm trying to condense a set of research notes consisting of over 250,000 words across 50+ files. I've converted these from previous file formats (mostly mind maps and OPML ...
0
votes
0answers
27 views

Open buffer created by run-python in the current window

I recently started using spacemacs, and have a newbie question about modifying the way run-python works. When I execute run-python, a new buffer is opened in a different window. I'd like to change it ...
0
votes
1answer
24 views

Cannot add package to an existing layer

I've edit the ../c-c++/packages.el following the documentation as below (setq c-c++-packages '( cc-mode ... glsl-mode ... xcscope )) I've also added the init function (...
0
votes
0answers
21 views

What doesn't my JavaScript layer automatically automatically format my JavaScript files?

When I open a JavaScript file, the file appears as plain text. When I activate javascript-mode in more (SPC SPC) on a .js file, then the file is correctly formatted. I have the layer installed with ...
1
vote
1answer
57 views

Why is js2-mode changing my indentation level when I type parenthesis

I'm getting started with some JS code in Spacemacs, and trying to get a good indentation level on my method chaining. The trouble is, once I've got an indentation to the place I want it, something (I'...
0
votes
0answers
17 views

Spacemacs Java layer with backend disabled

I would like to use Java layer without using any backend. I don't need the auto-complete pop-up, as sometimes it slows me down or freezes Emacs. But I would like to use the code snippets that comes ...
0
votes
1answer
41 views

SPC key shortcut is not working in spacemacs

I've spacemacs installed in my ubuntu/opensuse OS emacs version 26.3. SPC shortcut is not working for my spacemacs. I'm getting message Buffer is read-only: #<buffer *spacemacs*> Below is ...
0
votes
1answer
55 views

Spacemacs Unable to use dap mode for Spring Boot web app

I am trying to set up a break point in my controller so that I can debug my spring boot web application within spacemacs. Can someone walk me through the steps on doing this. The steps I have done so ...
0
votes
0answers
15 views

In spacemacs, how can I override a default prefix?

I am trying to redefine the C-c C-w shortcut which is the leader key for eyebrowse by default. How can I rebind it to org-refile? I have tried the following without success: (spacemacs/set-leader-...
1
vote
1answer
29 views

I would like to add a shortcut to sp-wrap-square in spacemacs

I would like to extend the lisp editing shortcuts so SPC k [ and SPC k { would wrap the current form in [] and {} respectively. I don't know what I need to write in my spacemacs config to enable this ...
0
votes
0answers
47 views

“Unknown layer treemacs declared in dotfile” on spacemacs

I have new installation of spacemacs. I have installed treemacs using M-x package-install [RET] tremacs [RET] command. Also, I've enabled the dotspacemacs-configuration-layers c-c++, syntax-checking ...
0
votes
0answers
52 views

Package for live inline rendering for markdown/org mode text with css styling?

Currently, I use Typora, a markdown editor,for all my personal notes and documentation. After seeing the capabilities of emacs in a colleague's spacemacs setup, I am very interested in switching from ...
0
votes
2answers
106 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
2 3 4 5
14