Questions tagged [spacemacs]
Spacemacs is a text editor. An advanced Kit focused on Evil: The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
330
questions
0
votes
1
answer
12
views
How can I configure Spacemacs to always add a newline at the end of files when saving?
I would like text files that I edit in Spacemacs to always end with a newline (\n) when I save them, even if I don't explicitly add it. How can I configure Spacemacs to do this?
I noticed this issue ...
1
vote
0
answers
30
views
spacemacs common-lisp inspect value in a new buffer
I'm new to lisp and emacs. I setup a common-lisp ide with spacemacs (add common-lisp layer), sbcl and everything works fine.
Only one thing, when I click "Inspect" in right-click menu of a ...
0
votes
0
answers
11
views
How to undo all changes when using evil-visual-block in Emacs in Evil mode?
I am using (evil-visual-block) and after the block selection pressing capital letter I and then typing what I want and pressing Esc when I am OK.
Now, I see there is a mistake. How to quickly undo ...
1
vote
0
answers
35
views
Spacemacs warnings after upgrade Debian 10 to 11 on Chromebook
I'm using Spacemacs on a Chromebook using the Linux environment. I had a notification indicated me that a new version of Debian was available, and I launched the upgrade. After that, when launching ...
0
votes
0
answers
22
views
Weird mouse scroll behaviour in emacs - iterm2 in LISP MODE
When I am in "lisp mode" scrolling with the mouse inserts loads of brackets. How do I change the behaviour from this to "scroll"?
I am using spacemacs via ssh iterm2
thanks
0
votes
1
answer
28
views
How to execute a shell script after spacemacs completes loading?
I use EXWM and wanted to execute a shell script after the startup.
0
votes
1
answer
22
views
How to create aliases for the keybindings of ESS-R
I'm using ESS to evaluate R codes inside spacemacs. It has some keybindings to evaluate a line, file, buffer, etc. but the keybindings usually contain 4 key strokes. This is too much. I want to create ...
0
votes
0
answers
13
views
How to avoid automatic character typing in spacemacs python-mode?
I have installed spacemacs, and there's a very annoying behavior I need to disable to make it usable. Every time I define a new function, the ":" at the end of the line is automatically ...
0
votes
0
answers
26
views
How to set 4 spaces indent for Python in Spacemacs?
I have installed spacemacs, strictly following the recommended steps on a fresh emacs build, but it seems impossible to have indentation of 4 spaces in python mode (which is, by the way, the PEP8 ...
0
votes
0
answers
38
views
How to change indentation of lambdas for Erlang in spacemacs?
No matter what I try I can't make lambdas indent with 4 spaces. They always land with 8:
fun() ->
8
end
instead of desired
fun() ->
4
end
I tried adding to my user config following ...
0
votes
0
answers
23
views
Spacemacs | Rspec fails when executed with Zeus
I have been using Zeus to run rspecs since a couple of months. I am exploring ruby layer with Spacemacs and it seems to correctly issue zeus rspec command when zeus is running. Unfortunately, it ...
0
votes
1
answer
21
views
Spacemacs highlighting empty lines within brackets
Empty lines are automatically being highlighted within brackets. This behavior only occurs with curly brackets, not parens, etc.
The issue seems to be with smart-parens, but I have systematically ...
0
votes
1
answer
121
views
Unable to display inline images in Spacemacs
I have the following image link defined in an org file.
[[file:~/image.jpeg]]
Whilst clicking on the link opens the image in a new buffer, I can't get the file to display inline images.
I've tried:
...
1
vote
1
answer
30
views
Spacemacs - is theere a way to use downloaded theme for spacemacs (.el file)
I'm new to spacemacs/emacs. I downloaded an theme file .el and put it in /private/themes dir. (themes dir I created) How can I see it when I hit M-x - load theme ? I read some articles about using ...
0
votes
1
answer
64
views
Make Spacemacs server/daemon not share windows in different frames
When I create new frames, they all share the windows.
If I have 2 frames and 2 windows (with different buffers), the other frame will list the window number as 2 instead of 1.
I want to have the ...
2
votes
0
answers
81
views
Problem with org-mode code structure "#+begin_src lisp" in spacemacs
when I'm writting a code in lisp in a org-mode file. I started a block
#+begin_src lisp
#+end_src
When I write the fist line no problem, functions names highlight correctly.
#+...
1
vote
1
answer
284
views
How to set position of the lsp-ui-doc in spacemacs
I'm new to spacemacs and am having trouble with LSP as I'm also unfamiliar with the elisp language. I have a few things set up, but I can't for the life of me figure out how to set the position of the ...
0
votes
0
answers
43
views
How to enable Elixir code block evaluation in org mode?
Attempting to run elixir code in org mode code blocks (C-c C-c) crashes Spacemacs, (elisp runs fine).
Development branch: 0.300 @27.2
0
votes
1
answer
85
views
How to exclude a layer in spacemacs?
I don't want to enable certain layers in Spacemacs, and choose not to install them, for example, python layer is commented out:
dotspacemacs-configuration-layers
'(
;; python
rust
...
0
votes
1
answer
44
views
In Spacemacs/Emacs, How to break one long string to shorter same width multiple lines string?
Now:
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+...
0
votes
1
answer
79
views
How can I prevent Swiper from showing `^` in Spacemacs?
After installing ivy layer. Press M-x will display "^" in spacemacs, how can I remove it?
0
votes
0
answers
63
views
set-display-table-slot standard-display-table does not work in spacemacs
I've tried LineWrap and added the following to .spacemacs, but it doesn't work in Spacemacs. How can I solve it?
(set-display-table-slot standard-display-table 'wrap ?\ )
My Emacs version is GNU ...
1
vote
1
answer
224
views
How to turn on the `fill-column` indicator at startup in Spacemacs?
M-x spacemacs/toggle-fill-column-indicator
This command can turn on the fill-column indicator in Spacemacs, but how to turn on it at start up in Spacemacs?
0
votes
2
answers
27
views
Is there a way to detect which platform we are in it, inside .spacemacs file?
I'm using spacemacs and I want to declare different paths for org-mode according to the platform that I'm inside it.
For example, if I'm in Linux, I want the path be ~/orgs but if I was in windows the ...
0
votes
1
answer
245
views
Append to default value of a list in emacs-lisp: specifically, dotspacemacs-configuration-layers
Goal
I wish to further extend modularity of my spacemacs configuration by referencing files user-config.org and user-layers.org
Template
I have achieved the former by adding the following to my ...
0
votes
1
answer
34
views
Dired appears with 015 (Octal?)
Recently, my Dired listing in Emacs starting appearing with 015 at the end of each line:
I'm not sure what brought it on. I had been making some changes with my Spacemacs layers but since then I've ...
1
vote
0
answers
32
views
Spacemacs - How to turn off arrow keys
I would like to force myself to use the home row directional keys (hjkl) instead of the arrow keys.
How do I turn off the arrow keys in Spacemacs?
0
votes
1
answer
20
views
In Emacs revert to global buffer registers
I'm using Emacs 26.3 with Spacemacs 0.300 and the registers don't cross from buffer to buffer (global registers). From what I read on the EmacsWiki this is supposed to be global by default. Mine ...
1
vote
2
answers
364
views
How to tell grep to ignore folders in Spacemacs project keyword/symbol search?
In spacemacs you can spc s p to find keywords within your project, in my case Spacemacs uses grep as it is the first search tool it finds according to its dotspacemacs-search-tools configuration.
My ...
1
vote
1
answer
178
views
Org Mode hangs when opening Agenda
I'm having an issue with Org Mode whenever I open the Agenda.
Emacs gets stuck calling Contacting host: fniessen.github.io:443 (seems like an Org theme repository).
This same hanging also happens ...
1
vote
2
answers
367
views
How to open a file in emacs from the terminal without a new instance of emacs opening?
Does anyone know why my terminal opens a new instance of emacs whenever I run emacs "filename" from my terminal?
My google results about the issue showed too many occurrences of people ...
2
votes
1
answer
474
views
Vue: npm run serve crashes when a broken link is added
I have just started using Vue 3.
The npm run serve command works normally. However, once a broken link is added to the folder that npm is tracking, the npm run serve command crashes completely. It ...
2
votes
1
answer
159
views
Emacs and python-mode automatic indentation
python-mode automatic indentation makes a lot of assumptions, it seems, based on style. How can I configure the way it indents in certain cases, or alternatively, make it indent like vim.
For example, ...
0
votes
0
answers
29
views
Emacs config keep changing settings from '(apostrophe) to (quote) and backwards using different OS
I'm using Emacs with the same config(spacemacs) on Debian & OSX computers.
This config is version controlled so each time I see the differences that git suggest to save depending on which OS I use ...
0
votes
1
answer
153
views
Elisp (void-variable\]) when trying to evaluate a function in property list
In my Spacemacs configuration, I configure my org layer to scale any latex it generates like so
(org :variables
org-format-latex-options '(:foreground "#90ee90" :background default :...
2
votes
1
answer
97
views
Emacs/Spacemacs — rebind SLIME `eval-last-expression-in-repl` (, s e) to ctrl-enter
I’m using emacs / spacemacs.
I see that:
, s e # slime-eval-last-expression-in-repl
sends the current highlighted line to the repl and runs it, exactly what I want.
How to add a binding into ...
0
votes
1
answer
459
views
How to assign multiple key combinations to `evil-escape-key-sequence` in spacemacs?
I'd like to assign multiple key combinations that would exit vim insert mode in spacemacs. I tried:
(setq-default evil-escape-key-sequence "fj" "jf" "fd" "df")
...
1
vote
0
answers
188
views
How to change sort order of symbols in Spacemacs lsp-treemacs?
I'm using Spacemacs with lsp-treemacs. How do I configure Spacemacs to change the default sort order of lsp-treemacs's list of symbols (functions) to be based on the symbol/function name in a code ...
0
votes
1
answer
129
views
How do I use Stata in org-mode with spacemacs
I have been a loyal user of emacs. Recently, I switched to using spacemacs and enjoy it very much. For a while, I was able to use Stata in org-mode in spacemacs through ESS. After a recent update, I ...
0
votes
1
answer
70
views
Adding dependencies into deps.edn in Spacemacs
I’m trying to add dependencies to deps.edn typing SPC r a p. When I select a dependency, I get the following message: cljr--insert-into-leiningen-dependencies: Search failed: ":dependencies"....
10
votes
4
answers
2k
views
Can't start emacs (spacemacs) anymore: Invalid read syntax: Invalid byte-code object
Can someone tell me how I can recover from this error? I runs emacs 28.0.50 with spacemacs 0.300.0@28.0.50 on Ubuntu 19.10.
Here is the backtrace from emacs --debug-init
Debugger entered--Lisp error:...
0
votes
1
answer
154
views
npm run crashes when using Spacemacs
For some reason after I have run my react server and I use spacemacs in to edit any file it gives me the following error.
Error: ENOENT: no such file or directory, stat '/home/bitvivaz/Documents/...
1
vote
0
answers
155
views
How to properly install scala metals lsp in spacemacs
The title says it all, I want to install scala metals LSP in spacemacs, I did try the official metals/spacemacs tutorials without success:
https://scalameta.org/metals/docs/editors/emacs.html
https://...
0
votes
1
answer
63
views
Can't find gtags layer default key bindings
I was trying to include the Gtags layer to make use of it in my spacemacs setup like I learned to do with vim+ctags in a given project.
Followed the instructions from: https://www.spacemacs.org/...
0
votes
1
answer
92
views
How to replace a character with a newline in Spacemacs?
I tried to follow this to replace a character with newline in Spacemacs but that key combination replaced it with a space instead of newline.
How to replace a character with a newline in Emacs?
How ...
0
votes
1
answer
133
views
How to stop Spacemacs from overriding the clipboard and enabling pasting on search at the same time?
I often do the following things:
Copy text outside emacs
Switch back to emacs, delete some text
Paste
The problem is that I get back the deleted text since it overwrites the clipboard. To solve this ...
0
votes
2
answers
97
views
Error running a Hello World app using spacemacs and clojure
(ns myname.myapp
(:gen-class))
(defn -main
"I don't do a whole lot ... yet."
[& args]
(println "Hello, World!"))
Running "evaluate last sexpression" with the marker on (println "Hello, ...
0
votes
1
answer
315
views
default font for spacemacs only changes inside terminal
I have tried the following things:
including the following in my .spacemacs
dotspacemacs-default-font '("Fira Code"
:size 16
:weight normal
:width normal
:powerline-scale 1.1)
Doing options, ...
0
votes
2
answers
103
views
How can I stop spacemacs from yanking to the MacOS clipboard?
I'm using Spacemacs on MacOS with the GUI emacs with evil mode.
Yanking and deleting in Emacs overwrites the system clipboard.
How do I stop this? I want to keep the clipboards separate.