help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: porting crufty old init.el to package management


From: Brady Trainor
Subject: Re: porting crufty old init.el to package management
Date: Thu, 17 Apr 2014 23:57:37 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

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




reply via email to

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