4 votes
Accepted

Is there a way to emulate spacemacs's modeline with numbers to help jump between windows?

It's winum. I also switched from Spacemacs to my own configs, so if you're interested, you can refer here.
user avatar
  • 1,306
3 votes
Accepted

org-capture template does not replace the date placeholder or use the correct level

org-capture-templates probably has the densest doc-string of any variable. The way I deal with it is figure out what I need to do, do it once and then never change it :-) The downside is that when I ...
user avatar
  • 19.9k
3 votes

Why do I need to restart emacs to reload configuation in spacemacs?

There are lots of ways to re-evaluate elisp without restarting Emacs. https://www.masteringemacs.org/article/evaluating-elisp-emacs is a nice article to read on the subject. eval-last-sexp, eval-...
user avatar
  • 43.5k
2 votes
Accepted

Treemacs with Scala Metals/LSP: "Creating Pipe: Too Many Open Files"

I had a similar issue with lsp-mode and treemacs, though I am using vanilla Emacs not Spacemacs. I am also using macOS. From this Reddit thread I discovered that the limits do not appear to be ...
user avatar
  • 146
2 votes
Accepted

Emacs recent buffers use `~` abbreviation?

I think this is controlled by the variable recentf-filename-handlers This tells recentf how to handle the files after processing. I have (setq recentf-filename-handlers '(abbreviate-file-name)) in my ...
user avatar
  • 287
2 votes
Accepted

(Spacemacs) pressing SPC to replace a match during query-replace does not work

It seems to be a recent Spacemacs change of the Emacs defaults. Either set dotspacemacs-use-SPC-as-y to t in your dotspacemacs/init (defun dotspacemacs/init () (setq-default ... ;; all the other ...
user avatar
2 votes
Accepted

Magit becomes very slow in spacemacs

I'm not Magit guy. But looks you need avoid calling magit-refresh. The easiest way is to turn on magit-inhibit-refresh. Here is definition of magit-apply-patch, Disable magit-refresh inside magit-...
user avatar
  • 4,611
2 votes
Accepted

Dynamic Keybind Without Use of Macro

There are a couple of other options. With lexical bindings, you could do this: (defun bind-current-file () (let (the-file (buffer-file-name)) (spacemacs/set-leader-keys "of" (...
user avatar
  • 11.7k
2 votes
Accepted

How do I add custom keybindings in spacemacs?

For spacemacs, the canonical way to make small modification as such is to put your configs inside the defun of dotspacemacs/user-config inside ~/.spacemacs file. If this is the first time you make ...
user avatar
  • 1,027
1 vote

How to make :q, in spacemacs' evil mode, kill the buffer and delete the window, but not kill Emacs?

The commands entered by pressing : are, similar to vim, called 'evil-ex-commands'. How to remap them is described in this issue. For your case, you probably want: (global-set-key [remap evil-quit] '...
user avatar
  • 2,025
1 vote

How to always work from a daemon and always reuse an existing frame? (bonus: do it with chemacs2)

Emacsclient reuses an existing frame by default. If you don't want to create a new frame, then don't ask Emacs to create a new frame - don't use the --create-frame argument. Set --alternate-editor=&...
user avatar
  • 20.3k
1 vote

Org Koma Letter export return args-out-of-range error

As the project page states, the project has bugs and the maintainer does not have enough time to fix them. I would suggest that you find the place in your init file(s) where you add the function ...
user avatar
  • 19.9k
1 vote
Accepted

How to selectively enable flyspell-mode?

The doc string of flyspell-mode-on says it all: Turn Flyspell mode on. Do not use this; use ‘flyspell-mode’ instead. The canonical way for switching Flyspell on in Orgmode is: (add-hook 'org-mode-...
user avatar
  • 30.3k
1 vote
Accepted

How to fix font on start page in spacemacs?

Try M-x and run all-the-icons-install-fonts and see if it resolves your issue.
user avatar
  • 1,027
1 vote

Trouble setting up dap for python in Spacemacs

With help from the spacemacs gitter room I was able to get it working. Here is the solution: Spacemacs doesn't use ptvsd anymore and uses debugpy instead, so I did this: pip uninstall ptvsd pip ...
user avatar
  • 121
1 vote
Accepted

How to use a variable for an output :file path for call-process

You should use Backquote (call-process "/bin/ls" nil `(:file ,path-to-output-test)) or list directly (call-process "/bin/ls" nil (list :file path-to-output-test))
user avatar
  • 1,306
1 vote
Accepted

How to pass in a function for define-key's DEF

Try this instead: (spacemacs/set-leader-keys "ic" (insert-code-block)) It apparently expects, as argument, the result of invoking your function, not your function itself.
user avatar
  • 69.6k
1 vote
Accepted

Force one window when opening multiple files spacemacs

One way is to add spacemacs/toggle-maximize-buffer to window-setup-hook: (add-hook 'window-setup-hook #'spacemacs/toggle-maximize-buffer) Add this to the dotspacemacs/user-init function of your ....
user avatar
  • 341
1 vote
Accepted

Disable flyspell-mode by default

In emacs.d/layers/+checkers/spell-checking/config.el the first line sets spell-checking-enable-by-default to t. At first I set this to nil, but I don't think setting it here is the most spacematic way ...
user avatar
1 vote
Accepted

How to preserve helm project search results to iterate through them

You can toggle helm-follow-mode using C-c C-f within a helm buffer, then when cycling through helm you will see previews of the results. You can switch to the results buffer by typing M-1 and then ...
user avatar
  • 2,025
1 vote
Accepted

How to remove leftover packages from unused layers

If you did not touch the variable dotspacemacs-install-packages i.e. its value is still 'used-only, then the packages do get removed (i.e. 'physically' from the elpa directory). However, the variable ...
user avatar
  • 2,025
1 vote
Accepted

How to open image-dired in a directory using a key binding?

The signature of call-interactively is: (call-interactively FUNCTION &optional RECORD-FLAG KEYS) In particular, you can't pass arguments to the callee in the way you attempt. This should work ...
user avatar
1 vote
Accepted

Emacs / Doom emacs taking a lot of memory

Possibly a duplicate. Find out module slowing down emacs This may be what you're looking for. Emacs Lisp Profiler
user avatar
1 vote

Why do I have missing keybindings for magit in spacemacs?

I figured out the problem. In my spacemacs dotfile, under my layers function, I had the line git commented out. I have since enabled the git layer and I now have all the associated magit commands.
user avatar
1 vote

How can I access the python documentation for the thing at cursor?

One good solution that works here is by using simply pydoc (not helm-pydoc). Put your cursor somewhere on open and do M-x pydoc-at-point-no-jedi. Of course, you can bind some shortcut for it also.
user avatar
  • 2,025
1 vote

Package needs to be reinstalled every time spacemacs is started

Search for dotspacemacs-additional-packages and put the package name inside that list. That way Spacemacs would know not to delete it on startup.
user avatar
  • 1,027
1 vote

How to match a single ')' with replace-regex?

On writing this question, I found the (very simple) answer, so I'll put it out there for anyone else who finds this confusing (considering I found no similar questions). It seems that the default ...
user avatar
  • 106
1 vote

How to disable line wrapping in LaTeX layer?

As largely seen on the web, adding off-switch for the auto-fill minor mode to the (La)TeX major mode won't work anymore, not even with 'append. As duianto states, the solution has been properly ...
user avatar
1 vote

How to change indent size for typescript layer in Spacemacs?

You can initialize this configuration with the layer. In your ~/.spacemacs file, you can set your layers like this.. dotspacemacs-configuration-layers '(systemd (typescript :variables ...
user avatar
  • 201
1 vote

How to disable Prelude Emacs and use system-wide Emacs

If you want to test different setups in Emacs try using Chemacs 2 is an Emacs profile switcher, it makes it easy to run multiple Emacs configurations side by side. Move the configuration that you want ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible