| 
  
(setq debug-on-error t)
 (require 'gnuserv)
 (gnuserv-start)
 (setq gnuserv-frame (selected-frame))
(setq my-author-name (getenv "USER"))
(setq user-full-name (getenv "USER"))
(setq column-number-mode t)
(setq scroll-step 1)
(set-default 'truncate-lines t)
(require 'auto-show)
(auto-show-mode 1)
(setq-default auto-show-mode t)
(setq transient-mark-mode t)
(setq abbrev-mode t)
(quietly-read-abbrev-file)
(cond (window-system
      (set-face-background 'modeline "yellow")
      (set-face-foreground 'modeline "blue")
      ))
(fset 'yes-or-no-p 'y-or-n-p)
(require 'imenu)
(setq imenu-sort-function (quote imenu--sort-by-name))
(require 'font-lock)
(global-font-lock-mode t)
(setq font-lock-maximum-decoration
  '((c-mode    . 3) 
    (c++-mode  . 3)
    (java-mode . 3)
    (jde-mode  . 3)
    (t         . 3))
)
(require 'msb)
(autoload 'woman "woman"
             "Decode and browse a UN*X man page." t)
(autoload 'woman-find-file "woman"
             "Find, decode and browse a specific UN*X man-page file." t)
(autoload 'woman-dired-find-file "woman"
   "In dired, run the WoMan man-page browser on this file." t)
(add-hook 'dired-mode-hook
  (function
    (lambda ()
      (define-key dired-mode-map "W" 'woman-dired-find-file))))
(load "desktop")
(desktop-load-default)
(desktop-read)
(setq user-full-name "Ingo Koch")
(setq mail-default-reply-to "ingo.koch@ikoch.de")
(setq user-mail-address "Ingo Koch <ingo.koch@ikoch.de>")
(setq smtpmail-default-smtp-server "komserver.ikoch.de")
(setq smtpmail-local-domain nil)
(setq send-mail-function 'smtpmail-send-it)
(load-library "smtpmail")
(setenv "MAILHOST" "komserver.ikoch.de")
(load-library "vm")
(put 'rmail 'disabled t)
(define-key menu-bar-tools-menu [rmail] '("Read Mail" . vm))
(define-key-after menu-bar-tools-menu [smail] '("Send Mail" . vm-mail) 'rmail)
(defconst ingos-c-style
  '((c-tab-always-indent        . t)
    (c-basic-offset             . 2)
    (c-comment-only-line-offset . (0 . 0))
    (c-hanging-braces-alist     . ((defun-open          before after)
                                   (defun-close         before after)  
                                   (class-open          before after)  
                                   (class-close         before after)  
                                   (brace-list-open     before after)  
                                   (brace-list-close    before after)  
                                   (block-open          before after)  
                                   (block-close         before after)  
                                   (substatement-open   before after)  
                                   (statement-case-open before after)  
                                   )) 
    (c-offsets-alist            . ((statement-block-intro . +)
				   (knr-argdecl-intro     . +)
				   (substatement-open     . 0)
				   (inline-open           . 0)
				   (label                 . 0)
				   (statement-case-open   . +)
				   (case-label            . +)
				   (statement-cont        . +)
				   (arglist-intro         . c-lineup-arglist-intro-after-paren)
				   (arglist-close         . c-lineup-arglist)
				   ))
    (c-echo-syntactic-information-p . t)
    ) 
  "Ingos C Programming Style")
(defun ingos-c-mode-common-hook ()
  (c-add-style "PERSONAL" ingos-c-style t)
    (setq tab-width 2
		indent-tabs-mode nil)
    (c-toggle-auto-hungry-state 1)
  (define-key c-mode-map "\C-m" 'newline-and-indent)
  ) 
(add-hook 'c-mode-common-hook 'ingos-c-mode-common-hook)
(setq auto-mode-alist (cons '("\\.hpp$" . c++-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.yac$" . c++-mode) auto-mode-alist))
(setq auto-mode-alist
      (cons '("\\.py$" . python-mode) auto-mode-alist))
(setq interpreter-mode-alist
      (cons '("python" . python-mode)
            interpreter-mode-alist))
(autoload 'python-mode "python-mode" "Python editing mode." t)
(setq auto-mode-alist
      (append '(("\\.inc$"  . pascal-mode)
		("\\.pc$"   . pascal-mode)
		("\\.mde$"  . pascal-mode)
		("\\.rx1$"  . pascal-mode)
               )
	      auto-mode-alist))
(autoload 'perl-mode "cperl-mode" "better mode for editing Perl programs" t)
(add-hook 'find-file-hooks 'auto-insert)
(setq c-companion-file "Headder.c")
(show-paren-mode 1)
(setq compile-command "tmake ")
(setq compilation-read-command nil)
(require 'jde) 
(require 'jdok)
(require 'jmaker)
(setq max-specpdl-size 50000)
(setq max-lisp-eval-depth 50000)
(load "javahelp")
(global-set-key '[f1] 'javahelp-search)
(require 'javadecomp)
(global-set-key (read-kbd-macro "M-*") 'tags-return)
(defvar tags-stack nil)
(defun tags-stack-push (el)
  (setq tags-stack (cons el tags-stack)))
(defun tags-stack-pop ()
  (let ((el (car tags-stack)))    
    (setq tags-stack (cdr tags-stack))
    el))
(defadvice find-tag (before push-tag activate)  
  (or (ad-get-arg 1)
      (tags-stack-push (cons (current-buffer) (point)))))
(defadvice tags-search (before push-tag activate)
  (tags-stack-push (cons (current-buffer) (point))))
(defun tags-return ()
  (interactive) 
  (let* ((el (tags-stack-pop))  
         (buffer (car el))
         (point  (cdr el)))
    (if buffer (switch-to-buffer buffer))
    (if point (goto-char point))))
(require 'htmlize)
(autoload 'html-helper-mode "html-helper-mode" "Yay HTML" t)
(setq auto-mode-alist (cons '("\\.html$" . html-helper-mode) auto-mode-alist))
(setq gnus-select-method '(nntp "192.168.146.140"))
(add-hook 'dired-load-hook
   (function (lambda ()
      (load "dired-x")
                                    (setq dired-omit-files
      (concat dired-omit-files "\\|^RCS$\\|^CVS$\\|,v$\\|.*\\.obj$\\|rim$\\|bin$"))
      (setq  dired-omit-files-p t)
       )))
(add-hook 'dired-mode-hook
   (function (lambda ()
                  )))
(load "eshell-auto")
(load "pcmpl-auto")
(add-hook 'shell-mode-hook 'pcomplete-shell-setup)
(require 'bbdb)          
(bbdb-initialize)
(setq bbdb-use-pop-up nil
      bbdb-completion-display-record nil)
(load "tex-site")
(defun sum-column (start end arg)
  "Add up (presumed) numbers in the column defined by START and END.
Insert if ARG."
  (interactive "r\nP")
  (if (< end start) (let (tmp)
		      (setq tmp start)
		      (setq start end)
		      (setq end tmp)))
  (save-excursion
    (goto-char start)
    (let ((numcol (current-column))
	  (numend (save-excursion (goto-char end) (current-column)))
	  (sum 0))
      (while (< (point) end)
	(setq sum (+ sum (string-to-number
			  (buffer-substring (point)
					    (progn
					      (move-to-column numend t)
					      (point))))))
	(beginning-of-line 2)
	(move-to-column numcol t))
      (if arg (insert (number-to-string sum)))
      (message "Total: %.2f" sum))))
(cond (window-system
                            (define-key global-map [mouse-3] 'imenu)
              (define-key global-map [S-mouse-3] 'bookmark-menu-jump)
              (define-key global-map [C-down-mouse-3] 'bookmark-set)
       ))
(define-key global-map [f2]  'save-buffer)
(global-set-key [f3]         'kill-this-buffer)
(global-set-key [f4]         'find-file)
(global-set-key [f5]         'indent-region)
(global-set-key [S-f5]       'indent-rigidly)
(global-set-key [f6]         'increase-left-margin)
(global-set-key [S-f6]       'decrease-left-margin)
(global-set-key [f7]         'tags-return)
(global-set-key [f8]         'find-tag)
(global-set-key [S-f8]       'find-tag-other-window)
(global-set-key [f10]        'expand-abbrev)
(global-set-key [S-f10]      'write-abbrev-file)
(global-set-key [C-f10]      'read-abbrev-file)
(global-set-key [C-f10]      'ediff-revision)
(global-set-key [C-f11]      'desktop-save)
(global-set-key [C-f12]      'desktop-read)
(global-set-key [home]       'beginning-of-line)
(global-set-key [end]        'end-of-line)
(global-set-key [C-home]     'beginning-of-buffer)
(global-set-key [C-end]      'end-of-buffer)
(global-set-key [C-pageup]   'beginning-of-defun)
(global-set-key [C-pagedown] 'end-of-defun)
(global-set-key [f9 ?c]      'compile)
(global-set-key [S-f9]       'jde-compile)
(setq display-time-day-and-date t
      display-time-24hr-format t)
(display-time)
(setq custom-file "~/.mycustom")
(load custom-file)
(message ".emacs-gnu-all successfully loaded")
  
  
 |  
  |  
  |  
  
    
    
      | All content copyright by the contributors. | 
      Website maintained with
      Emacs ,
      wsmake and
      html-helper-mode | 
     
    
      | Emacs community logo by Daniel Lundin  | 
      Last updated on Sat Jan 22 14:57:05     2005
 by Ingo Koch | 
     
    
  |  
  |  
  |  
  |