Discussion:
How to make that tabs be tabs, blanks be blanks
(too old to reply)
Roderick
2020-10-03 08:32:17 UTC
Permalink
I type tabs, emacs makes blanks. I dont want that software takes
decisions for me that I did not ask for.

Long ago I had to struggle with emacs in order that it do not do
strange things and put:

(setq-default indent-tabs-mode t)
(electric-indent-mode -1)

I not even remember what all this thing means. I just want an editor,
a simple editor that inserts what I want and does not insert what I
do not want. I do not want to continously struggle with it.

Any hint? Or should I use an older version of emacs?

I use emacs since decades, but if I were to decide today for an editor,
I would not decide to use emacs.

Thanks
Rod.
Roderick
2020-10-03 08:42:33 UTC
Permalink
Again: I want that emacs do not take any decision on indentetaion.
Just put blank when I type blank, tab when I type tab.

Is that to much to expect? Why it is so difficult to get it?!

Rod.
Post by Roderick
I type tabs, emacs makes blanks. I dont want that software takes
decisions for me that I did not ask for.
Long ago I had to struggle with emacs in order that it do not do
(setq-default indent-tabs-mode t)
(electric-indent-mode -1)
I not even remember what all this thing means. I just want an editor,
a simple editor that inserts what I want and does not insert what I
do not want. I do not want to continously struggle with it.
Any hint? Or should I use an older version of emacs?
I use emacs since decades, but if I were to decide today for an editor,
I would not decide to use emacs.
Thanks
Rod.
Bernd Paffenholz
2020-10-03 10:42:39 UTC
Permalink
Post by Roderick
Again: I want that emacs do not take any decision on indentetaion.
Just put blank when I type blank, tab when I type tab.
Is that to much to expect? Why it is so difficult to get it?!
Emacs behavior depends on current mode. For plain tabs type 'C-q <TAB>'
an for plain spaces type 'C-q <SPC>>'. More information about
indentation is in the manual. Type 'C-h r i indentation <RET>'
Post by Roderick
Post by Roderick
Long ago I had to struggle with emacs in order that it do not do
(setq-default indent-tabs-mode t)
Allows tabs with indentation.
Post by Roderick
Post by Roderick
(electric-indent-mode -1)
Switches off reindentation
Post by Roderick
Post by Roderick
I use emacs since decades, but if I were to decide today for an editor,
I would not decide to use emacs.
I'm sad. Maybe it's better you try another one
Craig Finseth
2020-10-05 15:45:04 UTC
Permalink
Post by Roderick
Again: I want that emacs do not take any decision on indentetaion.
Just put blank when I type blank, tab when I type tab.
Is that to much to expect? Why it is so difficult to get it?!
Try:

M-X fundamental-mode <CR>

Ben Bacarisse
2020-10-03 11:20:16 UTC
Permalink
Post by Roderick
Again: I want that emacs do not take any decision on indentetaion.
Just put blank when I type blank, tab when I type tab.
Try

(global-set-key (kbd "C-i") 'self-insert-command)
(setq electric-indent-mode nil)

in your .emacs file.
Post by Roderick
Is that to much to expect? Why it is so difficult to get it?!
Tab, in particular, has been taken over by almost every Emacs mode. I
don't mind (I usually want what tab does) so I just use C-q <tab> on the
rare occasions when I want an actual inserted tab.
--
Ben.
Roderick
2020-10-04 14:49:12 UTC
Permalink
Thanks Bernd and Ben!

As far as I now understand, tab key does not mean print a tab,
for that I must use C-q tab. One can get used to that.

But is a space key a space key or there is the danger that it
writes something else? Fo I really need to type C-q sp? That
is different because one types much more spaces than tabs.

I just want to turn off any automatism.

R.
Bernd Paffenholz
2020-10-04 15:28:16 UTC
Permalink
Roderick <***@gmail.com> writes:

...
Post by Roderick
But is a space key a space key or there is the danger that it
writes something else? Fo I really need to type C-q sp? That
is different because one types much more spaces than tabs.
In most modes <SPC> is a space. You can type 'C-h k <SPC>' to see
the real meaning of <SPC>. If it is self-insert-command, a space
is inserted, when you type <SPC>. Then there is no need für 'C-q'.

...

Bernd
Loading...