Cannot disable " autofix in latex mode
- Dominant language
- Emacs Lisp
- Stars
- 22.7k
- Forks
- 3.1k
- Avg merge
- 10h 46m
- Merged PRs (30d)
- 4
Description
### What did you expect to happen?
I wanted to disable the smartparens latex feature whereby typing a double quote `"` results in inserting ` `` ''`. I found a related issue entry [here](https://github.com/hlissner/doom-emacs/issues/1688). Applied the recommended fix:
```
(map! :map tex-mode-map
:i "\"" 'self-insert-command)
(after! smartparens-latex
(let ((modes '(tex-mode plain-tex-mode latex-mode LaTeX-mode)))
(sp-with-modes modes
(sp-local-pair "``" "''" :actions :rem))))
```
### What actually happened?
The latex mode is completely broken and I keep having this error message:
```
Pair `` was never defined, please specify closing delimiter in instead of passing ‘nil’
```
### Describe your attempts to resolve the issue
_No response_
### Steps to reproduce
Add the snippet below to doom's config and open a latex file.
```
(map! :map tex-mode-map
:i "\"" 'self-insert-command)
(after! smartparens-latex
(let ((modes '(tex-mode plain-tex-mode latex-mode LaTeX-mode)))
(sp-with-modes modes
(sp-local-pair "``" "''" :actions :rem))))
```
### System Information
https://pastebin.com/refjLW9x
Contributor guide
Assessment
This issue has not been assessed yet.