- (setq config-wl-package-done t)
- (setq load-path (cons (expand-file-name ".") load-path))
- (setq load-path (cons (expand-file-name WLDIR)
- (cons (expand-file-name ELMODIR) load-path)))
- (setq wl-icon-dir (expand-file-name ICONDIR))
-;;; load custom file if exists.
- (load "./WL-CFG" t nil t)
-;;; load-path
- (if wl-install-utils
- (setq load-path (cons (expand-file-name UTILSDIR) load-path)))
- (if wl-install-sasl
- (setq load-path (cons (expand-file-name SASLDIR) load-path)))
- (require 'install)
- (load "./WL-ELS")
- (condition-case ()
- (require 'mime-setup)
- (error (error "No MIME module was detected. Please install SEMI or tm.")))
- (if wl-use-semi
- (princ (concat "\nUse SEMI"
- (if wl-use-luna " with LUNA\n" " without LUNA\n")))
- (princ "\nUse tm.\n"))))
+ (setq config-wl-package-done t)
+ (setq load-path (cons (expand-file-name ".") load-path))
+ (setq load-path (cons (expand-file-name WLDIR)
+ (cons (expand-file-name ELMODIR) load-path)))
+ (setq wl-icon-dir (expand-file-name ICONDIR))
+ ;; load custom file if exists. `WL-CFG.el' override for committer.
+ (load "./WL-CFG" t nil nil)
+ ;; load-path
+ (if wl-install-utils
+ (setq load-path (cons (expand-file-name UTILSDIR) load-path)))
+ (require 'install)
+ (load "./WL-ELS" nil nil t)
+ (condition-case ()
+ (require 'mime-setup)
+ (error (error "No MIME module was detected. Please install SEMI or tm.")))
+ (princ (concat "\nMIME module is " (if wl-use-semi "SEMI" "tm-8") ".\n"))))
+
+(defun config-wl-pixmap-dir (&optional packagedir)
+ "Examine pixmap directory where icon files should go."
+ (let ((pixmap-dir (car command-line-args-left)))
+ (defvar PIXMAPDIR
+ (if (string= pixmap-dir "NONE")
+ (if packagedir
+ (expand-file-name "etc/wl/" packagedir)
+ (if (or (featurep 'xemacs)
+ (and (boundp 'emacs-major-version)
+ (>= emacs-major-version 21)))
+ (expand-file-name "wl/icons/" data-directory)))
+ pixmap-dir)))
+ (if PIXMAPDIR
+ (princ (format "PIXMAPDIR is %s\n" PIXMAPDIR)))
+ (setq command-line-args-left (cdr command-line-args-left)))