From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Filippo A. Salustri" Subject: Re: accessing org-lowest-priority in .emacs Date: Thu, 16 Jun 2011 12:25:28 -0400 Message-ID: References: <9626.1308231546@alphaville.dokosmarshall.org> <11737.1308240923@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0cd519f095e01804a5d6b7b3 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXFNs-0008RY-63 for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 12:25:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXFNq-00037a-45 for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 12:25:31 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:59949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXFNp-00037M-IY for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 12:25:29 -0400 Received: by wyf19 with SMTP id 19so1438543wyf.0 for ; Thu, 16 Jun 2011 09:25:28 -0700 (PDT) In-Reply-To: <11737.1308240923@alphaville.dokosmarshall.org> 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: nicholas.dokos@hp.com Cc: emacs-orgmode mailing list --000e0cd519f095e01804a5d6b7b3 Content-Type: text/plain; charset=ISO-8859-1 Right. I got it with the org-load-hook thing. Thanks, and apologies. Cheers. Fil On 16 June 2011 12:15, Nick Dokos wrote: > Filippo A. Salustri wrote: > > > I must be a moron. But I'm still having problems. > > Here's what's in my Preferences.el: > > > > .... > > (require 'org-install) > > (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) ; use it for > *.org. > > (add-hook 'org-mode-hook 'turn-on-font-lock) ; font lock on > always. > > > > (defvar fas/org-priority-scale > > (/ (* 1000 (- org-lowest-priority org-highest-priority)) 10)) > > .... > > > > When I start aquamacs, I get an error that org-lowest-priority is not > defined. > > > > 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 > -- \V/_ Filippo A. Salustri, Ph.D., P.Eng. Mechanical and Industrial Engineering Ryerson University 350 Victoria St, Toronto, ON M5B 2K3, Canada Tel: 416/979-5000 ext 7749 Fax: 416/979-5265 Email: salustri@ryerson.ca http://deseng.ryerson.ca/~fil/ --000e0cd519f095e01804a5d6b7b3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Right. =A0I got it with the org-load-hook thing. =A0Thanks, and apologies.<= div>Cheers.
Fil

On 16 June 2011= 12:15, Nick Dokos <nicholas.dokos@hp.com> wrote:
Filippo A. Salustri <<= a href=3D"mailto:salustri@ryerson.ca">salustri@ryerson.ca> wrote:
> I must be a moron. =A0But I'm still having= problems.
> Here's what's in my Preferences.el:
>
> ....
> (require 'org-install)
> (add-to-list 'auto-mode-alist '("\\.org\\'" . or= g-mode)) ; use it for *.org.
> (add-hook 'org-mode-hook 'turn-on-font-lock) =A0 =A0 =A0 =A0 = =A0 =A0 ; font lock on always.
>
> (defvar fas/org-priority-scale
> =A0 (/ (* 1000 (- org-lowest-priority org-highest-priority)) 10))
> ....
>
> When I start aquamacs, I get an error that org-lowest-priority is not = defined.
>

Nope, the fault is mine: org-install just sets up autoloads, so you h= ave to
require 'org, or set up the hook or do the eval-after-load as Jambunath= an
suggested.

Nick



--
\V/_
Filippo= A. Salustri, Ph.D., P.Eng.
Mechanical and Industrial Engineering
Rye= rson University
350 Victoria St, Toronto, ON
M5B 2K3, Canada
Tel: = 416/979-5000 ext 7749
Fax: 416/979-5265
Email: salustri@ryerson.ca
http://deseng.ryerson.ca/~fil/

--000e0cd519f095e01804a5d6b7b3--