New answers tagged

0 votes

How to debug my init.el if --debug-init does not help?

Have you tried bug-hunter? It can automatically detect errors in your init file, and when it fails to detect any errors, it helps you isolate the line that triggers it by progressive bisection of the ...
user avatar
  • 179
1 vote
Accepted

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,040
0 votes

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

I'll probably mark Tyler's answer as the selected answer, but I'm not able to test it, as that relies on a commit from Nov-2021, targeted at Emacs 29.1, which introduces a new switch --reuse-frame/-r. ...
user avatar
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
0 votes
Accepted

How can I see all errors in a Go project with LSP mode?

There is a package flycheck-projectile which lists all errors in the package. It takes a bit of time to load, but then in watches for changes and it's very fast.
user avatar
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
0 votes

How to load a particular layout (perspective) on startup in spacemacs?

Try to put the following in your user-config, Though I don't know why it open *scratch* buffer (add-hook 'persp-mode-hook (lambda () (persp-load-state-from-file) ...
user avatar
  • 1,316
0 votes

Dynamic Keybind Without Use of Macro

I don't use Spacemacs. Does this do what you want? (defun bind-current-file () `(spacemacs/set-leader-keys "of" (lambda () (interactive) ...
user avatar
  • 69.7k
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.8k
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
0 votes

Align columns in Org Mode with Korean letters

I'm more than three years late, but it can be fixed using face-font-rescale-alist. For instance, with JuliaMono 15pt, D2Coding font can be scaled x1.2 to match the width: (set-frame-font "...
user avatar
  • 121
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
0 votes
Accepted

Why emacs editor changes indent automatically when copy a context into it?

maybe you have enabled better-defaults layer in spacemacs, if so, then it will automatically indent when you paste (yank). In order to paste (yank) without indenting, then prefix the command with C-u ...
user avatar
  • 16
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
0 votes

How to change indent size for typescript layer in Spacemacs?

I ran into the same problem with .tsx files. Turns out you also have to set the variable web-mode-code-indent-offset to your preferred indent level as well. If you go M-x customize then search for ...
user avatar

Top 50 recent answers are included