You are viewing hashbangperl

Just Another Perl LiveJournal - emacs keybindings for Padre [entries|archive|friends|userinfo]
Aaron 'TEEJAY' Trevena

[ website | Aaron Trevena ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Links
[Links:| use perl | the daily wtf | we hates software | IT Conversations | Web Worker Daily | Joel on Software | guy kawasaki blog | Planet Perl | Maypole MVC Framework | The Perl Foundation ]

emacs keybindings for Padre [Nov. 17th, 2008|10:06 pm]
Previous Entry Add to Memories Share Next Entry
[Tags|, , , , ]

I've been meaning to play with Padre (An Editor/IDE written in Perl) as it has perl extensions and therefore I can do with it, what lisp gurus can do with emacs, without the use of mind-altering drugs or lambda calculus.

This evening, in the space of 90 minutes I was able to add some very basic emacs keybindings, only a handful, and some of them work, while some still have their original bindings, despite using "$self->CmdKeyClear(ord('w'),Wx::wxMOD_ALT());" which should unbind them. Bah.

Anyway, that's enough for now, but it has encouraged me to hack on it some more when I get the chance and to start integrating autodia based tools for generating and creating documentation and code at the click of a mouse.
LinkReply

Comments:
[User Picture]From: hashbangperl
2008-11-17 10:15 pm (UTC)

download the file

(Link)

you can download the file at http://www.aarontrevena.co.uk/opensource/Emacs.pm

You need to hack Padre itself to call setup_emacs_mode - look for vi_mode in v0.17 and change vi to emacs.