I'm facing a rather peculiar situation where my emacs settings seem to be lost every time that I open a .tex file. That's doesn't happen when I'm editing .el or .py files. Heres some examples with normal setting editing .el file

enter image description here

And here when I try to edit .tex file enter image description here

Any ideas what have gone wrong here?

Thanks! Original post posted here initially.

  • 2
    Please clarify what you expect to see when you open a tex file.
    – Dan
    Sep 30, 2019 at 11:18
  • Please what is your Emacs version? Also, is there any .tex related settings in your Emacs config? When did you notice this behavior? Since always or after updating some part of your Emacs config?
    – Nsukami _
    Sep 30, 2019 at 11:33
  • Please don't double-post here and Reddit.
    – mankoff
    Sep 30, 2019 at 11:54
  • @Dan I expect to see my line numbers and column indicator as configured in the first instance.
    – Kirk Walla
    Sep 30, 2019 at 12:15
  • 1
    @mankoff: Why is there a problem double-posting here and Reddit? I wouldn't encourage doing that for no reason, but the two sites have different purposes, and a similar question can get different feedback/help. (We do discourage posting both here and StackOverflow, however.)
    – Drew
    Oct 30, 2019 at 18:32

1 Answer 1


The answer to my problem was a comment from The_Blackbeard user at reddit. Have you taken into account that while emacs-lisp-mode derives from prog-mode, tex-mode derives from text-mode?

Once I had that information the rest was easy to fix.

The solution was to add a hook: (add-hook 'text-mode-hook '(fci-mode linum-mode))

  • Could you please elaborate on what you did to fix the problem for future readers?
    – Dan
    Oct 30, 2019 at 20:34
  • @Dan I updated the answer to reflect the necessary changes in order to get back line numbers and column indicator for tex files. Let me know if that helps?
    – Kirk Walla
    Oct 31, 2019 at 12:11
  • Thank you! That helps the next person who has a similar problem.
    – Dan
    Oct 31, 2019 at 12:15
  • Please also accept your answer as soon as the system allows you. Self-answers are encouraged.
    – Dan
    Nov 1, 2019 at 10:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.