[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to add a hook to JDE?
From: |
Paul Kinnucan |
Subject: |
Re: How to add a hook to JDE? |
Date: |
15 Jul 2003 10:39:16 -0400 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 |
john <jk-listas@bol.com.br> writes:
> Hi all,
>
> I am trying to add some hooks to JDE so that I can use jde-gen-*
> functions.
> After trying not to get init errors, I managed to tart emacs properly
> with this code:
>
> (eval-after-load "jde-mode"
> '((global-unset-key "\M-j")
> (global-set-key "\M-j \M-g c" 'jde-gen-class)
> (global-set-key "\M-j \M-g g" 'jde-gen-get-set)
> (global-set-key "\M-j \M-g t" 'jde-gen-try-catch-wrapper)
> ))
>
> but when on JDE there is never a way to actually run the functions with
> these bindings.
> Once I M-g there is a 'select font', etc...
> Any help?
>
Another way to do this is to use the JDEE customization variable provided
just for this purpose:
jde-key-bindings: Hide
INS DEL Key binding:
Key: [? ? ?]
Command: jde-run-menu-run-applet
.
.
.
INS DEL Key binding:
Key: [(meta j) (meta g) c]
Command: jde-gen-class
INS DEL Key binding:
Key: [(meta j) (meta g) g]
Command: jde-gen-get-set
INS DEL Key binding:
Key: [(meta j) (meta g) t]
Command: jde-gen-try-catch-wrapper
INS
Paul