toroidal-code / cycle-themes.el

Because switching between your themes shouldn't be so damn hard
25 stars 9 forks source link

Not working in Emacs 25.2 (Wrong type argument) #2

Open real-milos opened 7 years ago

real-milos commented 7 years ago

Hello.

I was looking for an elisp function that would cycle my custom Emacs themes (I agree that switching between your themes shouldn't be so damn hard), and came upon your package that claims to do exactly that.

However, your code does not seem to work in the latest version of GNU Emacs, which is v25.2.

Running M-x cycle-themes results in the following error:

cycle-themes: Wrong type argument: number-or-marker-p, nil

I used the following expression to load and configure the package:

  (use-package cycle-themes
    :ensure t
    :init (setq cycle-themes-theme-list '(leuven tango-dark))
    :config (cycle-themes-mode)
    (global-set-key (kbd "C-<f12>") 'cycle-themes))

I am unable to debug this error myself, as I am only a novice Emacs user and LISP programmer.

vyorkin commented 7 years ago

getting the same error, here is my config:

(use-package cycle-themes
  :init
  (setq cycle-themes-theme-list
        '(base16-chalk-theme
          base16-default-dark-theme
          base16-grayscale-dark-theme
          base16-pop-theme
          base16-tomorrow-night-theme
          base16-irblack-theme))
  :config
  (cycle-themes-mode))
behrica commented 5 years ago

I have the same problem. I discovered that it happens, if your "current theme" is not in the list of themes.

Ones you switch to one in the list, via "load-theme", it works.