From eb93e4ed6e0478efd7c88fb5364c737b4bc37611 Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Sun, 30 Mar 2014 10:49:17 +0300 Subject: [PATCH] Re: [PATCH 2/2] emacs: add defcustom notmuch-init-file and load it if exists --- c0/3881877e393976228c99956f1daaac087fcd9b | 97 +++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 c0/3881877e393976228c99956f1daaac087fcd9b diff --git a/c0/3881877e393976228c99956f1daaac087fcd9b b/c0/3881877e393976228c99956f1daaac087fcd9b new file mode 100644 index 000000000..d0acf8068 --- /dev/null +++ b/c0/3881877e393976228c99956f1daaac087fcd9b @@ -0,0 +1,97 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 5C095431FBD + for ; Sun, 30 Mar 2014 00:49:32 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 0iTQ8+Zvgpod for ; + Sun, 30 Mar 2014 00:49:25 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by olra.theworths.org (Postfix) with ESMTP id 7E43D431FBC + for ; Sun, 30 Mar 2014 00:49:25 -0700 (PDT) +Received: from guru.guru-group.fi (localhost [IPv6:::1]) + by guru.guru-group.fi (Postfix) with ESMTP id CDCFE10005E; + Sun, 30 Mar 2014 10:49:17 +0300 (EEST) +From: Tomi Ollila +To: Mark Walters , notmuch@notmuchmail.org +Subject: Re: [PATCH 2/2] emacs: add defcustom notmuch-init-file and load it if + exists +In-Reply-To: <87a9c89mho.fsf@qmul.ac.uk> +References: <1396080479-19161-1-git-send-email-tomi.ollila@iki.fi> + <1396080479-19161-2-git-send-email-tomi.ollila@iki.fi> + <87a9c89mho.fsf@qmul.ac.uk> +User-Agent: Notmuch/0.17+171~g9a127b7 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sun, 30 Mar 2014 07:49:32 -0000 + +On Sun, Mar 30 2014, Mark Walters 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 -- 2.26.2