[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Using Eric Schulte's starter kit with org mode from source
From: |
Alan Schmitt |
Subject: |
Re: [O] Using Eric Schulte's starter kit with org mode from source |
Date: |
Wed, 24 Apr 2013 19:31:45 +0200 |
User-agent: |
mu4e 0.9.9.5; emacs 24.3.1 |
Eric Schulte writes:
> I don't understand why you can't put this code into your normal
> configuration file?
Because it may load too many things. I thought I could killed two birds
with one stone: get a faster async export, and git it working.
> If the error is thrown *before* your main configuration file is
> loaded, then my guess is that something is wrong with your Org-mode
> install. I'd read the worg pages on setting up a local Org-mode
> install to make sure everything there checks out.
Well, my startup file is fairly simple:
#+BEGIN_SRC emacs-lisp
;;; init.el --- Where all the magic begins
;;
;; Part of the Emacs Starter Kit
;;
;; This is the first thing to get loaded.
;;
;; load the starter kit from the `after-init-hook' so all packages are loaded
(add-hook 'after-init-hook
`(lambda ()
;; remember this directory
(setq starter-kit-dir
,(file-name-directory (or load-file-name (buffer-file-name))))
;; load up the starter kit
(add-to-list 'load-path "/Users/schmitta/.emacs.d/org/emacs/site-lisp/org")
(require 'org)
(org-babel-load-file (expand-file-name "starter-kit.org" starter-kit-dir))))
;;; init.el ends here
#+END_SRC
I've turned on the debugger, and there is something that I find a bit
strange. Here are the last few lines.
,----
|
load("/var/folders/68/fvntfrw92y50gkk_67rkhsfw0000gn/T/org-export-process77683E90"
nil t)
| command-line-1(("-l" "/Users/schmitta/.emacs.d/init.el" "-l"
"/var/folders/68/fvntfrw92y50gkk_67rkhsfw0000gn/T/org-export-process77683E90"))
| command-line()
| normal-top-level()
`----
Why is it loading the second file first? Shouldn't it load init.el
first? Is it because of the "after-init-hook"?
I also saved the temporary file and added a (print load-path) at the
beginning and it has not added the org path at the beginning, so for
some reason this code is not executed.
Thanks,
Alan
- [O] Using Eric Schulte's starter kit with org mode from source, Alan Schmitt, 2013/04/22
- Re: [O] Using Eric Schulte's starter kit with org mode from source, Eric Schulte, 2013/04/22
- Re: [O] Using Eric Schulte's starter kit with org mode from source, Alan Schmitt, 2013/04/22
- Re: [O] Using Eric Schulte's starter kit with org mode from source, Alan Schmitt, 2013/04/23
- Re: [O] Using Eric Schulte's starter kit with org mode from source, Eric Schulte, 2013/04/23
- Re: [O] Using Eric Schulte's starter kit with org mode from source, Alan Schmitt, 2013/04/24
- Re: [O] Using Eric Schulte's starter kit with org mode from source, Eric Schulte, 2013/04/24
- Re: [O] Using Eric Schulte's starter kit with org mode from source,
Alan Schmitt <=
- Re: [O] Using Eric Schulte's starter kit with org mode from source, Eric Schulte, 2013/04/24
- Re: [O] Using Eric Schulte's starter kit with org mode from source, Alan Schmitt, 2013/04/24
- Re: [O] Using Eric Schulte's starter kit with org mode from source, Eric Schulte, 2013/04/24
- Re: [O] Using Eric Schulte's starter kit with org mode from source, Thomas S. Dye, 2013/04/24
- Re: [O] Using Eric Schulte's starter kit with org mode from source, Alan Schmitt, 2013/04/25
- Re: [O] Using Eric Schulte's starter kit with org mode from source, Eric Schulte, 2013/04/25
- Re: [O] Using Eric Schulte's starter kit with org mode from source, Alan Schmitt, 2013/04/26