[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Java support in 21.3
From: |
Jim Perrin |
Subject: |
Java support in 21.3 |
Date: |
Mon, 10 Jan 2005 14:02:27 -0500 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) |
Please forgive me if I ask a question that has been answered previously
(even many times before)...
I am trying to upgrade to 21.3, but my .emacs file from 20.3 is not
working. When it loads, it gives me an error:
////////
An error has occurred while loading `c:/_emacs':
Symbol's value as variable is void: senator-minor-mode
To ensure normal operation, you should investigate the cause
of the error in your initialization file and remove it. Start
Emacs with the `--debug-init' option to view a complete error
backtrace
///////
The file works fine for my old version. I try to find a new version of
the .emacs file, but I am having a hard time understanding it. The root
of the problem is that Emacs has to look as close as possible on windows
as it already looks on the unix systems we have here. So, not
understanding what alot of the options mean, how do I change my current
.emacs file to work with 21.3? Below is a copy of my current file:
;; Options Menu Settings
;; =====================
(setq font-lock-maximum-decoration 3)
(global-font-lock-mode)
(global-set-key "\C-c\C-l" 'goto-line)
(global-set-key "\C-c\C-r" 'copy-region-as-kill)
(set-default-font "-*-Courier New-normal-r-*-*-16-120-96-96-c-*-iso8859-1")
(set-frame-height (selected-frame) 30)
(set-frame-height (selected-frame) 80)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;Make emacs recognize .cl files as common lisp and set mode
(setq auto-mode-alist
(append (list '("\\.h$" . c++-mode)
'("\\.sml$" . sml-mode)
'("\\.tex$" . latex-mode)
'("\\.html$" . html-helper-mode))
auto-mode-alist))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;parenthesis highlighting stuff
(defun stig-it nil
"load stig paren"
(interactive)
(load-library "stig-1.22"))
(load-library "stig-1.22")
(cond (window-system
(require 'stig-paren)
(global-set-key (quote [67108904])
(quote stig-paren-toggle-dingaling-mode)) ;;;
Ctrl-(
(global-set-key (quote [67108905])
(quote stig-paren-toggle-sexp-mode)) ;;;
Ctrl-)
(global-set-key (quote [4194352]) (quote stig-it)) ;;; ALT-0
(setq paren-dingaling-mode t)
(setq paren-sexp-mode nil)
(setq paren-ding-unmatched t))
(t (setq blink-matching-paren t)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(display-time)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;mode stuff
(setq default-major-mode 'text-mode)
(add-hook 'text-mode-hook 'turn-on-auto-fill)
(add-hook 'java-mode-hook 'my-java-hook)
(defun my-lisp-hook ()
;; customizations for Lisp mode
(cond (window-system (font-lock-mode t)))
(turn-on-auto-fill))
(defun my-java-hook ()
;; customizations for Java mode
; (cond (window-system (font-lock-mode t)))
(turn-on-auto-fill)
(setq comp-string-java nil))
(defun my-c-mode-common-hook ()
;; my customizations for all of c-mode, c++-mode, objc-mode, java-mode
(c-toggle-hungry-state t)
(c-set-offset 'substatement-open 0)
(c-set-offset 'access-label 0)
;;(c-set-offset 'topmost-intro '+)
(c-set-offset 'label 2)
(setq-default c-basic-offset 3)
(define-key c++-mode-map "\C-cc" 'c++-ub-compile-link)
(setq comp-string-c nil)
;; other customizations can go here
)
(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
(add-hook 'c-mode-common-hook 'turn-on-auto-fill)
(setq-default auto-fill-mode 1)
(put 'eval-expression 'disabled nil)
(cond (window-system
;(setq font-lock-background-mode 'dark)
(copy-face 'default 'font-lock-comment-face)
(set-face-foreground 'font-lock-comment-face "MediumBlue")
(copy-face 'bold 'font-lock-function-name-face)
;(set-face-foreground
'font-lock-function-name-face "LightSkyBlue")
(set-face-foreground 'font-lock-function-name-face "BlueViolet")
(copy-face 'default 'font-lock-string-face)
;(set-face-foreground 'font-lock-string-face
"DarkTurquoise")
(set-face-foreground 'font-lock-string-face "DarkGreen")
(copy-face 'bold 'font-lock-keyword-face)
(set-face-foreground 'font-lock-keyword-face "Salmon")
(set-background-color "White")
;(set-background-color "Black")
;(set-foreground-color "Thistle")
(set-foreground-color "Black")
;(set-foreground-color "White")
(set-cursor-color "Red")))
(setq-default column-number-mode t)
;(quietly-read-abbrev-file)
(setq load-path
(nconc
'(
"~/emacs-20.7/site-lisp/elib-1.0"
"~/emacs-20.7/site-lisp/semantic-1.3.2"
"~/emacs-20.7/site-lisp/speedbar-0.13a"
"~/emacs-20.7/site-lisp/eieio-0.15"
"~/emacs-20.7/site-lisp/jde-2.2.6/lisp"
)
load-path))
(set-frame-height (selected-frame) 38)
(set-frame-width (selected-frame) 80)
(require 'jde)
(custom-set-variables
'(jde-help-docsets (quote (("javadoc" "c:/jdk1.3/docs/api" nil))))
'(jde-run-applet-viewer "appletviewer")
'(jde-compile-option-debug (quote ("all" (t nil nil))))
'(jde-db-read-vm-args nil)
'(jde-run-applet-doc "")
'(jde-compile-option-sourcepath (quote ("./" "../" "../..")))
'(jde-compile-option-deprecation t)
'(jde-bug-jdk-directory "c:/jdk1.3/")
'(jde-quote-classpath nil)
'(jde-db-source-directories (quote ("." "..")))
'(jde-appletviewer-option-vm-args (quote ("-classpath"
"c:\\work\\115\\Classlibs")))
'(jde-jdk-doc-url "C:\\jdk1.3\\docs\\api\\overview-summary.html")
'(jde-db-debugger (quote ("JDEbug" "jdb" . "Executable")))
'(jde-gen-window-listener-template (quote ("(end-of-line) '& (P
\"Window name: \")" "\".addWindowListener(new WindowAdapter() \"" "(if
jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'n \"public void
windowClosing(WindowEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)"
"\"{\"'>'n" "'>'n \"System.exit(0);\" '>'n \"}\"" "'>'n \"});\" '>'n'>")))
'(jde-global-classpath (quote ("c:\\work\\115\\Classlibs" ".." ".")))
'(jde-enable-abbrev-mode t)
'(jde-bug-vm-includes-jpda-p t)
'(jde-run-classic-mode-vm nil))
(custom-set-faces)
- Java support in 21.3,
Jim Perrin <=