From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: About publishing to html Date: Mon, 15 Feb 2010 10:52:20 +0100 Message-ID: <871vgm25d7.fsf@gmx.de> References: <3cbb63d01002131425s42f8f1aag3a0cb25722fde447@mail.gmail.com> <6E1F4661-20DD-4B3F-BAC2-AA7323BEC47A@gmail.com> <3cbb63d01002131453s6eb777ddyb7a5197b822ec10b@mail.gmail.com> <3cbb63d01002131458u788afc01l98f2959793249abe@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ngxcv-0002uX-FT for emacs-orgmode@gnu.org; Mon, 15 Feb 2010 04:52:25 -0500 Received: from [140.186.70.92] (port=48773 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ngxcu-0002tW-Is for emacs-orgmode@gnu.org; Mon, 15 Feb 2010 04:52:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ngxcu-0007aw-2Y for emacs-orgmode@gnu.org; Mon, 15 Feb 2010 04:52:24 -0500 Received: from mail.gmx.net ([213.165.64.20]:50905) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Ngxct-0007af-J3 for emacs-orgmode@gnu.org; Mon, 15 Feb 2010 04:52:24 -0500 In-Reply-To: <3cbb63d01002131458u788afc01l98f2959793249abe@mail.gmail.com> (Chao Lu's message of "Sat, 13 Feb 2010 17:58:40 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Chao Lu Cc: emacs-orgmode@gnu.org, Carsten Dominik Chao Lu writes: > Hey, > > Another question is, when I publish, I call org-publish, then org prompt me > several project, I have to choose, how could I configure to directly publish > to certain project? > > like: > (global-set-key (kbd " ") '*org-publish-directly to some project*) > > Best, Hi Chao Lu, mostly, you will want to export a project after changing a file, that is part of that project. C-c C-e P publishes the project, the current buffer is part of. You could as well write a function and bind it to a certain key: (defun chao-lu-publish-project-one() (interactive) (org-publish-project (assoc "projects-name" org-publish-project-alist))) Best wishes Sebastian