diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-01-26 15:18:38 -0200 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-01-26 15:18:38 -0200 |
commit | 131f48d0407f9721a467c84ea4aaecc4c3db62ba (patch) | |
tree | cee470d5629d09e55165456cfa721084637ad40d | |
parent | ed319f4c196866685ed75c3eca3edaead3173bfe (diff) |
Only use images if imagemagick is available.
-rw-r--r-- | sx-question-print.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sx-question-print.el b/sx-question-print.el index 3a2eedf..e21c998 100644 --- a/sx-question-print.el +++ b/sx-question-print.el @@ -157,8 +157,13 @@ replaced with the comment." (const :tag "More active first" sx-answer-more-active-p)) :group 'sx-question-mode) -(defcustom sx-question-mode-use-images t - "Non-nil if SX should download and display images." +(defcustom sx-question-mode-use-images + (eval-when-compile + (image-type-available-p 'imagemagick)) + "Non-nil if SX should download and display images. +By default, this is `t' if the `imagemagick' image type is +available (checked with `image-type-available-p'). If this image +type is not available, images won't work." :type 'boolean :group 'sx-question-mode) |