From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: Avoiding `(require 'ob-tangle)`? Date: Tue, 25 Mar 2014 15:32:18 +0100 Message-ID: <87ior273il.fsf@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1395757903 23953 80.91.229.3 (25 Mar 2014 14:31:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2014 14:31:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 25 15:31:52 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WSSON-00016P-BR for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Mar 2014 15:31:51 +0100 Original-Received: from localhost ([::1]:42063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSSOM-0007MD-Ui for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Mar 2014 10:31:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSSO3-0007Ei-Kb for help-gnu-emacs@gnu.org; Tue, 25 Mar 2014 10:31:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSSNs-00019D-U0 for help-gnu-emacs@gnu.org; Tue, 25 Mar 2014 10:31:31 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:54679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSSNs-000193-Na for help-gnu-emacs@gnu.org; Tue, 25 Mar 2014 10:31:20 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WSSNo-0000V2-Po for help-gnu-emacs@gnu.org; Tue, 25 Mar 2014 15:31:16 +0100 Original-Received: from g231225128.adsl.alicedsl.de ([92.231.225.128]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Mar 2014 15:31:16 +0100 Original-Received: from tjolitz by g231225128.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Mar 2014 15:31:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 45 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: g231225128.adsl.alicedsl.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:cG3M1Q4/qapggWmQt/s8C7I6jIU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96747 Archived-At: Tim Visher 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