I use alot the M-o i shortcut (which, according to the key description, runs the command facemenu-set-italic) to emphasize parts of my text. Over the years I have changed several computers (hence OSes and distributions) and I notice that depending on the overall configuration, this command wraps the selected text (... below) either in


or in

{\em ...}

For several (more or less technical or trivial) reasons, I prefer \emph{...} to {\em ...}, but in my current configuration I get the latter. I tried to find where this is configured, but without any success. Any ideas?

  • Not an answer to your question, but if you use LaTeX a lot, I'd suggest using AUCTeX. – andrej Oct 21 '18 at 11:09
  • @andrej: Thanks for the suggestion. To be honest, I am not 100% sure, but I do believe I am already using it (for instance, I do have the RefTex mode). – Simon Bliudze Oct 21 '18 at 21:28

You have to customize the variable tex-latex-face-alist adding this code to .emacs

(with-eval-after-load "tex-mode"
  (setq tex-latex-face-alist `((italic . "\\emph{ ")

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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