Home » Questions » Computers [ Ask a new question ]

How do I make c-basic-offset stick in emacs?

How do I make c-basic-offset stick in emacs?

In switching coding styles, I need to go from a one tab width of 4 indentation to a two space indentation.

Asked by: Guest | Views: 179
Total answers/comments: 1
bert [Entry]

Possible alternate approach: use something like (set-variable 'c-file-style "gnu") to get the style you want. There is a pretty comprehensive list of built in styles, and you can define your own.