unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Setting vairables in .emacs and the PMD Emacs plugin
@ 2004-10-20 16:49 Michelle
  2004-10-20 18:47 ` Drew Adams
  0 siblings, 1 reply; 2+ messages in thread
From: Michelle @ 2004-10-20 16:49 UTC (permalink / raw)


Hi there,

I'm trying to install the PMD plugin* for emacs (a toold for analyzing 
java source code). My sys admin already put the pmd.el and pmd.elc on 
emacs, but I need to set up my .emacs file. I don't have one in my home 
directory, so I tried making one like so:


--- Begin .emacs ------------------------------------
(require 'pmd)

(set-pmd-java "/usr/local/j2sdk1.4.1_02/bin/java")
(set-pmd-home "/usr/local/pmd")
(set-pmd-rulesets "/usr/local/pmd")--
--- End .emacs ------------------------------------

However, I keep getting the error, "Error in init file: Symbol's 
function definition is void". I've tried different formats, etc. but 
it's not helping. Can anyobdy offer any advice?

Yes, I've read (and am still reading) the manual ;-)

- Best regards,
   Michelle

* http://pmd.sourceforge.net/integrations.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Setting vairables in .emacs and the PMD Emacs plugin
  2004-10-20 16:49 Setting vairables in .emacs and the PMD Emacs plugin Michelle
@ 2004-10-20 18:47 ` Drew Adams
  0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2004-10-20 18:47 UTC (permalink / raw)


The error you are getting is saying that one or more of the symbols
set-pmd-java, set-pmd-home, and set-pmd-rulesets is not a defined function
(yet you are calling them as functions in your .emacs). They are probably
not defined because library pmd never got loaded.

You need to check that library pmd actually gets loaded. Look at variable
"features" to see if it contains pmd:

C-h v RET features

If not, then pmd never got loaded, probably because the directory pmd.el[c]
is not in your load-path (another Emacs variable).

You need to do this in your .emacs file, in that case, before the "require":

(add-to-list 'load-path "your-path-to-directory-with-pmd")

HTH,

  Drew

-----Original Message-----From: Michelle
(require 'pmd)

(set-pmd-java "/usr/local/j2sdk1.4.1_02/bin/java")
(set-pmd-home "/usr/local/pmd")
(set-pmd-rulesets "/usr/local/pmd")--

However, I keep getting the error, "Error in init file: Symbol's
function definition is void". I've tried different formats, etc. but
it's not helping. Can anyobdy offer any advice?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-20 18:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-20 16:49 Setting vairables in .emacs and the PMD Emacs plugin Michelle
2004-10-20 18:47 ` Drew Adams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).