Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pairing]

The tag has no usage guidance.

4
votes
1answer
61 views

sh-script-mode: get [[ … ]] pair expansion to automatically include whitespace?

Say you're coding a shell script and you want to write something like: if [[ "$out" =~ 'none' ]]; then return $err fi If you're just typing it out and have any of the various electric/pair ...
4
votes
1answer
59 views

context-aware inserting closing parentheses character

Most of auto pair packages provides that automatic insertion of closing parentheses (one of ), }, ].) if you type a opening parenthese. However, what I want is when I type a closing pair, I want ...
1
vote
2answers
135 views

AUCTeX: Disable newline when electric-pairing braces in math mode

I am using AUCTeX for editing in LaTeX, with LaTeX-electric-left-right-brace enabled, so that when I press for example C-c C-m \left in a math environment, the right brace is also automatically put in ...
7
votes
3answers
1k views

Don't pair quotes in electric-pair-mode

How can I get electric-pair-mode to not pair quotation marks (single or double)? I still want it to pair everything else (brackets, braces, etc.), just not quotes.
1
vote
0answers
92 views

Unbalanced quotes auto-inserted in AUCTeX mode

This seems like it should be a very basic question, but I cannot find an answer anywhere. When writing in AUCTeX mode the auto-inserted paired quotation marks are now unbalanced. That is, when I ...
3
votes
1answer
138 views

Making scrolling easier to follow when pair programming

When pair programming with emacs I've found it is hard for the person who is not typing ("driving") to follow scrolling. I've seen this both as the "passenger" and the "driver". How can I make ...
11
votes
4answers
2k views

How to define additional mode-specific pairs for electric-pair-mode

electric-pair-mode is a built-in mode for automatically inserting matching pairs of delimiters (parentheses, square brackets, etc.) based on the current major mode. I know that I can define ...
17
votes
4answers
742 views

Is there a mode for viewing keystroke lossage in realtime?

C-h l shows the lossage help buffer, which shows recent keystrokes. Pressing g appears to revert it, causing it to update. Unfortunately, enabling auto-revert-mode does not change it to update ...