Questions tagged [pairing]
9 questions
19
votes
4 answers
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 continuously.
It would be nice if I could open up…

dgtized
- 4,169
- 20
- 41
18
votes
4 answers
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 additional pairs (which will be global) like this:
(push…

itsjeyd
- 14,586
- 3
- 58
- 87
9
votes
4 answers
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.

Ben
- 587
- 4
- 11
4
votes
1 answer
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 modules active, you'll likely get something like
if…

Trey
- 865
- 5
- 20
4
votes
1 answer
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 Emacs want to replace the closing character based on…

cinsk
- 161
- 2
3
votes
1 answer
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 motion within the file easier to follow for other…

Croad Langshan
- 3,192
- 14
- 42
1
vote
2 answers
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 my expression.
My problem is that this…

Giuseppe
- 455
- 2
- 14
1
vote
0 answers
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 type the double quote button, I get two backpacks and…

Savage Henry
- 111
- 3
0
votes
1 answer
Show line at opening brace when cursor is after the closing brace (Perl)
Something I like in Emacs is positioning the cursor after the closing brace/paren highlights the opening brace/paren.
Even better, like in Emacs-Lisp mode, the opening ( line is displayed in the minibuffer. This is convenient when that line is too…

Déjà vu
- 143
- 1
- 11