(mime-temp-directory): Use 'defcustom.
[elisp/flim.git] / mime-def.el
index 1812efc..779c984 100644 (file)
 ;;; Code:
 
 (defconst mime-spadework-module-version-string
-  "FLIM 1.1.1 - \"J\e-Dþjò\" ")\e-A
+  "FLIM 1.1.1 - \"J\e-Dþjò\"\e-A ")
+
+
+;;; @ variables
+;;;
 
 (require 'custom)
 
 (custom-handle-keyword 'default-mime-charset :group 'mime
                       'custom-variable)
 
-(defvar mime-temp-directory (or (getenv "MIME_TMP_DIR")
-                               (getenv "TM_TMP_DIR")
-                               (getenv "TMPDIR")
-                               (getenv "TMP")
-                               (getenv "TEMP")
-                               "/tmp/")
-  "*Directory for temporary files.")
+(defcustom mime-temp-directory (or (getenv "MIME_TMP_DIR")
+                                  (getenv "TM_TMP_DIR")
+                                  (getenv "TMPDIR")
+                                  (getenv "TMP")
+                                  (getenv "TEMP")
+                                  "/tmp/")
+  "*Directory for temporary files."
+  :group 'mime
+  :type 'directory)
 
 
+;;; @ required functions
+;;;
+
 (unless (fboundp 'butlast)
   (defun butlast (x &optional n)
     "Returns a copy of LIST with the last N elements removed."