* Avoiding `(require 'ob-tangle)`?
@ 2014-03-25 13:33 Tim Visher
2014-03-25 14:32 ` Thorsten Jolitz
0 siblings, 1 reply; 2+ messages in thread
From: Tim Visher @ 2014-03-25 13:33 UTC (permalink / raw)
To: emacs
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?
Thanks in advance!
--
In Christ,
Timmy V.
http://blog.twonegatives.com/
http://five.sentenc.es/ -- Spend less time on mail
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Avoiding `(require 'ob-tangle)`?
2014-03-25 13:33 Avoiding `(require 'ob-tangle)`? Tim Visher
@ 2014-03-25 14:32 ` Thorsten Jolitz
0 siblings, 0 replies; 2+ messages in thread
From: Thorsten Jolitz @ 2014-03-25 14:32 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-25 14:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-25 13:33 Avoiding `(require 'ob-tangle)`? Tim Visher
2014-03-25 14:32 ` Thorsten Jolitz
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.