[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tumme directory

From: Mathias Dahl
Subject: Re: tumme directory
Date: Fri, 10 Feb 2006 11:21:20 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

Nick Roberts <address@hidden> writes:

> I don't know what the convention is either, but I would borrow from thumbs.el:
> (defcustom thumbs-thumbsdir "~/.emacs.d/thumbs"
>   "*Directory to store thumbnails."
>   :type 'directory
>   :group 'thumbs)
> (defun thumbs-thumbsdir ()
>   "Return the current thumbnails directory (from `thumbs-thumbsdir').
> Create the thumbnails directory if it does not exist."
>   (let ((thumbs-thumbsdir (file-name-as-directory
>                            (expand-file-name thumbs-thumbsdir))))
>     (unless (file-directory-p thumbs-thumbsdir)
>       (make-directory thumbs-thumbsdir t)
>       (message "Creating thumbnails directory"))
>     thumbs-thumbsdir))

That looks OK to me, as long as it is OK to "force" this .emacs.d
directory upon the user. Someone said "use .emacs.d if it exists" and
I interpreted that as one should always use it if it exists, else use
another one.

Again, I think the code abobe looks good.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]