Skip to content

Commit

Permalink
Fix byte-compile warnings
Browse files Browse the repository at this point in the history
- Remove quote from lambda expression
- Use mapc instead of mapcar because return value of mapcar is unused.
  • Loading branch information
syohex committed Dec 19, 2015
1 parent d6f3059 commit f68558b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rand-theme.el
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ If this is non-nil then it will have a higher precedence than `rand-theme-unwant
(let ((available-themes (custom-available-themes)) (theme nil))
(if (null rand-theme-wanted)
;; Filter out unwanted themes
(mapc '(lambda (unwanted) (setq available-themes (remove unwanted available-themes))) rand-theme-unwanted)
(mapc (lambda (unwanted) (setq available-themes (remove unwanted available-themes))) rand-theme-unwanted)
;; No need to filter since we already have a list we want to use
(setq available-themes rand-theme-wanted))
;; return themes to use
Expand All @@ -74,7 +74,7 @@ If this is non-nil then it will have a higher precedence than `rand-theme-unwant
(defun rand-theme--load-theme (theme)
""
;; Disable ALL themes
(mapcar 'disable-theme custom-enabled-themes)
(mapc 'disable-theme custom-enabled-themes)
(load-theme theme t)
(message "Loaded Theme: %s" (symbol-name theme)))

Expand Down

0 comments on commit f68558b

Please sign in to comment.