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.
821 questions
0
votes
0
answers
28
views
Spacemacs - Setting a variable only works after refresh
Every time I start up spacemacs, some variables are not defined. I get:
"Symbols function definition is void: nil"
However, when I refresh the configuration (SPC f e R), everything works ...
0
votes
0
answers
17
views
Matches in ivy-occur open in a wrong window
The issue
I use counsel-rg, get a list of search matches, open ivy-occur from it with C-c C-o. Then I press n or p (next/previous-error-no-select command) to open the location of a match.
The match ...
1
vote
1
answer
77
views
spacemacs / what does SPC replace?
beginner question: is there a way (or rule of thumb) to convert a keybinding in emacs to a corresponding one in spacemacs?
I often find online tutorials on emacs rather than spacemacs, and when they ...
0
votes
0
answers
149
views
how can i make spacemacs copy to system clipboard on wayland?
So i was trying out spacemacs, and honestly its pretty cool. But when i copy something with 'y' , it copies it to a local clipboard, meaning i can only paste it in the same file, and i cant paste ...
1
vote
0
answers
92
views
No communication with remote language server with lsp-mode and tramp?
I'm trying to use lsp-mode for files on a remote server (a container in a kubernetes cluster). According to the documentation it should work automagically but I do not get it to work.
The relevant ...
1
vote
1
answer
131
views
Llm-client in spacemacs
Following these instructions, I tried to install llm-client layer to my spacemacs.
Spacemacs tells me "Unknown layer llm-client declared in dot file".
Have you any idea what to do ?
0
votes
1
answer
118
views
Why package-delete is not persistent and package keeps getting reinstalled on restart?
I keep seeing the following warning each time I open Magit in Emacs
Emergency (emacsql): Uninstall the `git-commit' package.
The "git-commit.el" library is no longer distributed as a ...
0
votes
1
answer
30
views
Go back to "non branch commit"
I was trying out Magit on Spacemacs and wanted to push one of my commits to remote, but I realized I had never actually selected a branch after cloning the repository. When I went into one of the ...
0
votes
0
answers
80
views
How to auto indent?
Say I'm in foo.py and I want to paste something into the docstr of function f:
something:
foo
bar
def f():
"""
"""
My current workflow (evil normal mode, ...
0
votes
0
answers
37
views
Php Mode keep show this error. #16330
Hello i am on spacemacs and facing a error keep pop up and i have no idea why, may someone help me look into it ?
ac-php: Unable to resolve project root
Company: An error occurred in auto-begin
...
0
votes
1
answer
250
views
How to use Sioyek as the default pdf viewer in spacemacs
I want to be able to link to pdf files in spacemacs and open them with Sioyek.
This post: https://github.com/ahrm/sioyek/discussions/347 seems to almost solve my issue but I have no idea where to put ...
0
votes
1
answer
146
views
evil-delete-line deletes hidden children in org-mode
Calling evil-delete-line from a headline is deleting hidden children. Same behavior with evil-change-line.
On a collapsed outline tree how can I delete from the cursor to the end of line while keeping ...
1
vote
1
answer
71
views
Unable to disable nor shrink recentf-mode
Loading recentf (180MB) makes emacs unusable recently. Simple M-x calls take almost a minute each and everytime I see a recentf related message.
As others already asked I'm unable as well to disable ...
0
votes
1
answer
341
views
Change white-space color
I'm trying to set the whitespace color with something less visible, but for some reason is not applying it.
(custom-set-faces
'(whitespace-space ((t (:background "red")))))
this inside ...
0
votes
0
answers
66
views
How to debug exwm with chemacs2?
I usually enter s Return in my terminal to start spacemacs.
After updating linux (in particular emacs 28.2 > 29.1) I got a blank screen instead.
I tried changing .xinitrc to emacs --debug-init --...
0
votes
1
answer
58
views
Spacemacs ask for GIT in a Windows Installation
I installed spacemacs in a folder hierarchy as below
I run it through this bat file
set HOME=%~dp0/.spacemacs
Set VAR = %cd%
"%cd%\bin\runemacs.exe" --insecure --debug-init
It runs quite ...
3
votes
1
answer
155
views
How to stop Spacemacs from asking for a required layer installation
Each time I open a .toml file I'm asked in the minibuffer:
Support for toml-mode requires installation of layer rust, do you want to install it? (y or n) n
How can I stop that question?
1
vote
2
answers
173
views
How to indent-region with TAB key?
I want to detect if selection made was activated and bind appropriate code for indent-region or ifselection mode was not activate - other code.
0
votes
1
answer
1k
views
lsp-mode can't register custom lsp client using with-eval-after-load
I am trying to use a custom lsp server. I place the following snippet in my init file:
(with-eval-after-load 'lsp-mode
(add-to-list 'lsp-language-id-configuration '(solidity-mode . "...
0
votes
1
answer
59
views
Third-party function overrides my customized variable and my mode hook
In the spacemace python layer, the following function overrides my customizations for the variable company-minimum-prefix-length
python layer
(defun python/post-init-company ()
;; backend specific
...
1
vote
2
answers
226
views
Elisp programming: Jump to heading with a specific `Custom_ID` property value
Within the same org buffer, how to jump to heading with a specific Custom_ID property value?
Edit:
I need an Elisp function that takes a string argument and jumps to the heading with a Custom_Id ...
0
votes
1
answer
123
views
Prevent completion of the empty string
I would like to prevent completions to the empty string in python and in inferior-python-mode.
To explain a bit better - when the prompt or the string is empty, there are no completions proposed. When ...
0
votes
0
answers
88
views
Helm see options for opening a file
I'm new to emacs and using Spacemacs Doom. I pressed SPC f r t of find recent files and I used the arrow keys to select the one I want. Now I want to see what options I have for opening it (open in ...
1
vote
2
answers
112
views
Spacemacs: User code does not load in dotspacemacs/user-init and dotspacemacs/user-config -- elfeed
I want to modify elfeed using this article: https://cundy.me/post/elfeed/
I cannot load the following code:
(defun concatenate-authors (authors-list)
"Given AUTHORS-LIST, list of plists; return ...
0
votes
1
answer
339
views
Org-mode, linking between headings topic
I use Org-mode to manage a knowledge-base system.
I want to apply the dependency/requirement concept for learning any specific topic:
Let's say We have 4 nodes, each one represent a "Topic to ...
0
votes
1
answer
93
views
do nothing more than syntax highlighting when spacemacs open python file(or any other source files)
I use spacemacs. Currently, when I open a python file, emacs will do a lot of things, it will check the syntax and give tips. This is what describe-mode gives:
Auto-Compression Auto-Encryption Bug-...
0
votes
1
answer
198
views
Configuring Clojure Mode to use Parinfer layer in Spacemacs
I am an experienced Clojure developer making the transition to using Spacemacs. I would like to use parinfer in my setup to manipulate my Clojure code structure, but I am struggling to get the ...
0
votes
1
answer
340
views
tufte-org-mode: how to set up?
I would very much like to be able to use the following package in my spacemacs environment:
https://github.com/tsdye/tufte-org-mode
Alas, I am still learning how to do things in spacemacs.
My ...
1
vote
1
answer
93
views
how to config highlight style in spacemacs as sublimetext did?
I used highlight-symbol to show all selected text in spacemacs, but that looks not very good as sublime text did as following pic:
My question is that if spacemacs could use box style without color ...
0
votes
1
answer
187
views
how to exchange ESC with C-g in spacemacs
I used C-g to cancel operation in spacemacs, but feel ESC is a better way than C-g. I tried the following, but not work, spacemacs will report issue when startup:
(define-key key-translation-map (kbd &...
1
vote
1
answer
105
views
how to unbind M-1 in spacemacs?
I used spacemacs for my work, now I need to unbind M-1 with following, but not work
(global-unset-key (kbd "M-1"))
I checked binding, it looks M-1 was used by winum-select-window-1.anyone ...
0
votes
1
answer
31
views
Spacemacs keybinding not behaving as expected
The following keybindings work when simply moving. However, when pressing d and then one of these keys, the behavior is not as expected.
When pressing dL it will delete until the end of the page. When ...
1
vote
1
answer
129
views
How to find out where the message comes from?
I'm trying to use Espanso in Emacs GUI. But nothing expands and Emacs echoes the message: "Beginning of buffer". The same snippet works everywhere except Emacs. I want to know where the ...
1
vote
1
answer
224
views
When using spacemacs, where do I put my init file?
I've installed Spacemacs on ubuntu.
I've got some functions that I'd like to bring over from my old (vanilla) Emacs configuration.
Where do I put them?
The convention for normal Emacs is that users ...
0
votes
1
answer
213
views
How to add prefix to suggestions in evil-mode?
Spacemacs has a way to add prefix descriptions with (spacemacs/declare-prefix ...). However, some evil-mode keybindings are lacking prefix descriptions. For example, in evil-mc g r is the prefix for ...
0
votes
1
answer
115
views
Remapping org-agenda-transient-mode in spacemacs
The org-agenda-transient mode in spacemacs is mapped by default to M-SPC. Since I am running spacemacs in a wsl-g setup, this key is not available, since this is a default key mapping of windows and ...
2
votes
1
answer
779
views
Is there any way of not displaying the results of a code on the current file with org mode (spacemacs)?
Let's say I have an org file with the following content on Spacemacs:
#+begin_src bash
counter=0
while [ $counter -lt 10 ]
do
echo $counter
let counter=counter+1
done
#+end_src
...
0
votes
1
answer
174
views
spacemacs/dired-aux rename file to similar name without ivy/counsel trying to rename to same file name
In spacemacs I find that two ways to get a new copy of a file with a slightly different filename both suffer from the same completion problem:
C-x C-w (write-file)
dired-aux's dired-do-rename (bound ...
0
votes
1
answer
401
views
How to rebind "gj" for org/evil normal mode?
I want gj keys to execute function org-next-visible-heading (in evil normal mode). How should I do it in Spacemacs?
I was reading documentation and googling but I can't figure it out. What I tried ...
0
votes
1
answer
2k
views
How can I copy the text to the clipboard while using spacemacs?
I know that on emacs I can install the xclip package in order to be able to copy text to the system clipboard... With the xclip package installed and adding the following to my .emacs file, I can copy ...
0
votes
0
answers
48
views
Disable SPC in spacemacs
In edebug, if I press SPC it should jump to the next stop point. But in spacemacs, if I press SPC, a tips window will appear. So how to disable SPC so that I can use edebug space command?
1
vote
2
answers
4k
views
How to Install Emacs latest stable release?
I'm trying to install spacemacs on my laptop with elementary os. With apt the latest version I get is 26.3 and I don't understand why because it seems to be far away from the most recent stable ...
2
votes
1
answer
337
views
"Package is Unavailable" Warning When Starting Spacemacs
I am getting the following warnings every time I start Spacemacs:
Found 2 new package(s) to install...
--> refreshing package archive: nongnu... [3/3]
--> installing package: ef-spring-theme@...
0
votes
1
answer
42
views
comments are not highlighted with numbers in derived mode of prog-mode
It seems if the major mode is derived from prog-mode, a comment line will not be highlighted as a comment if it contains any numbers surrounded by blank spaces.
The content of tt-mode.el
(setq tt--...
1
vote
0
answers
254
views
.bashrc environment variables not picked up by Spacemacs?
I've added a few environment variables to my .bashrc file, some of these are paths to customized bin/programs, such as:
export MY_ENV_PATH_VAR=/home/user/path/to/bin
I've refreshed spacemacs' ....
0
votes
1
answer
453
views
Unable to import project with lsp/lsp-mode, persistent completing-read popup message
I recently had to redo my development setup, I'm using Clojure and clojure-lsp as lsp server, and every time I open a project file I get the message `"x" file is not part of any project"...
0
votes
1
answer
115
views
How to run code after custom-set-variables?
I like to set my color theme programmatically, on the basis of my current system color scheme, like so:
(if (string-equal (gsettings-get "org.gnome.desktop.interface" "color-scheme"...
5
votes
0
answers
162
views
Python development using Docker interpreter
I would like to use Spacemacs for Python development. I've used Emacs for years and still use it for org-mode and other note taking.
At work we develop using Docker based interpreters. This means that ...
0
votes
0
answers
44
views
How to delete a function on which a cursor is in Spacemacs?
Let's say I have this:
(defn -main [& args]
(my-func|tion 5) (my-function-2 "hello")
(third-function-of-mine nil))
where | is my cursor.
And I want to delete (my-function 5).
So in ...
0
votes
1
answer
347
views
How to debug my init.el if --debug-init does not help?
Despite having --debug-init in .xinitrc (exec dbus-launch --exit-with-session emacs --debug-init), I'm not getting any leading details on this error.
Error in dotspacemacs/user-config: Symbol’s value ...