Re: [PATCH 2/2] emacs: add defcustom notmuch-init-file and load it if exists

Subject: Re: [PATCH 2/2] emacs: add defcustom notmuch-init-file and load it if exists

Date: Sun, 30 Mar 2014 10:49:17 +0300

To: Mark Walters, notmuch@notmuchmail.org

Cc:

From: Tomi Ollila


On Sun, Mar 30 2014, Mark Walters <markwalters1009@gmail.com> wrote:

> This looks good, but I haven't tested as it doesn't fit with my current
> setup. (Just to clarify my current setup still works, but it would be a
> moderate amount of effort to actually exercise the new code)

tnx for looking :D

How do you currently do it? all in .emacs or done someting like in
http://notmuchmail.org/emacstips/#index6h2

> One question: is it possible to get emacs to save notmuch customizations
> to the notmuch init file rather than to .emacs? I think it isn't but
> thought it worth checking in case.

My .emacs is static, cloned from git repository everywhere. Last lines of
my .emacs are:

---8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<--
(load-file (concat compiled-directory "/dot-emacs.elc"))

(setq custom-file "~/local/custom.el")
(load custom-file)

; -- if there are lines below this, those has been added
; -- by some program -- and those needs to be moved elsewhere.
---8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<--

i.e. (at least) all customizations can be moved to other file.

I currently have a problem w/ customizations as those work well in
terminal with light background. Occasionally I read mail using my
Nokia N9 fingerterm which has black background (many things unreadable
there). I may end up ditching customization settings and do those with
setq's in these configuration files I have (that is what I've done in
all other emacs software)

>
> Best wishes
>
> Mark
>

Tomi

Thread: