cycle-themes.el icon indicating copy to clipboard operation
cycle-themes.el copied to clipboard

Not working in Emacs 25.2 (Wrong type argument)

Open real-milos opened this issue 8 years ago • 2 comments

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.

real-milos avatar Jul 06 '17 12:07 real-milos

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))

vyorkin avatar Sep 12 '17 23:09 vyorkin

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.

behrica avatar Dec 20 '18 13:12 behrica