From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: accessing org-lowest-priority in .emacs Date: Thu, 16 Jun 2011 12:15:23 -0400 Message-ID: <11737.1308240923@alphaville.dokosmarshall.org> References: <9626.1308231546@alphaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXFEQ-0005gU-6n for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 12:15:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXFEO-0000pA-51 for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 12:15:45 -0400 Received: from vms173011pub.verizon.net ([206.46.173.11]:58274) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXFEN-0000oX-E7 for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 12:15:43 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173011.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LMW00L7755NUIA0@vms173011.mailsrvcs.net> for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 11:15:29 -0500 (CDT) In-reply-to: Message from "Filippo A. Salustri" of "Thu\, 16 Jun 2011 12\:05\:49 EDT." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Filippo A. Salustri" Cc: nicholas.dokos@hp.com, emacs-orgmode mailing list Filippo A. Salustri wrote: > I must be a moron. =C2=A0But I'm still having problems. > Here's what's in my Preferences.el: >=20 > .... > (require 'org-install) > (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) ; use it for *.o= rg. > (add-hook 'org-mode-hook 'turn-on-font-lock) =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 ; font lock on always. >=20 > (defvar fas/org-priority-scale > =C2=A0 (/ (* 1000 (- org-lowest-priority org-highest-priority)) 10)) > .... >=20 > When I start aquamacs, I get an error that org-lowest-priority is not def= ined. >=20 Nope, the fault is mine: org-install just sets up autoloads, so you have to require 'org, or set up the hook or do the eval-after-load as Jambunathan suggested. Nick