Re: [O] How to get rid of first line indent?

2017-06-17 Thread Birnle
Sorry, Marcin,

Since your answer came in the other thread, I didn’t realize that three have 
answered my questions.

Thank you for your Manual and Lisp book tip. I’ll try to work through all of 
them. Another thousands of pages … 

"Of making many books there is no end, and much study is a weariness of the 
flesh."
--Ecclesiastes 12,12 ESV

Best,
Birnle 

> Am 13.6.2017 um 05:26 h schrieb Marcin Borkowski :
> 
> 
> On 2017-06-13, at 03:24, Birnle  wrote:
> 
>> Yes, John, you are surely right. From the beginning I use the Prelude
>> Emacs distribution (http://batsov.com/prelude/) that comes with
>> a bunch of preinstalled packages, so I don’t know yet what is original
>> Emacs/Org and what is optional. So much to learn, so little time.
>> 
>> Even for a text editing professional like me (publishing manager,
>> foreign language typesetter, book producer, copy editor) Emacs is like
>> an almost undiscovered parallel universe. I try boldly to go where
>> just a few men have gone before …
>> 
>> So thank you all, group, for being patient with an Emacs novice like me.
> 
> I started (almost two decades ago...) with a vanilla Emacs.  (There was
> nothing like "Prelude" back then, I guess.  Also, I had no internet
> access (at home) until, like, ten years later...)
> 
> Also, being a student, I had much free time then.  I read most of the
> Emacs manual.  That helped _a lot_.
> 
> BTW, Emacs absolutely rocks for copyediting (which I also happen to do),
> since you can define lots of little commands to ease the repetitive
> tasks.  And yes, you probably do need to learn Lisp to master Emacs.
> Start with "An Introduction to Programming in Emacs Lisp" by Robert
> J. Chassell (evaluate the form (info "eintr")).
> 
> Best,
> 
> --
> Marcin Borkowski
> 




Re: [O] Best book to get from novice to guru?

2017-06-17 Thread Birnle
Dear group,

To sum up the two (!) answers on these foundational 


# questions:

1. Which is the best book to get from Emacs/Org novice to guru?

2. Do I have to learn Lisp in order to master Emacs?


# Answers:

1. All of the mentioned books are good; read the manuals that come with Emacs 
and Org mode; "Mastering Emacs" is a good tips book, but no manual replacement.

2. Yes.


Thank you, Nikolay and Eric!

Best,
Birnle


> Am 13.6.2017 um 04:00 h schrieb Birnle :
> 
> Dear group,
> 
> Since I like to know my daily used software „by heart“ and I really don’t 
> want to ask too many silly questions, here’s another:
> 
> Which book (or books) do I have to read / work through to get from Emacs/Org 
> novice to (almost) guru? Which is/are the best in your opinion?
> 
> I’ve seen that there is
> 
> • the GNU Emacs Manual from Richard Stallman
> • The Org Mode 7 Reference Manual from Carsten Dominik and others
> • Mastering Emacs from Mickey Petersen (www.masteringemacs.org)
> Are there more? Which one is obligatory? And I know the sites
> 
> • www.emacswiki.org
> • orgmode.org
> and some others. All the good information is out there, but where is it 
> bundled in one (or two or three) book(s)?
> 
> And is it necessary to learn Lisp in order to master Emacs?
> 
> Best,
> Birnle



Re: [O] How to get rid of first line indent?

2017-06-13 Thread Birnle

Thank you, Marcin,

In fact, rectangle deletion doesn’t work since the text has over 700 
header lines that are not indented. But replace-regexp works.


Best,
Birnle

On 13 Jun 2017, at 5:21, Marcin Borkowski wrote:


On 2017-06-12, at 23:42, Birnle  wrote:

Thank you, John, for your answer. And no, it’s much too early for 
me

to be sure … But C-c n does actually indent each (first) line with
whitespace according to the number of asterisks in the heading.

The easiest and fastest solution is in fact deleting the leading
whitespace in every line by replace-regexp (replace ^ + by nothing).


The easiest and fastest solution is probably to use delete-rectangle 
(or

rectangle-mark-mode and then DEL).

Hth,

--
Marcin Borkowski




[O] Best book to get from novice to guru?

2017-06-12 Thread Birnle

Dear group,

Since I like to know my daily used software „by heart“ and I really 
don’t want to ask too many silly questions, here’s another:


Which book (or books) do I have to read / work through to get from 
Emacs/Org novice to (almost) guru? Which is/are the best in your 
opinion?


I’ve seen that there is

- the *GNU Emacs Manual* from Richard Stallman
- *The Org Mode 7 Reference Manual* from Carsten Dominik and others
- *Mastering Emacs* from Mickey Petersen (www.masteringemacs.org)

Are there more? Which one is obligatory? And I know the sites

- www.emacswiki.org
- orgmode.org

and some others. All the good information is out there, but where is it 
bundled in one (or two or three) book(s)?


And is it necessary to learn Lisp in order to master Emacs?

Best,
Birnle



Re: [O] How to get rid of first line indent?

2017-06-12 Thread Birnle
Yes, John, you are surely right. From the beginning I use the Prelude 
Emacs distribution (http://batsov.com/prelude/) that comes with a bunch 
of preinstalled packages, so I don’t know yet what is original 
Emacs/Org and what is optional. So much to learn, so little time.


Even for a text editing professional like me (publishing manager, 
foreign language typesetter, book producer, copy editor) Emacs is like 
an almost undiscovered parallel universe. I try boldly to go where just 
a few men have gone before …


So thank you all, group, for being patient with an Emacs novice like me.

Best,
Birnle

On 13 Jun 2017, at 1:13, John Kitchin wrote:

The C-c n binding is not defined in org-mode though as far as I know. 
That

suggests it is something outside of org-mode doing that.

John

---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu


On Mon, Jun 12, 2017 at 5:42 PM, Birnle  wrote:

Thank you, John, for your answer. And no, it’s much too early for 
me to be
sure … But C-c n does actually indent each (first) line with 
whitespace

according to the number of asterisks in the heading.

The easiest and fastest solution is in fact deleting the leading
whitespace in every line by replace-regexp (replace ^ + by nothing).


On 12 Jun 2017, at 18:57, John Kitchin wrote:


On Mon, Jun 12, 2017 at 11:49 AM, Birnle  wrote:


crux-cleanup-buffer-or-region



if that command is what does it, then it is happening outside of 
org-mode.
I guess it is a command from here: https://github.com/bbatsov/crux 
and

that it is in a hook function somewhere.

However, I am skeptical this command is what is doing it, because I 
also

see this happen occasionally. Are you sure it isn't because
of org-indent-mode?



John

---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803 <(412)%20268-7803>
@johnkitchin
http://kitchingroup.cheme.cmu.edu







Re: [O] How to get rid of first line indent?

2017-06-12 Thread Birnle
Yes, John, thank you! Sometimes it is so easy … if you know it. Great. 
Now I can export to Markdown and ODT directly.



On 12 Jun 2017, at 19:15, John Ankarström wrote:


Birnle  writes:

But I’ve read that it is possible to directly export to Markdown 
– that is the
format I usually work with. By exporting an Org mode file these 
unnecessary
spaces should be erased. I just have to figure out how to export to 
Markdown

from Org mode … Do you know a good online How-to?


Exporting to Markdown is built into Org-mode, accessible from the
C-c C-e export menu, but might not be enabled by default. To
enable it, customize `org-export-backends' (M-x customize RET
org-export-backends RET) and enable export to Markdown format
(`md').

Then you can press C-c C-e m m to export the Org document to a
.md file.

- John




Re: [O] How to get rid of first line indent?

2017-06-12 Thread Birnle
Thank you, John, for your answer. And no, it’s much too early for me 
to be sure … But C-c n does actually indent each (first) line with 
whitespace according to the number of asterisks in the heading.


The easiest and fastest solution is in fact deleting the leading 
whitespace in every line by replace-regexp (replace ^ + by nothing).




On 12 Jun 2017, at 18:57, John Kitchin wrote:


On Mon, Jun 12, 2017 at 11:49 AM, Birnle  wrote:


crux-cleanup-buffer-or-region



if that command is what does it, then it is happening outside of 
org-mode.
I guess it is a command from here: https://github.com/bbatsov/crux and 
that

it is in a hook function somewhere.

However, I am skeptical this command is what is doing it, because I 
also

see this happen occasionally. Are you sure it isn't because
of org-indent-mode?



John

---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu





Re: [O] How to get rid of first line indent?

2017-06-12 Thread Birnle
Yes, Eric, thank you again. This is what I knew, I can do it with regexp. I 
just thought there would be a simple command that could undo the "cleanup".

But I’ve read that it is possible to directly export to Markdown – that is the 
format I usually work with. By exporting an Org mode file these unnecessary 
spaces should be erased. I just have to figure out how to export to Markdown 
from Org mode … Do you know a good online How-to?



> Am 12.6.2017 um 18:01 h schrieb Eric S Fraga :
> 
> On Monday, 12 Jun 2017 at 15:49, Birnle wrote:
>> Is there no command to "unclean" the file again?
> 
> Difficulty is defining what "unclean" means.  For instance, if it is
> simply removing spaces at the start of a line, you could use
> 
> ,[ C-h f replace-regexp RET ]
> | replace-regexp is an interactive compiled Lisp function in
> | ‘replace.el’.
> | 
> | (replace-regexp REGEXP TO-STRING &optional DELIMITED START END
> | BACKWARD)
> | 
> | This function is for interactive use only;
> | [...]
> `
> 
> and replace "^ +" with "" (no quotes typed).  But this would apply to
> all lines.  If you can come up with a regexp for "unclean" lines then
> this could work.
> 
> HTH,
> eric
> 
> -- 
> : Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.7-531-g530113




Re: [O] How to get rid of first line indent?

2017-06-12 Thread Birnle
Yes, Eric, thank you, that is a good idea.

Now I've found that it is more a feature than a failure – org mode thinks of it 
as "cleaning up", and it does it automagically together with some commands. 
There is even a special command for it: C-c n (crux-cleanup-buffer-or-region).

But I cannot find the command to "unclean" the text so that I get again what 
I've typed – without the whitespace before each (first) line.

The reason that I want the text as I type it (without leading whitespace) in is 
that I want to copy/paste it into other apps, where it is wrong to have the 
whitespace at the beginning of the line, so I have to erase it by hand (or 
regexp search/replace).

Is there no command to "unclean" the file again?



On 11 Jun 2017, at 16:51, Eric S Fraga wrote:

> […] if you want to see what you did when the
> "suddenly" bit happens, try typing "C-h l" (Control and H key
> simultaneously and then lower case l) to see all the most recent
> keystrokes you have made and how they have been interpreted by
> emacs. This may point to an offending command you are invoking without
> being aware.



[O] How to get rid of first line indent?

2017-06-08 Thread Birnle

Dear group,

How do I get rid of the (first) line indent in org mode? I type some 
text (book length) in:


* Some heading text
Here is some text in one line in
visual mode that wraps nicely
and looks like it should.

** Another header
And some more text in just one
line in visual mode that wraps
as it should.

Then I do something – I don’t know what it is, but suddenly the 
first line of the same text is indented to the level of the header by 
white space:


* Some heading text
  Here is some text in one line
in visual mode that wraps nicely
and looks like it should.

** Another header
   And some more text in just
one line in visual mode that
wraps as it should.

I’ve searched for hours but couldn’t find a solution. As a totally 
new Emacs and org (and evil) mode user I don’t know what to do. Please 
help!


Best,
Birnle