From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: CDLaTeX in Org document Date: Sun, 27 Oct 2013 09:12:09 +0100 Message-ID: <6785B119-D003-4D94-89BE-A8B04744F465@gmail.com> References: <20131026064758.GD874@smoon> Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaLSH-0001IG-LK for emacs-orgmode@gnu.org; Sun, 27 Oct 2013 04:12:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VaLS9-0006YD-8b for emacs-orgmode@gnu.org; Sun, 27 Oct 2013 04:12:13 -0400 Received: from mail-ee0-x235.google.com ([2a00:1450:4013:c00::235]:60642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaLS9-0006Y8-1V for emacs-orgmode@gnu.org; Sun, 27 Oct 2013 04:12:05 -0400 Received: by mail-ee0-f53.google.com with SMTP id e51so828766eek.12 for ; Sun, 27 Oct 2013 01:12:04 -0700 (PDT) In-Reply-To: <20131026064758.GD874@smoon> 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: Vladimir Lomov Cc: General discussions about Org-mode On 26.10.2013, at 08:47, Vladimir Lomov wrote: > Hello, > I'm using CDLaTeX with Org documents and with LaTeX ones (AUCTeX major > mode). I configured cdlatex to insert closing brackets and dollar ( > '$({[' ) and this works fine in AUCTeX major mode. Is it possible to use > similar feature in combination Org+cdlatex? Hi Vladimir, this is not supported currently. Overwriting the key bindings for ([{ and $ would cause other problems, because Org already does other stuff with self-insert characters (see the function org-self-insert-command) like speed commands and automatic adjustments in tables. So there is not simple fix, would require a more complex fix. - Carsten > > I tested with following settings > ------------------------ 8< ------------------------ > (add-to-list 'load-path "/usr/share/emacs/site-lisp/org") > (add-to-list 'load-path "/usr/share/emacs/site-lisp/auctex") > (setq cdlatex-simplify-sub-super-scripts nil) > (setq cdlatex-paired-parens "$([{") > (require 'org) > (add-hook 'org-mode-hook 'turn-on-org-cdlatex) > (setq org-use-sub-superscripts '{}) > ------------------------ 8< ------------------------ > > And it didn't work. > > --- > WBR, Vladimir Lomov > > -- > > There's no heavier burden than a great potential. >