Re: [O] proposal to make C-c C-c not remove latex overlays

2014-08-01 Thread Bastien
Hi Charles, Charles Berry writes: > The docstring for `org-preview-latex-fragment' still says: > > "The images can be removed again with \\[org-ctrl-c-ctrl-c]." > > Maybe change that to "\\[org-preview-latex-fragment]"? Fixed, thanks. `org-preview-latex-fragment' is now named `org-toggle-latex

Re: [O] proposal to make C-c C-c not remove latex overlays

2014-07-31 Thread Charles Berry
Bastien gnu.org> writes: > > Hi Nick, > > Nick Dokos gmail.com> writes: > > > getting rid of just latex fragment undoing in > > org-ctrl-c-ctrl-c and toggling with C-c C-x C-l is probably the best > > solution. > > Agreed, this is the case now in master. The docstring for `org-preview-late

Re: [O] proposal to make C-c C-c not remove latex overlays

2014-07-28 Thread Bastien
Hi Nick, Nick Dokos writes: > getting rid of just latex fragment undoing in > org-ctrl-c-ctrl-c and toggling with C-c C-x C-l is probably the best > solution. Agreed, this is the case now in master. > It probably would be a good idea to make the handling of clock > overlays similar as well and

Re: [O] proposal to make C-c C-c not remove latex overlays

2014-07-28 Thread Sebastien Vauban
Aaron Ecay wrote: > I don’t have a comment on the substance of the proposal, but rather two > suggestions for workarounds. > > The first is to use the C-c C-v C-e binding to execute source blocks > rather than C-c C-c. Or even `e' if: - on the first character of the #+begin_src keyword, and - spe

Re: [O] proposal to make C-c C-c not remove latex overlays

2014-07-16 Thread John Kitchin
I favor the toggling behavior. There is an org-ctrl-c-ctrl-c-hook variable that can always have functions in it that keep the current behavior, but that can be removed if they are not desired. John Nick Dokos writes: > Andreas Leha writes: > >> Hi all, >> >> John Kitchin writes: >> >>> I am u

Re: [O] proposal to make C-c C-c not remove latex overlays

2014-07-16 Thread John Kitchin
DOH! thanks, that is exactly what I forgot to do. This works fine after you activate it! Thanks. Nick Dokos writes: > John Kitchin writes: > >> Aaron Ecay writes: >> >> Thanks for the advice idea, that is a nice one. It doesn't work for me >> like this though: >> >> #+BEGIN_SRC emacs-lisp >> (

Re: [O] proposal to make C-c C-c not remove latex overlays

2014-07-16 Thread John Kitchin
That is nice. For those of us using windows sometimes, you can kind of get super and hyper keys (see http://ergoemacs.org/emacs/emacs_hyper_super_keys.html). Although, without also using autohotkey, your super keys are limited because windows uses some of them (e.g.s-e launches explorer). H-e works

Re: [O] proposal to make C-c C-c not remove latex overlays

2014-07-16 Thread Nick Dokos
Andreas Leha writes: > Hi all, > > John Kitchin writes: > >> I am using org-mode files with equations and code blocks in lectures, >> and it is problematic that C-c C-c removes the equation overlays when >> running a code block. First, you have to press C-c C-c twice to run the >> block, since t

Re: [O] proposal to make C-c C-c not remove latex overlays

2014-07-16 Thread Andreas Leha
Hi all, John Kitchin writes: > I am using org-mode files with equations and code blocks in lectures, > and it is problematic that C-c C-c removes the equation overlays when > running a code block. First, you have to press C-c C-c twice to run the > block, since the first one gets rid of the equa

Re: [O] proposal to make C-c C-c not remove latex overlays

2014-07-15 Thread Grant Rettke
C-c C-v C-e might seem like a lot but it nice to have control and be sure when code is getting evaluated. That said, I do have a more obvious one using "super" which is indeed, super: (local-set-key (kbd "s-t") 'org-babel-tangle) (local-set-key (kbd "s-e") 'org-babel-execute-maybe) Grant Rettke |

Re: [O] proposal to make C-c C-c not remove latex overlays

2014-07-15 Thread Nick Dokos
John Kitchin writes: > Aaron Ecay writes: > > Thanks for the advice idea, that is a nice one. It doesn't work for me > like this though: > > #+BEGIN_SRC emacs-lisp > (defadvice org-ctrl-c-ctrl-c (around latex-overlays) > "ignore latex overlays in C-cC-c" > (let ((org-latex-fragment-image-ove

Re: [O] proposal to make C-c C-c not remove latex overlays

2014-07-15 Thread John Kitchin
Aaron Ecay writes: Thanks for the advice idea, that is a nice one. It doesn't work for me like this though: #+BEGIN_SRC emacs-lisp (defadvice org-ctrl-c-ctrl-c (around latex-overlays) "ignore latex overlays in C-cC-c" (let ((org-latex-fragment-image-overlays nil)) ad-do-it)) #+END_SRC m

Re: [O] proposal to make C-c C-c not remove latex overlays

2014-07-15 Thread John Kitchin
I actually love C-c C-c to run code blocks! Maybe I should just bind it to f5 or something, I am just so used to C-cC-c now! Grant Rettke writes: > On Mon, Jul 14, 2014 at 7:33 PM, Aaron Ecay wrote: >> The first is to use the C-c C-v C-e binding to execute source blocks >> rather than C-c C-c.

Re: [O] proposal to make C-c C-c not remove latex overlays

2014-07-14 Thread Grant Rettke
On Mon, Jul 14, 2014 at 7:33 PM, Aaron Ecay wrote: > The first is to use the C-c C-v C-e binding to execute source blocks > rather than C-c C-c. Like this? (setq org-babel-no-eval-on-ctrl-c-ctrl-c +1)

Re: [O] proposal to make C-c C-c not remove latex overlays

2014-07-14 Thread Aaron Ecay
Hi John, 2014ko uztailak 14an, John Kitchin-ek idatzi zuen: > > I am using org-mode files with equations and code blocks in lectures, > and it is problematic that C-c C-c removes the equation overlays when > running a code block. First, you have to press C-c C-c twice to run the > block, since th

[O] proposal to make C-c C-c not remove latex overlays

2014-07-14 Thread John Kitchin
I am using org-mode files with equations and code blocks in lectures, and it is problematic that C-c C-c removes the equation overlays when running a code block. First, you have to press C-c C-c twice to run the block, since the first one gets rid of the equations, but then you have run C-c C-x C-l