Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set autothemer theme as default #16753

Open
drlkf opened this issue Dec 26, 2024 · 0 comments
Open

Cannot set autothemer theme as default #16753

drlkf opened this issue Dec 26, 2024 · 0 comments

Comments

@drlkf
Copy link

drlkf commented Dec 26, 2024

Description :octocat:

When definining a custom theme with autothemer, I cannot get it to load properly as default without manual a post-startup invocation of helm-themes.

Reproduction guide 🪲

  • Create a theme in SPACEMACSDIR named test-theme.el:
(require 'highlight-parentheses)

(autothemer-deftheme
 test "test theme"
 ((black       "black"       "black" )
  (white       "brightwhite" "white" ))

 ((default (:foreground white :background black )))

 (setq highlight-parentheses-colors (list black white)))

(provide-theme 'test)
  • Put autothemer in dotspacemacs-additional-packages
  • Put the following in user-init:
  (add-to-list 'load-path (getenv "SPACEMACSDIR"))
  (add-to-list 'custom-theme-load-path (getenv "SPACEMACSDIR"))
  • Set dotspacemacs-themes as follows:
   ;; dotspacemacs-themes '(test) ;; also does not work
   dotspacemacs-themes '((test :location local))
  • Start Emacs
  • (here the theme does not load properly)
  • SPC T n does not load the theme
  • helm-themes loads the theme properly post-startup

Observed behaviour: 👀 💔
The theme seems half-loaded and will not load properly if cycled or invoked via
load-theme or enable-theme.

Expected behaviour: ❤️ 😄
The theme should be loaded properly and set as default upon startup.

System Info 💻

  • OS: gnu/linux
  • Emacs: 29.4
  • Spacemacs: 0.999.0
  • Spacemacs branch: develop (rev. 9ff035a)
  • Graphic display: nil
  • Running in daemon: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(ansible
 (auto-completion :variables auto-completion-return-key-behavior nil auto-completion-tab-key-behavior 'complete auto-completion-complete-with-key-sequence-delay 0.1 auto-completion-minimum-prefix-length 2 auto-completion-idle-delay 0.2 auto-completion-enable-snippets-in-popup nil auto-completion-enable-help-tooltip nil auto-completion-use-company-box nil auto-completion-enable-sort-by-usage t)
 (cmake :variables cmake-backend 'lsp)
 (git :variables git-enable-magit-todos-plugin t)
 (go :variables go-backend 'lsp go-format-before-save t)
 (haskell :variables haskell-completion-backend 'lsp haskell-enable-hindent t)
 (helm :variables helm-use-fuzzy 'source helm-position 'bottom helm-enable-auto-resize nil helm-no-header t)
 (html :variables css-enable-lsp nil less-enable-lsp t scss-enable-lsp t html-enable-lsp nil)
 (ibuffer :variables ibuffer-group-buffers-by 'projects)
 (japanese :variables helm-migemo-mode 1)
 (java :variables java-backend 'lsp)
 (javascript :variables javascript-backend 'lsp javascript-fmt-tool 'web-beautify javascript-fmt-on-save t)
 (keyboard-layout :variables kl-layout 'qwerty)
 (lua :variables lua-backend 'lua-mode)
 (mu4e :variables mu4e-org-compose-support t)
 (org :variables org-enable-org-contacts-support nil org-roam-enable-protocol nil org-enable-roam-support nil)
 (perl5 :variables perl5-backend nil)
 (php :variables php-backend 'lsp)
 protobuf
 (python :variables python-backend 'anaconda python-format-on-save t python-formatter 'black)
 (ranger :variables ranger-override-dired t ranger-cleanup-on-disable t ranger-show-hidden t ranger-show-literal nil ranger-max-preview-size 2 ranger-cleanup-eagerly t)
 (ruby :variables ruby-backend 'robe)
 (rust :variables lsp-rust-server 'rust-analyzer)
 (scala :variables scala-auto-start-ensime t)
 (shell :variables shell-default-position 'bottom shell-default-height 40 shell-default-shell 'vterm)
 (shell-scripts :variables shell-scripts-format-on-save t)
 (spell-checking :variables spell-checking-enable-by-default nil spell-checking-enable-auto-dictionary t)
 (sql :variables sql-auto-indent t)
 (syntax-checking :variables syntax-checking-auto-hide-tooltips -1 syntax-checking-enable-by-default t)
 (terraform :variables terraform-backend 'lsp terraform-auto-format-on-save t)
 (treemacs :variables treemacs-lock-width t)
 (typescript :variables typescript-fmt-on-save t)
 (vimscript :variables vimscript-backend 'company-vimscript)
 (yaml :variables yaml-enable-lsp-enable-lsp t)
 csv debug emacs-lisp emoji graphviz lobsters lsp markdown multiple-cursors nginx pass reddit ruby-on-rails systemd salt)
  • System configuration features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB

Backtrace 🐾

Nothing relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant