emacs-orgmode
[Top][All Lists]
Advanced

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

[O] proposal for improved integration of cdlatex


From: Federico Beffa
Subject: [O] proposal for improved integration of cdlatex
Date: Fri, 25 Jul 2014 18:31:26 +0200

Hi,

when you enable org-cdlatex and insert a LaTeX environment by pressing
M-{, the new environment is inserted ignoring indentation. To correct
for that it is not enough to press TAB as TAB is locally bound to
cdlatex-tab and moves the cursor to the next "interesting" part of the
environment.

For this reason I would like to propose an improved default binding to
the org-cdlatex-mode-map M-{ as follows:

-----------------------------------------------------------------------------------
(defun org-cdlatex-environment-indent (&optional environment item)
  (interactive)
  (cdlatex-environment environment item)
  (save-excursion
    (org-mark-element)
    (org-indent-region (point) (mark))))

(org-defkey org-cdlatex-mode-map "\C-c{"
        'org-cdlatex-environment-indent)
-----------------------------------------------------------------------------------

Regards,
Fede



reply via email to

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