/r/spacemacs

Photograph via snooOG

Subreddit for the Spacemacs project

/r/spacemacs

6,481 Subscribers

2

Copy Windows config to MacOS

Anyone knows how I can copy my configuration from Windows to MacOS?

0 Comments
2024/04/23
10:24 UTC

1

tailwindcss layers on spacemacs

hey,

I created my first layer on spacemacs to integrate tailwindcss but I am having issues.

packages.el (defconst tailwindcss-packages '((lsp-tailwindcss :location (recipe :fetcher github :repo "merrickluo/lsp-tailwindcss")) ))

(defun tailwindcss/init-lsp-tailwindcss ()
  (use-package lsp-tailwindcss
    :init
    (setq lsp-tailwindcss-add-on-mode t)
    :config
    (add-to-list 'auto-mode-alist '("\\.svelte\\'" . svelte-mode))
    ))

config.el

(use-package! lsp-tailwindcss)

tailwindcss is installed along tailwindcss-language-server.

I can't seem to get completion in svelte files .e.g. <div class="bg-red-500 .... I do have it working in neovim but not on emacs.

Any help is appreciated

0 Comments
2024/04/18
18:34 UTC

1

org-babel - fixing org mode coding assistance

Hello, folks! So in my journey to trying to code within org-mode using org-babel, I've eventually stumbled upon this very relevant article-slash-guide by dalanicolai.

I've checked the relevant .el

~/.config/emacs/elpa/29.2/develop/org-contrib-0.4.2/org-eldoc.el

and, yeah, the fixes are there, only seemingly further evolved.

Frustratingly, while src code block's header lines' eldoc's documentation is (and has been) working, the emacs-lisp's own eldoc support within the src block isn't working. It's working when editting from within an .el file - or when using org-edit-special (M-m m ')

Could you help with my thought process on what is my next search query should look like?

0 Comments
2024/04/11
23:38 UTC

3

Why am I getting multiple instances of gtags consuming my entire CPU?

I am using emacs 28.1 + spacemacs. Aside from that I haven't added anything overly custom to my .spacemacs. As I spend time editing .cpp files, I will get many (10+ instances) of gtags running that were spawned by emacs and each one will consume 8-10% of my CPU. Any ideas on determining why emacs is doing this, or how to prevent it, are appreciated.

More background: I'm running emacs on a Windows system that's using cygwin gtags. I've tried disabling all of the packages that have an obvious tie-in to gtags (counsel/swiper, ggtags, helm-gtags) and that hasn't changed behavior. I also changed: (ggtags-update-on-save nil), also with no change. It appears to me that a new instance of gtags gets run anytime I save a .cpp file, but could be wrong (I'm just observing taskmgr at the time I save). My codebase is quite large, it takes a very long time for gtags to re-index.

1 Comment
2024/04/10
21:39 UTC

0

Eglot in src buffer

Hi, I work in org mode using ess-r. I'm not able to lets eglot automatically start while I open the src temp buffer. Emacs recognize the major mode (ess-r-mode) but eglot do not start. I try to open a .R file and eglot start as expected, so the issue is relative the src buffer. Do you have the same issue? How do you menage it?

0 Comments
2024/04/10
07:13 UTC

1

Cannot use dap-mode for python

I'm a noob to (spac)emacs. Recently I need to use debugging feature for python on spacemacs. I found that dap-mode is the way to do it.

I have read the dap-mode config for python. I have installed debugpy. I tried to debug my python file using , d d d to start debug. I select the Python :: Run file (buffer). But I always got this error Debug session process exited status: exited abnormally with code 1

How do I solve this? Am I missing any step to activate the dap-mode?

4 Comments
2024/04/09
12:34 UTC

3

Development version of Org mode

I haven't managed to find a way to have Spacemacs use the development version of Org mode, rather than the Org mode from Elpa. I want the main development branch, rather than the bugfix branch that Elpa follows. Is there a simple way to do this? Ideally, I'd only do this until the main development branch is released and appears on Elpa.

0 Comments
2024/04/06
19:59 UTC

5

Is there any way to prevent Spacemacs from going to Melpa to get packages?

I'm on a work computer that's pretty locked down in terms of Internet access, so Melpa is unavailable. I’m trying to get my SpaceMacs configuration up and running to be productive. I have manually copied all of the files from the .emacs.d/elpa onto my computer, but when I start SpaceMacs, it still wants to go reinstall everything. Is there a way to prevent this behavior?

0 Comments
2024/03/27
20:56 UTC

1

Company Yasnippet completion not working in lsp enabled modes

Hi all,

I'm having issues using yasnippet completion in modes that also use lsp for completion. That means, in those modes, snippets will no longer be shown in the completion window nor will they complete if I enter the keyword.

For comparison, I looked at org-mode. Everything is working as expected there: I have some context sensitive completion as well as snippets from yasnippets. I get the following output from company-diag:

Emacs 29.1 (aarch64-apple-darwin22.5.0) of 2023-08-08 on admins-Virtual-Machine.local
Company 0.10.2

company-backends: ((company-files :with company-yasnippet)
 (company-capf :with company-yasnippet))

Used backend: (company-capf :with company-yasnippet)

Value of c-a-p-f: (yasnippet-capf pcomplete-completions-at-point t)
Major mode: org-mode
Prefix: nil
Completions: none

So the active backend company-capf with company-yasnippet enabled. Just as I expected.

Now if I compare that to go-mode, I do get completion candidates from the go lsp server but I no longer get snippets. The output from company-dial confirms that:

Emacs 29.1 (aarch64-apple-darwin22.5.0) of 2023-08-08 on admins-Virtual-Machine.local
Company 0.10.2

company-backends: (company-capf
 (company-go :with company-yasnippet)
 (company-files :with company-yasnippet)
 (company-capf :with company-yasnippet))

Used backend: company-capf
Value of c-a-p-f: (lsp-completion-at-point semantic-analyze-completion-at-point-function semantic-analyze-notc-completion-at-point-function semantic-analyze-nolongprefix-completion-at-point-function tags-completion-at-point-function)
Major mode: go-mode
Prefix: ""
Completions:
....

It looks like it replaced the yasnippet enabled company-capf.

From what I understand I want the backend to always be (company-capf :with company-yasnippet).

Does anyone know what's going on here? How do I get capf and yasnippet working at the same time with lsp?

0 Comments
2024/03/23
22:50 UTC

3

mini buffer is hiding other windows emacs-29.2

Description 📷

minibuffer is hiding all other windows

Reproduction guide 🪲

  • Start Emacs
  • create 3-4 windows using C-x 3, C-x 3, C-x 3
  • invoke mini buffer by M-x

Observed behaviour: 👀 💔you can see, when the minibuffer is open its hiding all the windows except that active one

Expected behaviour: ❤️ 😄mini buffer should open without hiding all the other windows

issue:https://github.com/syl20bnr/spacemacs/issues/16317

screen record

1 Comment
2024/03/21
00:49 UTC

2

Intermittent Errors in python/lsp layer

Hi all.

I am having a strange issue with my spacemacs installation. As you can see in the picture, I have an issue where my flycheck-mode throws a ton of errors for things that shouldn't be errors at all (eg. np.multiply!). This happens sporadically, sometimes I open this class file and it has 0 errors and warnings, and sometimes it just decides to freak out.

My best guess is that this is a lsp or flycheck issue, but I unfortunately do not have the know how to fix it. Have tried looking around the interwebs for help to no avail.

Anyone with any insight? Much appreciated!

Also happy to add any versioning information I can upon request, I just am not sure what to include here..

https://preview.redd.it/qyedsfxu7dmc1.png?width=1053&format=png&auto=webp&s=8bc2ddf2c507b928051e206f249d538a3cd08f34

2 Comments
2024/03/04
19:00 UTC

6

Cannot install spacemacs on Fedora

I tried installing the packages with the insecure flag but that didn't do anything. I've removed the previous install and updated the Fedora system packages.

```

An error occurred while installing treemacs-magit (error: (error Package ‘compat’ (version 29.1.4.4) is unavailable))

-

An error occurred while installing paradox (error: (error Package ‘spinner’ (version 1.7.3) is unavailable))

```

Any suggestions?

0 Comments
2024/02/20
13:28 UTC

2

No matter what I do, Spacemacs won't default to visual line numbers / visual line navigation

My .spacemacs has dotspacemacs-line-numbers 'visual

Since that didn't work, for good measure, I added the following to dotspacemacs/user-config

(spaceamcs/toggle-visual-line-numbers-on)  
(spacemacs/toggle-visual-line-navigation-globally-on)

Nothing. Every time I start, there are no line numbers shown, and text goes all the way off the screen to the right. I have to physically type SPC t n v and SPC t l every time I open a new buffer. What am I doing wrong?

1 Comment
2024/02/16
23:05 UTC

4

Help

Hi, my Spacemacs stopped showing keybindings hints when I press Space key (actually it shows hints when emacs has just launched but as soon as I open a file it stops working), does anyone know how to reactivate it or why is it happening??

Just launched emacs

Inside a file

6 Comments
2024/02/09
15:11 UTC

1

Can't load custom .el files

I'm trying to move to spacemacs from vanilla, but I have some custom configuration files I need.

I have placed them in .emacs.d/private/fixes. There are a bunch of files, but basically I just need to load before-init.el as early as possible, and after-init.el just before finishing startup. Those two then load the various other .el files.

I've tried playing around in .spacemacs, but I can't seem to get them to load. Does anyone have a similar setup they could share?

0 Comments
2024/01/31
06:51 UTC

6

Is anyone using the slack layer in Spacemacs successfully?

0 Comments
2024/01/29
02:37 UTC

1

Title: Seeking Help with shared Spacemacs Configuration Across Three Different Computer

Hello fellow Redditors,

I'm reaching out for assistance regarding my Spacemacs configuration. I have three machines running Arch, Mac, and NixOS, and I'd like to figure out a way to share a single Spacemacs configuration file among them.

I guess I should use something like if *detected computer* but I do not know how to write the config.

The challenge lies in managing the differences between the systems, such as font selection and font size settings. If anyone has experience or insights into efficiently syncing Spacemacs configurations across multiple platforms, I would greatly appreciate your guidance.

Thank you in advance for your help!

1 Comment
2024/01/10
02:30 UTC

3

Title: Seeking Help with shared Spacemacs Configuration Across Three Different Computer

Hello fellow Redditors,

I'm reaching out for assistance regarding my Spacemacs configuration. I have three machines running Arch, Mac, and NixOS, and I'd like to figure out a way to share a single Spacemacs configuration file among them.

I guess I should use something like if *detected computer* but I do not know how to write the config.

The challenge lies in managing the differences between the systems, such as font selection and font size settings. If anyone has experience or insights into efficiently syncing Spacemacs configurations across multiple platforms, I would greatly appreciate your guidance.

Thank you in advance for your help!

1 Comment
2024/01/10
02:29 UTC

4

Spacemacs akward warning

Hi, I installed spacemacs in Arch Linux but I keep getting this warning

(Spacemacs) Warning: Ignoring :requires for package counsel-projectile because layer spacemacs-layouts does not own it.

Could anyone help me please

2 Comments
2024/01/04
03:54 UTC

5

Getting errors when installing spacemacs package, please help me fix this .

Below is the ouput when i open emacs

⛔ Error (use-package): Cannot load clean-aindent-mode
⛔ Error (use-package): Cannot load column-enforce-mode
⛔ Error (use-package): drag-stuff/:init: Symbol’s function definition is void: drag-stuff-mode
⛔ Error (use-package): Cannot load evil-collection
⛔ Error (use-package): evil-easymotion/:init: Symbol’s function definition is void: evilem-default-keybindings
⛔ Error (use-package): Cannot load evil-mc
⛔ Error (use-package): Cannot load evil-textobj-line
⛔ Error (use-package): eyebrowse/:init: Symbol’s function definition is void: eyebrowse-mode
⛔ Error (use-package): Cannot load eyebrowse
⛔ Error (use-package): hl-todo/:init: Symbol’s function definition is void: global-hl-todo-mode
⛔ Error (use-package): Cannot load persp-mode
⛔ Error (use-package): Cannot load popwin
⛔ Error (use-package): Cannot load spaceline-config
⛔ Error (use-package): Cannot load string-inflection
⛔ Error (use-package): vi-tilde-fringe/:init: Symbol’s function definition is void: global-vi-tilde-fringe-mode
⛔ Error (use-package): Cannot load vi-tilde-fringe
⛔ Error (use-package): volatile-highlights/:init: Symbol’s function definition is void: volatile-highlights-mode
⛔ Error (use-package): Cannot load winum

4 Comments
2023/12/26
20:06 UTC

6

Doom have very good describe-variable ui, how to do it in spacemacs?

Doom use ivy, counsel to config describe-variable function (Ctrl-h v). Is Spacemacs has way to config like that?

https://preview.redd.it/8dr8kiuggn4c1.png?width=1288&format=png&auto=webp&s=371a21739d900d93e0e49f9b148f1c14186c66bc

0 Comments
2023/12/06
10:13 UTC

2

Yank line and paste broken

This only happens on GUI mode but not on terminal -nw with Spacemacs on Emacs 29.1

On a line with abcd, if I type ^ then yy and then p, my buffer should look like the following.

abcd
abcd

But one of my setup, it works like

aabcd
bcd

Has anyone experienced this?

12 Comments
2023/11/29
12:33 UTC

2

Unable to install package

Hi, I try to add persistent-scratch to spacemacs but it is not loaded at sturtup even if I put it into the dotspacemacs-additional-packages. I can install it using the package-install but the installation is not persistent (XD) Do you have any suggestion?

2 Comments
2023/11/18
11:41 UTC

1

Tabs without groups?

I enabled the tabs layer, but Centaur tabs puts tabs into groups and I don't really want that. I want all files to be in one big group. Is there a way to do that? I also tried using regular emacs tabs, but that seems to act funny with both neotree and treemacs.

Ultimately, I want what you would have many other text editors, file directory of some kind in one pane and a bunch of tabs of files in another pane. Can you suggest any way to do that?

1 Comment
2023/11/08
04:54 UTC

1

Enforcing Vertical Split for Documentation Lookup in Spacemacs

Hi everyone,

I'm reaching out to seek assistance with a Spacemacs customization I'm trying to implement. I've currently bound a key to trigger `spacemacs/evil-smart-doc-lookup` using the following configuration in my `.spacemacs`:

(define-key evil-normal-state-map (kbd "g r") 'spacemacs/evil-smart-doc-lookup)

The above setup works as expected; however, my preference is for the documentation to open in a vertical split rather than the default horizontal split. I've searched through the documentation and various forums but haven't found a definitive solution that targets this specific function without globally changing the splitting behavior for all windows.

Does anyone have a suggestion on how to achieve this? Any pointers or examples would be greatly appreciated.

Thank you in advance for your time and help!

## Solved

Put in `dotspacemacs/user-config ()`
;;-------------------------------------------------------------

;; JUMP TO DEFINITION

;;-------------------------------------------------------------

(with-eval-after-load 'evil

(define-key evil-normal-state-map (kbd "g d") 'spacemacs/jump-to-definition-other-window))

2 Comments
2023/11/05
12:24 UTC

3

org-todo keybinding not working after new install

I recently re-installed spacemacs and the tree keybindings at https://www.spacemacs.org/layers/+emacs/org/README.html#tree aren't there. Specifically, I really want to map t to org-todo, but I also want to understand why they aren't appearing.

I believe that all I changed in my .spacemacs file is uncommenting org in dotspacemacs-configuration-layers and adding the following to (defun dotspacemacs/user-config () :

  (with-eval-after-load 'org
    ;; here goes your Org config :)
    ;; ....
    (setq org-agenda-files '("~/Documents/Orgs"))
    (org-defkey org-mode-map [(meta return)] 'org-meta-return)  ;; The actual fix
    )
  (with-eval-after-load 'org-agenda
    (require 'org-projectile)
    (push (org-projectile:todo-files) org-agenda-files))
1 Comment
2023/11/03
16:42 UTC

4

Spacemacs Scrolling Issue on MacBook M1 – Need Assistance!

Hello, Spacemacs community!

I've been facing a peculiar issue while scrolling in Spacemacs on my MacBook M1. When I scroll, there are moments where the entire block of code or window shifts by a single character to the right. It's a bit tricky to explain, but I've attached a video to demonstrate the behavior more clearly.

Here are the specifics:

  • Emacs Version: GNU Emacs 30.0.50
  • Spacemacs Version: b86a074 - (grafted, HEAD -> develop, origin/develop, origin/HEAD)

I've attempted to look into this on my own, but I'm still relatively new to Spacemacs and not entirely sure how to describe the problem or where to start troubleshooting. I began using Spacemacs just at the start of this year, so I'm still on the learning curve.

I'd be incredibly grateful for any insights or suggestions on how to tackle this. Your expertise and experience have been a massive help in my journey so far, and I truly appreciate this wonderful community for all the assistance.

Thank you!

https://reddit.com/link/16qvyoi/video/uo13px5l07qb1/player

0 Comments
2023/09/24
11:57 UTC

1

Modus themes?

What is the recommended path to using modus themes in Spacemacs?

1 Comment
2023/09/24
03:42 UTC

3

Has any one gotten spacemacs to work on ec2 ARM64 Graviton Instances?

There seems to be a lot of issues running on the ec2 arm chips that I'm not facing on the x86 architecture. Anyone else tried running spacemacs on ec2 arm chips?

0 Comments
2023/08/27
08:21 UTC

Back To Top