Skip to main content

Questions tagged [pairing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

How to make escaped braces \{ and \} recognized as delimiters in latex-mode

In latex-mode in Emacs, I want to configure the syntax table such that only escaped braces \{ and \} are recognized as delimiters for expressions (sexp), while unescaped braces { and } are treated as ...
Gabriele's user avatar
  • 1,680
0 votes
1 answer
56 views

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 ...
Déjà vu's user avatar
  • 143
4 votes
1 answer
154 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 ...
Trey's user avatar
  • 915
4 votes
1 answer
262 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 ...
cinsk's user avatar
  • 161
1 vote
2 answers
269 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 ...
Giuseppe's user avatar
  • 455
9 votes
4 answers
3k 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.
Ben's user avatar
  • 617
1 vote
0 answers
161 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 ...
Savage Henry's user avatar
3 votes
1 answer
194 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 ...
Croad Langshan's user avatar
19 votes
4 answers
4k 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 ...
itsjeyd's user avatar
  • 14.8k
20 votes
5 answers
1k 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 ...
dgtized's user avatar
  • 4,219