Re: [O] Trouble with autofill mode

2015-08-05 Thread Eric S Fraga
On Wednesday, 5 Aug 2015 at 10:17, Sebastien Vauban wrote: > Eric S Fraga writes: >> For LaTeX directives that I used to always put in #+latex: lines when >> I needed these within a paragraph, I now increasingly use >> @@latex:...@@. > > FYI, you could make it smelt to just @@l:...@@ with: > >

Re: [O] Trouble with autofill mode

2015-08-05 Thread Sebastien Vauban
Eric S Fraga writes: > For LaTeX directives that I used to always put in #+latex: lines when > I needed these within a paragraph, I now increasingly use > @@latex:...@@. FYI, you could make it smelt to just @@l:...@@ with: --8<---cut here---start->8--- (ad

Re: [O] Trouble with autofill mode

2015-08-04 Thread John Kitchin
I would have thought something like this would work: (defun nobreak-p () (interactive) (let ((result (if (and (looking-at " ") (save-excursion (re-search-forward "[^{]*}" (line-end-position) 'end)) (save-excursion

Re: [O] Trouble with autofill mode

2015-08-04 Thread Eric S Fraga
On Tuesday, 4 Aug 2015 at 09:52, Vikas Rawal wrote: [...] > Yes, I have been thinking about this too. visual-line-mode with each > sentence in a separate line would have many other advantages too. It > would perhaps be better for git-like version control of documents > written in orgmode. Isn’t

Re: [O] Trouble with autofill mode

2015-08-04 Thread John Kitchin
I turned off auto-fill everywhere many years ago (it messed up my code blocks in org-mode too much. I usually write them in org-mode, not the programming mode). I use (global-visual-line-mode 1) I cannot think of any issues that causes. I even have an unfill-paragraph to fix what my students do ;)

Re: [O] Trouble with autofill mode

2015-08-03 Thread Vikas Rawal
> > > On 2015-08-03 at 23:11, Vikas Rawal wrote: >> But I guess one has to have some compromise somewhere :) > > Another compromise would be to stop using autofill mode and use > visual-line-mode or something else. I recently made the switch after many > years of auto-fill. It takes a bit of

Re: [O] Trouble with autofill mode

2015-08-03 Thread Ken Mankoff
On 2015-08-03 at 23:11, Vikas Rawal wrote: > But I guess one has to have some compromise somewhere :) Another compromise would be to stop using autofill mode and use visual-line-mode or something else. I recently made the switch after many years of auto-fill. It takes a bit of getting used to,

Re: [O] Trouble with autofill mode

2015-08-03 Thread Vikas Rawal
>> >> >> I am sorry for not being clear. \index{} may have to be used inline in >> a para since the index has to pick up the right page where a term >> appears. So you want to put it as close as possible to the keywords. >> > > So put it as close as possible to the keywords: > > --8<--

Re: [O] Trouble with autofill mode

2015-08-03 Thread Nick Dokos
Vikas Rawal writes: >> >>> I am inserting LaTeX \index{} commands in an org document to create an >>> index. Almost everything works fine. But I am having trouble with >>> auto-fill-mode. It often puts a line break in the middle of an index >>> entry, and then it does not work. >>> >>> That is,

Re: [O] Trouble with autofill mode

2015-08-03 Thread Vikas Rawal
>> >> Hello, >> This StackExchange question might help you out: >> https://emacs.stackexchange.com/questions/12392/prevent-fill-paragraph-from-breaking-latex-citations-in-org-mode >> (Only if I got your question right...) > > Thanks very much. This should work. Let me try to modify it to my use c

Re: [O] Trouble with autofill mode

2015-08-02 Thread Vikas Rawal
> On 03-Aug-2015, at 8:37 am, Vicente Vera wrote: > > Hello, > This StackExchange question might help you out: > https://emacs.stackexchange.com/questions/12392/prevent-fill-paragraph-from-breaking-latex-citations-in-org-mode > (Only if I got your question right...) Thanks very much. This shoul

Re: [O] Trouble with autofill mode

2015-08-02 Thread Vicente Vera
Hello, This StackExchange question might help you out: https://emacs.stackexchange.com/questions/12392/prevent-fill-paragraph-from-breaking-latex-citations-in-org-mode (Only if I got your question right...)

Re: [O] Trouble with autofill mode

2015-08-02 Thread Vikas Rawal
> >> I am inserting LaTeX \index{} commands in an org document to create an >> index. Almost everything works fine. But I am having trouble with >> auto-fill-mode. It often puts a line break in the middle of an index >> entry, and then it does not work. >> >> That is, \index{my name} is sometimes

Re: [O] Trouble with autofill mode

2015-08-02 Thread Nicolas Goaziou
Hello, Vikas Rawal writes: > I am inserting LaTeX \index{} commands in an org document to create an > index. Almost everything works fine. But I am having trouble with > auto-fill-mode. It often puts a line break in the middle of an index > entry, and then it does not work. > > That is, \index{m

[O] Trouble with autofill mode

2015-08-02 Thread Vikas Rawal
I am inserting LaTeX \index{} commands in an org document to create an index. Almost everything works fine. But I am having trouble with auto-fill-mode. It often puts a line break in the middle of an index entry, and then it does not work. That is, \index{my name} is sometimes broken into \ind