[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
- [O] proposal for improved integration of cdlatex,
Federico Beffa <=
- Re: [O] proposal for improved integration of cdlatex, Bastien, 2014/07/28
- Re: [O] proposal for improved integration of cdlatex, Federico Beffa, 2014/07/29
- Re: [O] proposal for improved integration of cdlatex, Bastien, 2014/07/29
- Re: [O] proposal for improved integration of cdlatex, Federico Beffa, 2014/07/29
- Re: [O] proposal for improved integration of cdlatex, Bastien, 2014/07/29
- Re: [O] proposal for improved integration of cdlatex, Federico Beffa, 2014/07/30
- Re: [O] proposal for improved integration of cdlatex, Nicolas Goaziou, 2014/07/30
- Re: [O] proposal for improved integration of cdlatex, Federico Beffa, 2014/07/31