From: "Livin Stephen Sharma" <livin.stephen@gmail.com>
To: "emacs help - gnu" <help-gnu-emacs@gnu.org>
Subject: pair-mode: remove "(" from pair-mode-chars when in python-mode.
Date: Tue, 16 Dec 2008 19:40:46 +0530 [thread overview]
Message-ID: <53e1b0060812160610i4079f06emb32bc6cf87c862f6@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1018 bytes --]
Hi. How can I turn OFF the pair-mode char being inserted ONLY for "("
( but NOT for the other quote/braces/etc chars ) .
Details...
[[[ I don't know lisp. ]]]
... I'm trying to have pair-mode ON in python-mode, BUT not have ")"
auto-inserted when I type "(".
For other characters like
> [
>
{
>
<
>
'
>
"
>
etc, I DO want pair-mode to provide the matching pair.
I'd been at it (trial-and-error) for some time with no progress, so I tried
this to try to see ANY change in behaviour:
(make-variable-buffer-local 'pair-mode-chars)
>
(make-variable-buffer-local 'pair-mode-map)
>
> (set 'pair-mode-chars '(91))
>
(set 'pair-mode-map '(keymap (91 . skeleton-pair-insert-maybe)))
>
C-h v pair-mode-chars _does_ show this:
.. Its value is (91)
>
>
>
>
Local in buffer HelloBrian.py; global value is
>
>
(40 91 123 60 2219 96 34 39) ...
>
>
But even so, the matching character being inserted for ALL of these:
> <{("'`
>
I expected pair-mode be working only for "[" ?
I'd appreciate help on this.
[-- Attachment #2: Type: text/html, Size: 6977 bytes --]
next reply other threads:[~2008-12-16 14:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-16 14:10 Livin Stephen Sharma [this message]
2008-12-18 4:05 ` pair-mode: remove "(" from pair-mode-chars when in python-mode Kevin Rodgers
2008-12-18 10:00 ` Livin Stephen Sharma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53e1b0060812160610i4079f06emb32bc6cf87c862f6@mail.gmail.com \
--to=livin.stephen@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.