From: Andrew Laing <andrew@hermesdigital.net>
To: emacs-orgmode@gnu.org
Subject: "Invalid function" error with org-publish-project-alist
Date: Wed, 13 Sep 2006 21:49:22 -0400 [thread overview]
Message-ID: <20060914014922.GA8959@hermes.hermesdigital.net> (raw)
Hi list,
I am just learning org-mode and org-publish and have rarely felt so
exited about software. :)
Many props and thanks to Carsten, David, et al!
But I have been having a problem I can't figure out. I have org.el
v4.49, which includes org-publish.el v1.77. I load my org-config.el from
my .emacs.el which has org-publish configuration which I copied out of
the org-publish file's comments:
;; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
;; org-config.el
;;
(add-to-list 'load-path "~/Emacs/org-4.49")
(require 'org-install)
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)
(setq org-publish-project-alist
(list
'("org" :base-directory "~/notebook/org/"
:base-extension "org"
:publishing-directory "~/public_html/notebook/"
:publishing-function org-publish-org-to-html
:headline-levels 2
:with-section-numbers nil
:table-of-contents nil
:style "<link rel=stylesheet href=\"../css/style.css\" type=\"text/css\">"
:auto-preamble t
:auto-postamble nil)
("img" :base-directory "~/notebook/img/"
:base-extension "jpg\\|gif\\|png"
:publishing-directory "~/public_html/img/"
:publishing-function org-publish-attachment)
; ("css" :base-directory "~/notebook/css/"
; :base-extension "css"
; :publishing-directory "~/public_html/"
; :publishing-function org-publish-attachment)
; ("website" :components ("org" "img" "css"))
))
;; load cdlatex for frags
(autoload 'cdlatex-mode "cdlatex" "CDLaTeX Mode" t)
(autoload 'turn-on-cdlatex "cdlatex" "CDLaTeX Mode" nil)
(add-hook 'org-mode-hook 'turn-on-org-cdlatex)
;;
;; end org-config.el
;; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Loading this file returns the following error:
Invalid function: "img"
Any thoughts?
I can't seem to figure this one out. Any pointers would be very much
appreciated.
Cheers, Andrew
--
Andrew Laing <andrew@hermesdigital.net>
Adam met Eve and turned over a new leaf.
next reply other threads:[~2006-09-14 1:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-14 1:49 Andrew Laing [this message]
2006-09-14 13:33 ` "Invalid function" error with org-publish-project-alist David O'Toole
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060914014922.GA8959@hermes.hermesdigital.net \
--to=andrew@hermesdigital.net \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.