jed-users mailing list

[2006 Date Index] [2006 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Paragraph reformatting functionality


First do Help/Describe Key Bindings.  You may find that
format_paragraph is already bound to a convenient key.

If not, put the following in your .jedrc file:

   setkey("format_paragraph", "^X;");


perfect, ok. I will use alt-semicolon. Are you sure there's no ^; I could use? Why doesnt any program support it? It would seem natural to me! arg! :)



- I want a format_paragraph that formats the paragraph according to the
indentation of the first line of the paragraph.  Currently, if I call m-x
format_pagraph in the second line of a paragraph, and that second line
starts from column 0 (where the first line starts on column 2, say) then
the entire paragraph is reformatted to start from column 0.

Put the cursor on the first line of the paragraph, then do
format_pagraph.

I know; this is what I currently do. I just don't like having to go from the middle of the paragraph where I'm furiously typing, to the beginningof the paragraph, and then try and find my place. If only format_paragraph were smart enough to identify the beginning of the paragraph: in my case, again, paragraphs are lines of text separated by blank lines.



- I want to make it so this new format_paragraph could format paragraphs
which start out with bullets or hyphens or numberings* to have a hanging
indent.  That is, I want this:

  - this is an item.  It goes on and on and on and on and on and on and on
and on and on and on and on.
  - this is another item. It, too goes on and on and on and on and on and
on and on and on and on.

to look like this:

  - this is an item.  It goes on and on and on and on and on and on and on
    and on and on and on and on.
  - this is another item. It, too goes on and on and on and on and on and
    on and on and on and on.


Indent the second line manually (space bar, backspace, whatever),
then with the cursor on the second line, do format_paragraph.

This is what I also currently do. It's such a pain. Again, in my mind, the condition for a hanging indent would be that the paragraph (which is a line of text preceded by a blank line) starts with a heading token such -/*/1./A./1)/2)/etc.


It works, but you need to put the cursor on the second or
following line of the hanging indent.

Yeah, it's a big pain when I already have a lot of stuff written down :)
But thanks!! Now I know that I'm in the same boat as others on this.


Thanks again,
- Roey

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2006 date index] [2006 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]