change drafts dir? - ljupdate
change drafts dir?|
In the hope that this community is still alive...
How do I change where ljupdate puts draft files? When I run `M-X lj-compose` it creates a file in ~/Mail/drafts. I really, really do not want it to put them there. How do I change this?
Looking at the latest source from github, it looks like lj-compose.el hard-codes the auto-save directory for lj message drafts to "~/.ljupdate/drafts"; it doesn't look like this aspect of the mode is customizeable (and perhaps it should be?).
It looks like the major mode ljupdate is using to compose post headers is derived from message-mode, so it's possible that it's not fully overriding the folder assignments for the "parent" mode.
There doesn't seem to be anything in the ljupdate code that's directly setting "~/Mail/..." as a home directory for anything, but perhaps its getting this as a root folder from some other source (such as the settings for 'message-mode').
Which is to say, I guess, that there doesn't seem any customization variable in ljupdate that you can set, and even "changing a default string in the source and rebuilding" won't work. This might be a bug, so unless you're familiar enough with Emacs Lisp to fix it, you're at the mercy of the package maintainers (or someone else who does know Emacs Lisp enough to fix it).
Actually, I think I may have found it (though I'm not entirely sure how I got there, other than `M-x customize-group message' and following various links. Under 'Various message variables' there are message-directory and message-auto-save-directory. I'll try setting those and seeing what happens.
Yup, that did it. Thanks! I didn't know the compose mode was derived from message-mode; once you told me that I was able to find the relevant variables.
What you want to be careful of now is that you may have reset your directory for all modes that build on message-mode, which may (or may not) be what you want. This still feels like a bug to me: ljupdate drafts should (I think) belong in .ljupdate/drafts or whatever your "ljupate app support" directory is, and not lumped in with drafts/messages for other outgoing message modes. But still, as long you get a solution that works for you under the current circumstances that's best for you at the moment. 8/
I don't think I'm using any other modes at the moment that make use of that. At least, nothing else seems to touch ~/Mail/. But I'll keep an eye on it.