- Subject: Re: [Jed-users-l] Problems with Perl files
- From: Daniel Carrera <dcarrera@xxxxxxxxx>
- Date: Tue, 4 Jan 2011 18:58:12 +0100
Works! Thanks.
On Tue, Jan 4, 2011 at 6:43 PM, Manfred Hanke
<Manfred.Hanke@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Hi Daniel,
>
> you can undefine Ctrl-C from the perl keymap in a perl_mode_hook (which
> is executed while activating perl mode), and (re)assign it to the
> command you prefer, by putting the following lines in your ~/.jedrc:
>
> define perl_mode_hook()
> {
> undefinekey("^C", "perl");
> local_setkey("yp_copy_region_as_kill", "^C"); % Copy (cua default)
> }
>
> I don't know whether there is a more elegant way to have jed reconsider
> the Global keymap after ^C has been undefined?
>
> Cheers,
>
> Manfred
>
>
>
> Daniel Carrera wrote:
>> Hello,
>>
>> This is strange. I have the CUA bindings, but when I edit *Perl*
>> files, the Ctrl-C stops working (it should copy text). I think I found
>> the offending part of perl.sl:
>>
>> $1 = "perl";
>> !if (keymap_p ($1)) make_keymap($1);
>> !if (is_defined("Win_Keys") ) { % conflict with windows region copy
>> definekey("perl_help", "^C?", $1);
>> definekey("perl_check", "^Cc", $1);
>> definekey("perl_exec", "^Ce", $1);
>> definekey("perl_info", "^Ci", $1);
>> definekey("perl_indent_region", "^C\t", $1);
>> definekey("perltidy", "^C^T", $1);
>> }
>>
>> Short of deleting this block from the system-wide perl.sl file, is
>> there anything I can do to recover my Ctrl-C key binding?
>>
>> Daniel.
> _______________________________________________
> Jed-users-l mailing list
> Jed-users-l@xxxxxxxx
> http://mailman.jtan.com/mailman/listinfo/jed-users-l
>
--
No trees were destroyed in the generation of this email. However, a
large number of electrons were severely inconvenienced.
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l
[2011 date index]
[2011 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]