doomemacs / doomemacs/core

latex font keybindings not activated

Open
#7,302 2 comments 2 reactions 0 assignees View on GitHub
is:bug needs-triage
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### I confirm that...

- [X] I have searched the [issue tracker](https://github.com/doomemacs/doomemacs/issues), [documentation](https://docs.doomemacs.org), [FAQ](https://docs.doomemacs.org/-/faq), [Discourse](https://discourse.doomemacs.org), and [Google](https://google.com), in case this issue has already been reported/resolved.

- [X] I have read "[How to Debug Issues](https://doomemacs.org/d/how2debug)", and will use it to provide as much information about this issue as possible.

- [X] The issue can be reproduced on the **latest** available commit of Doom.

- [X] The issue can be reproduced on a stable release of Emacs, such as 27 or 28. *(Doom does not support development builds like 29+ or any version ending in .50 or .9x)*

### Expected behavior

Hi,

In my `init.el`, I have configured:
```
(latex +lsp +cdlatex +latexmk +fold)
```
I've also trid with
```
(latex +lsp)
```

When I open a LaTeX file, and I hit `C-c C-f C-i` (AucTeX defines that as TeX-font + italics), I should get the current selected text to be surrounded by `\textit{`

### Current behavior

Instead what I get is an error in the minibuffer:
```
"C-c C-f TAB is undefined"
```
It's not a problem of C-i being interpreted as 'Tab' as I've tried with all the possible font type and I get the same error or non-auctex functions called.

What is very strange is that if I display the menu, I have a "LaTeX" entry with "Insert font" that shows "Italic C-c C-f C-i" and selecting it works perfectly!

How is it possible that the latex mode/auctex is loaded but not its keybindings?

PS: I remember I read a post in an issue somewhere that explained how to start "vanilla" doomemacs, (`emacs -Q -l ...`) but I can't find it anymore. It was very useful for debugging. It would be nice to put it in the main `README` in github , e.g. in a section "debugging".
Or was it for org-mode?

### Steps to reproduce

1. Open DoomEmacs
2. Open/Create a .tex buffer
3. type a word and select it
4. Hit C-c -Cf C-i

### System Information

https://gist.github.com/liar666/33a9160ca9fa803939a878c2b8fba42c#file-gistfile1-txt

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.