From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: How to get skills in elisp ? Date: Thu, 28 May 2009 08:55:23 -0700 Message-ID: <2EC05CEBE6564DA69EC14ACEAD8E16D3@us.oracle.com> References: <4A1E3896.7050906@peoplepc.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243526543 15953 80.91.229.12 (28 May 2009 16:02:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 May 2009 16:02:23 +0000 (UTC) To: "'Benjamin Badgley'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 28 18:02:20 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M9i3f-0003X2-Bh for geh-help-gnu-emacs@m.gmane.org; Thu, 28 May 2009 18:02:19 +0200 Original-Received: from localhost ([127.0.0.1]:34635 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9i3e-0007px-Jc for geh-help-gnu-emacs@m.gmane.org; Thu, 28 May 2009 12:02:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M9hxB-0005YO-GQ for help-gnu-emacs@gnu.org; Thu, 28 May 2009 11:55:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M9hx6-0005WY-PM for help-gnu-emacs@gnu.org; Thu, 28 May 2009 11:55:36 -0400 Original-Received: from [199.232.76.173] (port=44875 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9hx6-0005WO-EI for help-gnu-emacs@gnu.org; Thu, 28 May 2009 11:55:32 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:44730) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M9hx5-00014l-Ut for help-gnu-emacs@gnu.org; Thu, 28 May 2009 11:55:32 -0400 Original-Received: from acsinet12.oracle.com ([141.146.126.234]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M9hx3-00087A-Cu for help-gnu-emacs@gnu.org; Thu, 28 May 2009 11:55:29 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n4SFt3WM016913 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 28 May 2009 15:55:07 GMT Original-Received: from abhmt007.oracle.com (abhmt007.oracle.com [141.146.116.16]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n4SFuAXk006074; Thu, 28 May 2009 15:56:10 GMT Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 28 May 2009 08:55:18 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4A1E3896.7050906@peoplepc.com> Thread-Index: AcnfYxExsBjyTXSCSHqFtd2ia0+a1gASFJOQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: abhmt007.oracle.com [141.146.116.16] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A010209.4A1EB3E7.0325:SCFSTAT5015188,ss=1,fgs=0 X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64798 Archived-At: > Seems I've gotten a rather long group listing for a load > path. Any ideas on how to wrangle it back down to perhaps > two or so directories? Put the code you need in just those two or so directories. ;-) Just what is the problem you have with a long `load-path'? > Not sure where to go to set it for Emacs itself. My dot emacs > file evaluates out the long path listing. Dunno what you mean ("for Emacs itself"=?, "evaluates out"=?). Set your `load-path' in your init file (.emacs) or in some file that you load from your init file. > I want to finish hacking the dot emacs and then byte compile > it, set a new dot emacs up. > ;;; Included in the new dot emacs > (require 'emacs-source.elc) Yes, that's fine. But use just (require 'emacs-source). And you will need to put (provide 'emacs-source) somewhere in emacs-source.el. But don't bother to byte-compile your init file (.emacs). Keep it short and sweet. Let it load other stuff (e.g. emacs-source.elc) that loads other stuff. The other stuff can be byte-compiled. > However, that darn load path issue bugs me. I don't understand what the issue is. What's wrong with the path being long? > (add-to-list 'load-path > "/usr/share/emacs/site-lisp/emacs-goodies-el/color-theme.el") Just use /usr/share/emacs/site-lisp/emacs-goodies-el - no need to mention any individual files you want to load. Assuming the order of directories in your `load-path' is what you want, you should be able to just have directories there. `load-path' tells Emacs where to look. `load-library', `load', `load-file', and `require' tell Emacs which libraries to load. It will look for them by consulting `load-path'. HTH.