I want to change my colour scheme to a random color scheme. Consider this elisp function:
(defun random-colour-theme () ;; written 2017-04-02 "Pick a random colour theme." (interactive) (setq randomNumber (random 2)) (setq randomColourScheme (nth randomNumber '( "color-theme-dark" "color-theme-light"))) (randomColourScheme) )
Everything works except the last line, (randomColourScheme). randomColourScheme is a string representing either "color-theme-dark" or "color-theme-light". If the command were (color-theme-dark), then it would work. How do you execute a command that is currently in a variable as a string? I don't know how to get started on this one.