all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sharon Kimble <boudiccas@skimble.plus.com>
To: help-gnu-emacs@gnu.org
Subject: Re: config problems and bisecting an org-mode configuration file
Date: Tue, 06 Jun 2017 14:03:49 +0100	[thread overview]
Message-ID: <87a85ls1xm.fsf@skimble.plus.com> (raw)
In-Reply-To: <yw.864lvuuowp.fsf@zoho.com> (Emanuel Berg's message of "Mon, 05 Jun 2017 23:04:38 +0200")

[-- Attachment #1: Type: text/plain, Size: 1906 bytes --]

Emanuel Berg <moasen@zoho.com> writes:

> Sharon Kimble wrote:
>
>> And that's what I did, with very good support
>> form Drew giving me very explicit
>> instructions which helped resolve the problem
>> by showing me, eventually, where the problem
>> was. All kudos to Drew!
>
> This is his favorite method. I think he even
> got a name for it - "binary search", right?
>
> While there is no denying its advantages, with
> your situation, it seems you have a lot of
> configs and probably you should make the code
> more modular, so changes in one part is easy to
> pinpoint and have less or no impact on
> everything else.
>
> If you are using a module, say module M, you
> can create a file for configs for that module
> alone, say my-M.el, which has (require 'M) as
> the first line, and then load that file from
> .emacs.

My config is an org-mode file, with almost all code blocks in their own
module, plus I'm also timestamping each module so its also possible to
navigate using either Imenu or my date-stamps.

> Incidentally, this doesn't prevent binary
> search, tho - it won't be perfectly binary
> anymore :) - as you can then just comment out
> the line(s) in .emacs that loads the module(s).
>
> If you byte-compile the code, the compiler will
> help you determine what code interferes with
> what other, and you can remedy that by moving
> around stuff and adding more pairs of `require'
> and `provide'.

Every change to my config.org and the file is auto-compiled so that when
I restart emacs I don't have to wait for config.el to be generated.
Sometimes its a bit tiresome waiting for it to be generated but overall
it works very well.

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk  
Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.7

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2017-06-06 13:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-03 13:00 config problems and bisecting an org-mode configuration file Sharon Kimble
2017-06-03 15:46 ` Emanuel Berg
2017-06-04 19:28   ` Sharon Kimble
2017-06-05 16:21     ` Emanuel Berg
2017-06-05 18:32       ` Sharon Kimble
2017-06-05 21:04         ` Emanuel Berg
2017-06-06 13:03           ` Sharon Kimble [this message]
2017-06-07  0:22             ` Emanuel Berg
2017-06-07  1:07               ` Emanuel Berg
2017-06-07  1:26               ` Emanuel Berg
2017-06-07  1:43                 ` Emanuel Berg
2017-06-05 23:18     ` Robert Thorpe
2017-06-05 23:48       ` Emanuel Berg
2017-06-06 12:56       ` Sharon Kimble

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a85ls1xm.fsf@skimble.plus.com \
    --to=boudiccas@skimble.plus.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.