doomemacs / doomemacs/core

Cannot disable " autofix in latex mode

Open
#5,894 0 comments 0 reactions 0 assignees View on GitHub
is:bug re:smartparens
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

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.