|
@@ -2503,9 +2503,6 @@ higher priority settings."
|
|
|
(interactive "FWrite agenda to file: \nP")
|
|
|
(if (not (file-writable-p file))
|
|
|
(error "Cannot write agenda to file %s" file))
|
|
|
- (cond
|
|
|
- ((string-match "\\.html?\\'" file) (require 'htmlize))
|
|
|
- ((string-match "\\.ps\\'" file) (require 'ps-print)))
|
|
|
(org-let (if nosettings nil org-agenda-exporter-settings)
|
|
|
'(save-excursion
|
|
|
(save-window-excursion
|
|
@@ -2527,6 +2524,7 @@ higher priority settings."
|
|
|
((org-bound-and-true-p org-mobile-creating-agendas)
|
|
|
(org-mobile-write-agenda-for-mobile file))
|
|
|
((string-match "\\.html?\\'" file)
|
|
|
+ (require 'htmlize)
|
|
|
(set-buffer (htmlize-buffer (current-buffer)))
|
|
|
|
|
|
(when (and org-agenda-export-html-style
|