From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xavier Garrido Subject: Re: Exporting C++ code block to html Date: Sat, 28 Sep 2013 17:53:05 +0200 Message-ID: <5246FB61.80606@gmail.com> References: <5245D235.20709@gmail.com> <87ob7dw238.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPwpX-0003gY-DC for emacs-orgmode@gnu.org; Sat, 28 Sep 2013 11:53:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPwpP-0003p2-Sz for emacs-orgmode@gnu.org; Sat, 28 Sep 2013 11:53:15 -0400 Received: from mail-we0-x233.google.com ([2a00:1450:400c:c03::233]:46451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPwpP-0003ou-M1 for emacs-orgmode@gnu.org; Sat, 28 Sep 2013 11:53:07 -0400 Received: by mail-we0-f179.google.com with SMTP id x55so3836984wes.38 for ; Sat, 28 Sep 2013 08:53:06 -0700 (PDT) In-Reply-To: <87ob7dw238.fsf@gmail.com> 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: Eric Schulte Cc: stromeko@nexgo.de, "emacs-orgmode@gnu.org" Hi Eric, > > Setting this variable manually from the command line with the following > fixes this problem for me. > > emacs --batch --eval "(progn (add-to-list 'load-path \"~/src/org-mode/lisp\") (require 'org) (add-to-list 'load-path \"~/src/org-mode/contrib/lisp\")(require 'htmlize) (setq c-standard-font-lock-fontify-region-function 'font-lock-default-fontify-region))" --visit /tmp/cpp-test.org --funcall org-html-export-to-html > This works for me. I will use it until emacs trunk will become official release. Many thanks to both of you, Cheers, Xavier --