all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jim Perrin <jmperrin@buffalo.edu>
Subject: Java support in 21.3
Date: Mon, 10 Jan 2005 14:02:27 -0500	[thread overview]
Message-ID: <crujuv$n3h$1@prometheus.acsu.buffalo.edu> (raw)

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)

             reply	other threads:[~2005-01-10 19:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-10 19:02 Jim Perrin [this message]
2005-01-10 22:07 ` Java support in 21.3 James Davidson
2005-01-11 20:11 ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='crujuv$n3h$1@prometheus.acsu.buffalo.edu' \
    --to=jmperrin@buffalo.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.