From: Brady Trainor <algebrat@uw.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: porting crufty old init.el to package management
Date: Thu, 17 Apr 2014 23:57:37 -0700 [thread overview]
Message-ID: <liqid3$fvp$1@ger.gmane.org> (raw)
In-Reply-To: <861txr29h7.fsf@somewhere.org>
On 03/24/2014 03:10 AM, Fabrice Niessen wrote:
> That big file (in my case) can be:
>
> - Tangled ::
> Extract the source code blocks and generate *real working code*
> files for further compilation or execution, eventually outside of
> Emacs.
>
> Best regards,
> Fabrice
I wrote about this in the org-mode newsgroup, my first tangle, at
http://lists.gnu.org/archive/html/emacs-orgmode/2014-04/msg00698.html
It comes down to the following block for me. This init file is loaded
first, and in turn extracts and loads the embedded code from the .org
file (tangle).
____________
/
;;;; make sure org has been installed in an "emacs -q"
(require 'package)
(package-initialize)
(require 'org)
;; declare org indentation before we might manually open org to tangle
(setq org-startup-indented t)
(setq org-hide-block-startup t)
;; declare source indentation before we might manually open org to tangle
(setq org-src-fontify-natively t)
(setq org-edit-src-content-indentation 0)
;; default I/O in windows is undecided-dos/unix for de/encoding respectively
(prefer-coding-system 'utf-8-unix)
;; load org initialization files
(require 'ob-tangle)
(org-babel-load-file "/e/emacs-config/dot-emacs-test.org")
\____________
Brady
next prev parent reply other threads:[~2014-04-18 6:57 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.17994.1395617870.10748.help-gnu-emacs@gnu.org>
2014-03-24 10:10 ` porting crufty old init.el to package management Fabrice Niessen
2014-03-24 12:41 ` Guido Van Hoecke
[not found] ` <mailman.18031.1395664909.10748.help-gnu-emacs@gnu.org>
2014-03-24 14:13 ` Fabrice Niessen
2014-03-24 20:01 ` Guido Van Hoecke
[not found] ` <mailman.18082.1395691327.10748.help-gnu-emacs@gnu.org>
2014-03-24 20:05 ` Fabrice Niessen
2014-03-24 20:39 ` Guido Van Hoecke
[not found] ` <mailman.18086.1395693586.10748.help-gnu-emacs@gnu.org>
2014-03-24 22:38 ` Fabrice Niessen
2014-03-25 2:01 ` Stefan
2014-03-25 10:27 ` Guido Van Hoecke
2014-04-18 6:57 ` Brady Trainor [this message]
2014-03-26 3:42 ` Rusi
2014-03-26 11:22 ` Neal Becker
2014-03-26 17:55 ` jpkotta
2014-04-18 6:47 ` Brady Trainor
2014-03-24 22:30 Barry OReilly
2014-03-25 18:10 ` Zhen Sun
-- strict thread matches above, loose matches on Subject: below --
2014-03-23 23:37 Tom Roche
2014-03-24 3:01 ` Marcin Borkowski
2014-03-24 8:25 ` Thorsten Jolitz
2014-03-24 12:42 ` Alan Schmitt
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='liqid3$fvp$1@ger.gmane.org' \
--to=algebrat@uw.edu \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).