RE: jde + hippie

James Ahlborn <[email protected]> Fri, 22 Sep 2006 11:00:14 -0400
Newsgroups gmane.emacs.jdee
Organization Health Market Science
Message-ID <[email protected]>
fyi, using the jde integration with hippie expansion is not merely a
matter of loading the posted elisp code.  the beauty of hippie-expand is
that it's behavior is driven off of a customizable list of expansion
functions called hippie-expand-try-functions-list.  as a user of
hippie-expand, you would want to customize this list to include the
expansion functions that meet your needs (all the "builtin" functions
are detailed in the documentation in hippie-exp.el).  you also might
want to setup this list based on the current major mode.  in regards to
the jde-hippie.el file i posted, you may want to add a hook to jde-mode
to customize the hippie try functions list to include some of the
methods i wrote.  if you read the top of the jde-hippie.el file, it
details the completion functions implemented in the file.  

a quick and dirty example usage is:

      (add-hook 'jde-mode-hook
                '(lambda ()

                   ;; add jde expansions to hippie expansion
                   (make-variable-buffer-local
                    'hippie-expand-try-functions-list)
                   (setq hippie-expand-try-functions-list
                         (append '(jdeh-try-expand-partially-fast
                                   jdeh-try-expand-fast)
                                 hippie-expand-try-functions-list
                                 '(jdeh-try-expand)))
                         )
                t)

you may want to further alter the default
hippie-expand-try-functions-list to meet your personal tastes.

-james

:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::

James Ahlborn
Software Developer
Health Market Science, Inc.

direct: (610) 994-5171
email:  [email protected]
Visit our new site: www.healthmarketscience.com

:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::