unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Livin Stephen Sharma" <livin.stephen@gmail.com>
To: "emacs help - gnu" <help-gnu-emacs@gnu.org>
Subject: Re: pair-mode: remove "(" from pair-mode-chars when in python-mode.
Date: Thu, 18 Dec 2008 15:30:41 +0530	[thread overview]
Message-ID: <53e1b0060812180200j1f38d679j21bf2080720c1684@mail.gmail.com> (raw)
In-Reply-To: <53e1b0060812160610i4079f06emb32bc6cf87c862f6@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1474 bytes --]

==============================================================================
>
TOPIC: pair-mode: remove "(" from pair-mode-chars when in python-mode.
>
http://groups.google.com/group/gnu.emacs.help/t/951e81b16c0890af?hl=en
> <http://groups.google.com/group/gnu.emacs.help/t/951e81b16c0890af?hl=en>

==============================<http://groups.google.com/group/gnu.emacs.help/t/951e81b16c0890af?hl=en>
> ================================================
> <http://groups.google.com/group/gnu.emacs.help/t/951e81b16c0890af?hl=en>


> == 1 of 1 ==
>
Date: Wed, Dec 17 2008 8:05 pm
>
From: Kevin Rodgers
>

>
> Livin Stephen Sharma wrote:
>
> Hi.
>
>  How can I turn OFF the pair-mode char being inserted ONLY for "("
>
>  ( but NOT for the other quote/braces/etc chars ) .
>

> What is pair-mode?  It is not distributed with Emacs 22.3.
>

> --
>
Kevin Rodgers
>
Denver, Colorado, USA
>


Thanks for the response - I was losing hope :)

With an example:
 If I type in an opening-parenthesis,
 pair-mode will insert a matching closing-parenthesis immediately after my
input.

It works similarly for other characters like {,[,",',<, etc.
By providing a }.],",',>, etc character as the case may be.

 - makes for some minor (and very convenient) key-stroke savings. I'd just
like to turn it off for "("  when in python-mode.

I think this is where I got it:
http://www.loveshack.ukfsn.org/emacs/pair-mode.el

;;; pair-mode.el --- insertion of paired characters

--livin.stephen

[-- Attachment #2: Type: text/html, Size: 8181 bytes --]

      parent reply	other threads:[~2008-12-18 10:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-16 14:10 pair-mode: remove "(" from pair-mode-chars when in python-mode Livin Stephen Sharma
2008-12-18  4:05 ` Kevin Rodgers
2008-12-18 10:00 ` Livin Stephen Sharma [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53e1b0060812180200j1f38d679j21bf2080720c1684@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).