Setting Tab Size in Emacs

I use Emacs as an editor. I want to set the tab size to four spaces. In my .emacs file , I have the following:

(setq default-tab-width 4)

I also tried:

(set-default tab-width 4)

Anyway, when I open emacs and try to execute a tab, it inserts two spaces. Am I doing something wrong? It looks like he is not seeing my .emacs file .

Any suggestions would be great! Thank!

+4
source share
1 answer

tab-width , TAB : .

C, C++ Java ( , cc-mode), c-basic-offset 4. Cc. ; , .

+10

Source: https://habr.com/ru/post/1738514/


All Articles