I often use .c file and .txt file on the split emacs frame.
I wrote a code such as the following to init.el.
;; change text-mode indent (add-hook 'text-mode-hook (lambda () (setq indent-line-function 'tab-to-tab-stop) (electric-indent-mode -1) ))
This code is convenience for me to arrange text on .txt file.
However, c-mode on emacs also doesn't indent for c-code.
So, I must input tab-key by oneself for .c file.
How can I write a setting to solve this problem.
Please teach me.