[Top][All Lists]

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

[elpa] externals/bug-hunter 8d2d20e 63/95: Extended readme

From: Stefan Monnier
Subject: [elpa] externals/bug-hunter 8d2d20e 63/95: Extended readme
Date: Fri, 27 Nov 2020 22:06:57 -0500 (EST)

branch: externals/bug-hunter
commit 8d2d20e13ddf2a27253f90254f5cb62b953b5a89
Author: Artur Malabarba <bruce.connor.am@gmail.com>
Commit: Artur Malabarba <bruce.connor.am@gmail.com>

    Extended readme
 README.org | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/README.org b/README.org
index 6a9804e..8ee43f3 100644
--- a/README.org
+++ b/README.org
@@ -49,3 +49,27 @@ The Bug Hunter is available from 
 #+BEGIN_SRC text
 M-x package-install RET bug-hunter
+* init.org and other literate-style configs
+Some people (me included) like to organize their init files by
+writting it in ~org-mode~ instead of Emacs-Lisp. This usually involves
+adding something like this to ~init.el~,
+#+BEGIN_SRC emacs-lisp
+;;; Maybe some code up here ;;;
+(require 'org)
+(org-babel-tangle-file "~/.emacs.d/org-init.org"
+                       "~/.emacs.d/org-init.el")
+(load "~/.emacs.d/org-init.el")
+At first, this makes the Bug-Hunter essentially useless, for it will
+do the hunting in ~init.el~ instead of the much more extensive
+~org-init.el~. The name of the second file (~org-init.el~) will vary,
+but the point is the same.
+But fear not! There’s a simple solution:
+1. If you have any code above the call to ~org-babel-tangle-file~, copy that 
to the top of ~org-init.el~ (or whatever is the name of your tangled file). 
This includes that ~(require 'org)~ over there.
+2. Invoke ~M-x~ ~bug-hunter-file~ (instead of ~bug-hunter-init-file~). It will 
ask you which file to debug, and you need to point it to your tangled output 
file ~org-init.el~.

reply via email to

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