Re: JDEE
Richard Martin <[email protected]>
| Newsgroups | gmane.emacs.xemacs.general |
|---|---|
| Organization | AePONA Ltd |
| Message-ID | <[email protected]> |
thanks for the info. my auto-mode-alist variable is set to below. There
are 2 entries for .java files. One opens jde-mode and the other opens
java-mode. Would this be the problem? If so how can i edit the variable?
(("\\.ear\\'" . archive-mode)
("\\.war\\'" . archive-mode)
("\\.jar\\'" . archive-mode)
(".tl[hbi]\\>" . c++-mode)
(".idl\\>" . c++-mode)
(".[ch]\\>" . c++-mode)
("\\.bnf$" . semantic-bnf-mode)
("\\.\\(?:xsl\\|fo\\)$" . xsl-mode)
("\\$CHANGE_LOG\\$\\.TXT" . change-log-mode)
("[Cc]hange.?[Ll]og?\\(?:.[0-9]+\\)?\\'" . change-log-mode)
("\\.bib\\'" . bibtex-mode)
("/app-defaults/" . xrdb-mode)
("\\.ad\\'" . xrdb-mode)
("[./\\]X\\(defaults\\|environment\\|resources\\|modmap\\)\\'" .
xrdb-mode)
("\\.xpm$" . xpm-mode)
("\\.[^/]*wm2?\\(?:rc\\)?\\'" . winmgr-mode)
("\\.mss\\'" . scribe-mode)
("\\.m\\(?:[mes]\\|an\\)\\'" . nroff-mode)
("\\.\\(xpm\\|XPM\\)\\'" . image-mode)
("\\.\\(xbm\\|XBM\\)\\'" . image-mode)
("\\.\\(tiff?\\|TIFF?\\)\\'" . image-mode)
("\\.\\(jpe?g\\|JPE?G\\)\\'" . image-mode)
("\\.\\(gif\\|GIF\\)\\'" . image-mode)
("\\.\\(png\\|PNG\\)\\'" . image-mode)
("\\.css$" . css-mode)
("access\\.conf$" . apache-mode)
("srm\\.conf$" . apache-mode)
("httpd\\.conf$" . apache-mode)
("\\.htaccess$" . apache-mode)
("\\.texi\\(?:nfo\\)?\\'" . texinfo-mode)
("\\.\\(?:sty\\|cls\\|bbl\\)\\'" . latex-mode)
("\\.[tT]e[xX]\\'" . tex-mode)
("\\.ltx\\'" . latex-mode)
("\\.grm\\'" . sml-yacc-mode)
("\\.cm\\'" . sml-cm-mode)
("\\.s\\(ml\\|ig\\)\\'" . sml-mode)
("\\.si\\(v\\|eve\\)\\'" . sieve-mode)
("\\.\\(?:[ckz]?sh\\|shar\\)\\'" . sh-mode)
("/\\.\\(?:[kz]shenv\\|xsession\\)\\'" . sh-mode)
("/\\.\\(?:[ckz]sh\\|bash\\|tcsh\\|es\\|xinit\\|startx\\)rc\\'" .
sh-mode)
("/\\.\\(?:bash_\\|z\\)?\\(profile\\|login\\|logout\\)\\'" . sh-mode)
("\\.oak\\'" . scheme-mode)
("\\.scm?\\(?:\\.[0-9]*\\)?\\'" . scheme-mode)
("\\.rb$" . ruby-mode)
("\\.py\\'" . python-mode)
("\\.xml\\'" . xml-mode)
("\\.\\(?:sgml?\\|dtd\\)\\'" . sgml-mode)
("\\.jsp\\'" . html-mode)
("\\.[sj]?html?\\'" . html-mode)
("\\.wrl\\'" . vrml-mode)
("\\.\\(?:tcl\\|exp\\)\\'" . tcl-mode)
("\\.sql$" . sql-mode)
("\\.spec$" . rpm-spec-mode)
("\\.prolog\\'" . prolog-mode)
("\\.c?ps\\'" . postscript-mode)
("\\.inc\\'" . php-mode)
("\\.phtml\\'" . php-mode)
("\\.php[s34]?\\'" . php-mode)
("\\.p\\(?:as\\)?\\'" . pascal-mode)
("\\.am\\'" . makefile-mode)
("\\(GNU\\)?[Mm]akefile\\(\\.in\\)*\\'" . makefile-mode)
("\\.ma?ke?\\'" . makefile-mode)
("\\.js$" . javascript-mode)
("\\.icn\\'" . icon-mode)
("\\.e\\'" . eiffel-mode)
("\\.\\(diffs?\\|patch\\|rej\\)\\'" . diff-mode)
("\\.awk\\'" . awk-mode)
("configure\\.\\(in\\|ac\\)\\'" . autoconf-mode)
("\\.m4\\'" . autoconf-mode)
("\\.[sS]\\'" . asm-mode)
("\\.\\([pP][Llm]\\|al\\)\\'" . perl-mode)
("\\.tar$" . tar-mode)
("\\.\\(?:arc\\|zip\\|lzh\\|zoo\\)\\'" . archive-mode)
("\\.ml[iylp]?$" . caml-mode)
("\\.java\\'" . jde-mode)
("\\.[Pp][Rr][Oo]\\'" . idlwave-mode)
("\\.l[gh]s$" . literate-haskell-mode)
("\\.\\(?:[gh]s\\|hi\\)$" . haskell-mode)
("\\.F\\(?:OR\\)?\\'" . fortran-mode)
("\\.f\\(?:or\\)?\\'" . fortran-mode)
("\\.[fF]90\\'" . f90-mode)
("\\.docbook$" . docbook-mode)
("\\.[chi]\\'" . c-mode)
("\\.\\(?:[CH]\\|cc\\|hh\\)\\'" . c++-mode)
("\\.[ch]\\(pp\\|xx\\|\\+\\+\\)\\'" . c++-mode)
("\\.java\\'" . java-mode)
("\\.idl\\'" . idl-mode)
("\\.y\\'" . c-mode)
("\\.lex\\'" . c-mode)
("\\.m\\'" . objc-mode)
("\\.ad[abs]\\'" . ada-mode)
("\\.te?xt\\'" . text-mode)
("\\.el\\'" . emacs-lisp-mode)
("\\.c?l\\(?:i?sp\\)?\\'" . lisp-mode)
("\\.article\\'" . text-mode)
("\\.letter\\'" . text-mode)
("\\`/tmp/Re" . text-mode)
("/Message[0-9]*\\'" . text-mode)
("^/tmp/fol/" . text-mode)
("[/\\][._].*emacs\\'" . emacs-lisp-mode)
("\\.ml\\'" . lisp-mode)
("\\.m?spec$" . sh-mode)
("\\.[123456789]\\'" . nroff-mode))
On Wed, 2004-01-14 at 15:39, [email protected] wrote:
> Richard Martin writes:
> > Hi,
> >
> > I have recently started to use xemacs JDEE. The problem is that every
> > time I open a *.java file xemacs opens it using cc-mode. Any ideas why
> > jde-mode isn't started?
>
> In XEmacs there is a variable called
>
> auto-mode-alist
>
> which controls the major mode that is loaded when a new file is
> visited. Below is the documentation. You have to change this variable
> so that the jde-mode is invoked when entering a *.java file.
>
> Documentation:
> Alist of filename patterns vs. corresponding major mode functions.
> Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION NON-NIL).
> (NON-NIL stands for anything that is not nil; the value does not matter.)
> Visiting a file whose name matches REGEXP specifies FUNCTION as the
> mode function to use. FUNCTION will be called, unless it is nil.
>
> If the element has the form (REGEXP FUNCTION NON-NIL), then after
> calling FUNCTION (if it's not nil), we delete the suffix that matched
> REGEXP and search the list again for another match.
>
> Regards,
> Karl Stroetmann
>
> >
> > Cheers
> > Richard
--
Richard Martin <[email protected]>
AePONA Ltd