emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] accessing org-lowest-priority in .emacs


From: Filippo A. Salustri
Subject: Re: [O] accessing org-lowest-priority in .emacs
Date: Thu, 16 Jun 2011 12:25:28 -0400

Right.  I got it with the org-load-hook thing.  Thanks, and apologies.
Cheers.
Fil

On 16 June 2011 12:15, Nick Dokos <address@hidden> wrote:
Filippo A. Salustri <address@hidden> 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: address@hidden
http://deseng.ryerson.ca/~fil/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]