Re: JDE key bindings

Peter Su <[email protected]>
Newsgroups gmane.emacs.jdee
Message-ID <[email protected]>
hi Wolfgang:
   i just define:
   (custom-set-variables
   '(jde-key-bindings (quote (("[f1]" . jde-compile) ("[f2]" . jde-build) ("[f3]" . jde-run) ("[f4]" . jde-debug) ("[(control ?.)]" . jde-complete) )))
   )

   Is it your want?
   
   Peter su

From: Wolfgang Pausch <[email protected]>
Subject: JDE key bindings
Date: Thu, 30 Mar 2006 15:23:38 +0200

> 
> Hello,
> 
> I am just trying to teach jde some keybindings.  For example, I want to bind 
> something to C-c C-t C-c. Now I get an error message "Invalid prefix 
> character" because some function I don't even know was bound to C-c C-t 
> previously. 
> 
> In a lisp file, I would bind C-c C-t to nil before and everything would be ok.  
> But if I try to do so, the customization buffer of jde says that nil is an 
> invalid function. 
> 
> So question: How should I handle that situation? Is there a clean way to do 
> the customization of the key-bindings of jde outside that customization 
> buffer, directly in a file? If I try to evaluate code like shown below, I get 
> a quite long error message I don't  understand, although evaluating the 
> define-key lines alone works:
> 
> (add-hook 'jde-mode-hook
> 		  '(lambda ()
> 			 (define-key jde-mode-map [?\C-c ?\C-t] nil)
> 			 (define-key jde-mode-map [?\C-c ?\C-t ?\C-c] 'jde-gen-class-buffer)
> ))
> 
> Thanks for hints,
> 
> Wolfgang
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.