After trying several hours to install jde, you all are my last chance.
(setq load-path (cons "/pathtolispsoftware/cc-mode-5.25" load-path))
(require 'cc-mode)
(setq load-path
(nconc
'(
"/pathtolispsoftware/jde-2.1.6beta23/lisp"
)
load-path))
(require 'jde)
If I load my .emacs-file and do "byte-compile-and-load" everything works
fine.
But if I kill emacs and restart, I get
"Error in init file: Symbol's value as variable is void: c-frame"
I am no lisp-expert. Maybe someone can help me.
Thanks in advance,
willi
--
+---------------------------------------------------------------+
| Alles kommt anders, als man denkt, dass es anders kommen wird.|
+---------------------------------------------------------------+
Here my .emacs:
=============================>
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; File name: ` ~/.emacs '
;;; ---------------------
;;;
;;; Note: This file switches between two Emacs versions:
;;; GNU-Emacs (19.34/20.X) and X-Emacs (19.14/20.X).
;;; Please to not mix both versions: GNU-Emacs and X-Emacs
;;; are incompatible. They use differnet binary code for
;;; compiled lisp files and they have different builtin
;;; lisp functions ... not only names of such functions
;;; are different!!!
;;;
;;; If you need your own personal ~/.emacs
;;; please make a copy of this file
;;; an placein your changes and/or extension.
;;;
;;; Copyright (c) 1997 S.u.S.E. Gmbh Fuerth, Germany. All rights
reserved.
;;;
;;; Author: Werner Fink, <[EMAIL PROTECTED]> 1997,98
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;############ cc-mode-5.25
(setq load-path (cons "/globals/u3/richert/software/emacs/cc-mode-5.25"
load-path))
(require 'cc-mode)
;;;
;;; Test of Emacs derivates
;;; -----------------------
(if (string-match "XEmacs\\|Lucid" emacs-version)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; XEmacs
;;; ------
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(progn
;;
;; If not exists create the XEmacs options file
;; --------------------------------------------
;;(if (and (not (file-readable-p "~/.xemacs-options"))
;; (fboundp 'save-options-menu-settings))
;; (save-options-menu-settings))
;;
;; Remember font and more settings
;; -------------------------------
;;(setq options-save-faces t)
;;
;; AUC-TeX
;; -------
(if (or (file-accessible-directory-p
"/usr/X11R6/lib/xemacs/site-lisp/auctex/")
(or (and (= emacs-major-version 19)
(>= emacs-minor-version 15))
(= emacs-major-version 20)))
(progn
(require 'tex-site)
(setq-default TeX-master nil)
; Users private libaries
; (setq TeX-macro-private '("~/lib/tex-lib/"))
; AUC-TeX-Macros
; (setq TeX-style-private "~/lib/xemacs/site-lisp/auctex/style/")
; Autom. Auc-TeX-Macros
; (setq TeX-auto-private "~/lib/xemacs/site-lisp/auctex/auto/")
))
;;
;; preload ispell
;; --------------
(if (file-executable-p "/usr/bin/ispell") (require 'ispell)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; GNU-Emacs
;;; ---------
;;; load ~/.gnu-emacs or, if not exists /etc/skel/.gnu-emacs
;;; For a description and the settings see /etc/skel/.gnu-emacs
;;; ... for your private ~/.gnu-emacs your are on your one.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(if (file-readable-p "~/.gnu-emacs")
(load "~/.gnu-emacs" nil t)
(if (file-readable-p "/etc/skel/.gnu-emacs")
(load "/etc/skel/.gnu-emacs" nil t)))
;;;
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; XEmacs load options
;;; -------------------
;;; If missing the next few lines they will be append automatically
;;; by xemacs. This will be done by `save-options-menu-settings'
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Custum Settings
;; ===============
;; Set custom-file to ~/.xemacs-custom for XEmacs to avoid overlap with
the
;; custom interface of GNU-Emacs. Nevertheless, in most cases GNU-Emacs
can
;; not handle unknown functions in ~/.emacs .. therefore
~/.xemacs-custom.
(cond
((string-match "XEmacs" emacs-version)
(setq custom-file "~/.xemacs-custom")
(load "~/.xemacs-custom" t t)))
;; Noch ein paar wichtige Tasten setzten
(global-set-key [home] 'beginning-of-line)
(global-set-key [end] 'end-of-line)
(global-set-key [?\C-2] 'set-mark-command)
(global-set-key [?\C--] 'advertised-undo)
(global-set-key [?\C-@] 'next-error)
;; ======================
;; End of Custum Settings
;; Options Menu Settings
;; =====================
;;(cond
;; ((and (string-match "XEmacs" emacs-version)
;; (boundp 'emacs-major-version)
;; (or (and
;; (= emacs-major-version 19)
;; (>= emacs-minor-version 14))
;; (= emacs-major-version 20))
;; (fboundp 'load-options-file))
;; (load-options-file "~/.xemacs-options")))
;;############# JDE ##############
;; Update the Emacs load-path to include the path to
;; the JDE. This code assumes that you have installed
;; the JDE in the specified subdirectory of your home
;; directory.
(setq load-path
(nconc
'(
"/globals/u3/richert/software/jde-2.1.6beta23/lisp"
)
load-path))
;;Sets the basic indentation for Java source files
;; to two spaces.
;;(defun my-jde-mode-hook ()
;; (imenu-add-to-menubar "Find")
;; (c-add-style
;; "my-java"
;; '("java"
;; (c-basic-offset . 2)
;; (c-hanging-braces-alist . ((substatement-open before after)))
;; (c-set-offset 'substatement-open 0)
;; ))
;; (c-set-style "my-java")
;; (c-set-offset 'substatement-open 0)
;; (setq tab-width 8 indent-tabs-mode nil)
;; (set 'c-basic-offset 2) ; set default indentation
amount
;; (c-set-offset 'case-label '+)
;; (hscroll-mode)
;; (setq c-auto-newline t)
;; (setq c-comment-continuation-stars "* ")
;;)
;;(add-hook 'jde-mode-hook 'my-jde-mode-hook)
;;(require 'jde-cflow)
(require 'jde)
;; Extra Fenster f�r compilation
;;(setq special-display-buffer-names
;; '("*compilation*"))
;; ============================
;; End of Options Menu Settings
(custom-set-variables
'(jde-compile-option-command-line-args "")
'(jde-compile-option-debug (quote ("all" (t t t))))
'(jde-run-option-verbose (quote (nil nil nil)))
'(jde-run-application-class "VKCLoaderServer")
'(jde-compileoption-directory "")
'(jde-compile-option-classpath (quote
(".:/globals/u3/richert/VKCLoader/swing1.0.3.jar:/usr/local/java/lib/classes.zip")))
'(jde-db-source-directories (quote ("/globals/u3/richert/VKCLoader/"
"/globals/u3/richert/info/java/src/")))
'(all-christian-calendar-holidays t t)
'(jde-jdk-doc-url "/globals/u3/richert/software/java/src/")
'(jde-run-option-classpath (quote
("/usr/local/java/lib/classes.zip:/globals/u3/richert/VKCLoader/swing1.0.3.jar:.")))
'(jde-run-working-directory "")
'(jde-db-read-app-args t)
'(visible-bell t)
'(delete-selection-mode nil nil (delsel))
'(earcon-auto-play t)
'(scroll-bar-mode (quote right))
'(set-background-color white))
(custom-set-faces)
(setq font-lock-maximum-decoration t)
(setq font-lock-support-mode 'lazy-lock-mode)
(put 'upcase-region 'disabled nil)
(put 'narrow-to-page 'disabled nil)
(put 'narrow-to-region 'disabled nil)
;--- Set the font lock mode
;--------------------------
(cond ((fboundp 'global-font-lock-mode)
;; Customize face attributes
(setq font-lock-face-attributes
;; Symbol-for-Face Foreground Background Bold Italic
Underline
'((font-lock-comment-face "Red")
(font-lock-string-face "Salmon1")
(font-lock-keyword-face "Light steel blue")
(font-lock-function-name-face "CadetBlue1")
(font-lock-variable-name-face "DeepSkyBlue2")
(font-lock-type-face "SeaGreen1")
(font-lock-reference-face "Purple")
))
;; Load the font-lock package.
(require 'font-lock)
;; Maximum colors
(setq font-lock-maximum-decoration t)
;; Turn on font-lock in all modes that support it
(global-font-lock-mode t)))
;--- Load the JDE
;(require 'java_templates)
;--- Define JDE debugger keys
;;(global-set-key [f5] (lambda () (interactive) (gud-next t)))
;;(global-set-key [f6] (lambda () (interactive) (gud-step t)))
;;(global-set-key [f8] (lambda () (interactive) (gud-cont t)))
(setq scroll-step 1)
(setq compilation-window-height 12)
(setq special-display-buffer-names '("*Main*"))
;--- Load the hscroll
;(require 'hscroll)
;--- Load parentheses highlight
(require 'paren)