From: Thorsten Jolitz <tjolitz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Avoiding `(require 'ob-tangle)`?
Date: Tue, 25 Mar 2014 15:32:18 +0100 [thread overview]
Message-ID: <87ior273il.fsf@gmail.com> (raw)
In-Reply-To: CAHa53ux5HVXR2cPZaVqA-ypc+zd_bUehP+sW-ceoDhWYmUkC2A@mail.gmail.com
Tim Visher <tim.visher@gmail.com> writes:
> I've customized `org-babel-tangle-lang-exts` and whenever I start up
> emacs and hit an org file, I bork out.
>
> I've tried adding `(autoload 'org-babel-tangle-lang-exts "ob-tangle")`
> but it doesn't seem to have the effect of loading that variable, I
> assume because it's a defcustom and not a defun.
>
> Can I avoid requiring the whole thing?
I use idle-require for org and w3m in my init.el:
,------------------------------------------------------------------
| ;; ** Idle Require
|
| ;; load elisp libraries while Emacs is idle
| (if (require 'idle-require nil t)
| (progn
| (setq idle-require-symbols
| '(w3m org))
|
| ;; loaded
| (setq idle-require-idle-delay 5)
|
| ;; time in seconds between automatically loaded functions
| (setq idle-require-load-break 3)
|
| ;; load unloaded autoload functions when Emacs becomes idle
| (idle-require-mode 1)
|
| (defun try-idle-require (feature)
| (when (locate-library (symbol-name feature))
| (idle-require feature))))
|
| (defun try-idle-require (feature)
| (when (locate-library (symbol-name feature))
| (require feature))))
`------------------------------------------------------------------
Maybe thats useful in this case too?
--
cheers,
Thorsten
prev parent reply other threads:[~2014-03-25 14:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-25 13:33 Avoiding `(require 'ob-tangle)`? Tim Visher
2014-03-25 14:32 ` Thorsten Jolitz [this message]
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=87ior273il.fsf@gmail.com \
--to=tjolitz@gmail.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.