(defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version))
(defmacro GNUEmacs (&rest x)
(list 'if (not running-xemacs) (cons 'progn x)))
(defmacro XEmacs (&rest x)
(list 'if running-xemacs (cons 'progn x)))
(defmacro Xlaunch (&rest x)
(list 'if (eq window-system 'x) (cons 'progn x)))
(add-to-list 'load-path "~/.emacs.d/site-lisp")
(setq default-frame-alist
'((wait-for-wm . nil)
(top . 0) (left . 0)
(width . 85) (height . 40)
(background-color . "gray15")
(foreground-color . "limegreen")
(cursor-color . "LightGoldenrod")
(mouse-color . "yellow")
))
(setq initial-frame-alist
'((top . 45) (left . 300)
)
)
(require 'color-theme)
(require 'pager)
(Xlaunch (require 'mic-paren) (paren-activate))
(require 'cparen)
(cparen-activate)
(show-paren-mode t)
(add-to-list 'load-path "~/.emacs.d/site-lisp/psgml")
(require 'psgml)
(autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t)
(autoload 'xml-mode "psgml" "Major mode to edit XML files." t)
(load-file "~/.emacs.d/site-lisp/sgml-adds.el")
(add-to-list 'load-path "~/.emacs.d/site-lisp/elib")
(add-to-list 'load-path "~/.emacs.d/site-lisp/eieio")
(add-to-list 'load-path "~/.emacs.d/site-lisp/semantic")
(add-to-list 'load-path "~/.emacs.d/site-lisp/speedbar")
(add-to-list 'load-path "~/.emacs.d/site-lisp/jde")
(require 'jde)
(add-to-list 'load-path "~/.emacs.d/site-lisp/ecb")
(require 'ecb)
(require 'htmlize)
(add-to-list 'load-path "~/.emacs.d/site-lisp/erc")
(require 'erc)
(require 'erc-stamp)
(require 'erc-match)
(load-file "~/.emacs.d/site-lisp/personal-funcs.el")
(my-color-theme)
(pc-selection-mode)
(pc-bindings-mode)
(global-set-key "\C-k" 'kill-whole-line)
(global-set-key "%" 'match-paren)
(global-set-key [delete] 'delete-char)
(global-set-key [backspace] 'delete-backward-char)
(global-set-key [(meta backspace)] 'undo)
(global-set-key [(control backspace)] 'backward-kill-word)
(global-set-key [(control delete)] 'kill-word)
(global-set-key [f1] 'man-follow)
(global-set-key [f4] 'speedbar-get-focus)
(global-set-key [f6] 'buffer-menu)
(global-set-key [M-return] 'expand-abbrev)
(global-set-key '[C-tab] 'bs-cycle-next)
(global-set-key [S-tab] 'bs-cycle-previous)
(global-set-key [?\C-c ?c] 'comment-region)
(global-set-key [next] 'pager-page-down)
(global-set-key [prior] 'pager-page-up)
(global-set-key '[M-up] 'pager-row-up)
(global-set-key '[M-down] 'pager-row-down)
(if (not (null (getenv "CYGWIN_ROOT")))
(progn
(setq-default
cygwin-root (getenv "CYGWIN_ROOT")
exec-path (cons (concat cygwin-root "/bin") exec-path)
process-coding-system-alist '(("bash" . undecided-unix))
shell-file-name "bash"
explicit-shell-file-name shell-file-name
)
(setenv "PATH" (concat cygwin-root "/bin;"
cygwin-root "/usr/local/bin;"
(getenv "PATH")))
(setenv "SHELL" shell-file-name)
(add-hook 'comint-output-filter-functions
'comint-strip-ctrl-m)
)
)
(set-language-environment 'Polish)
(set-input-method 'latin-2-prefix)
(column-number-mode t)
(line-number-mode t)
(fset 'yes-or-no-p 'y-or-n-p)
(defun my-jde-mode-hook ()
"Hook for running Java file..."
(message "Loading my-java-hook...")
(define-key c-mode-base-map "\C-ca" 'jde-javadoc-generate-javadoc-template)
(define-key c-mode-base-map "\C-m" 'newline-and-indent)
(c-set-offset 'substatement-open 0)
(c-set-offset 'statement-case-open 0)
(c-set-offset 'case-label '+)
(fset 'my-javadoc-code
[?< ?c ?o ?d ?e ?>?< ?/ ?c ?o ?d ?e ?> left left left left left left left])
(define-key c-mode-base-map "\C-cx" 'my-javadoc-code)
(abbrev-mode t)
(setq c-comment-continuation-stars "* "
tab-width 4
indent-tabs-mode nil
tempo-interactive t
c-basic-offset 4)
(message "my-jde-mode-hook function executed")
)
(add-hook 'jde-mode-hook 'my-jde-mode-hook)
(erc-timestamp-mode t)
(erc-match-mode t)
(setq erc-server "irc.eu.freenode.net"
erc-port 6667
erc-nick "artur"
erc-user-full-name user-full-name
erc-email-userid "artur"
erc-prompt-for-password nil
erc-fill-prefix " "
erc-auto-query t
erc-pals '("artur" "cameron" "james" "rob" "chris" "ian" "andrea"
"martin"
"CameronShorter" "jmacgill" "cholmes" "rob___"
"MartinD" "IanS" "aaime" "ianT")
erc-keywords '("vpf" "datasource" " core" " cts" "geoapi" " jts"
"opengis" "shapefile" "gml" " wms" " wfs" " sld"
"jdbc" "jalopy" " ogc" " rmi" " rpc" " xml"
" bbox" "featurecollection" "featuretype"
" feature" "geometry" " cvs" " uml" "TileCache"
"abstract" "interface")
erc-current-nick-highlight-type 'nick
erc-timestamp-only-if-changed-flag nil
erc-timestamp-format "%H:%M "
erc-insert-timestamp-function 'erc-insert-timestamp-left
erc-join-buffer (quote frame)
erc-kill-buffer-on-part t
erc-save-buffer-on-part t
erc-log-channels t
erc-log-channels-directory "~/.irclogs"
erc-log-insert-log-on-open t
erc-generate-log-file-name-function 'my-erc-generate-log-file-name-short
)
(custom-set-variables
'(auto-compression-mode t nil (jka-compr))
'(bs-cycle-configuration-name "all")
'(case-fold-search t)
'(color-theme-is-global t)
'(desktop-enable t nil (desktop))
'(ecb-layout-name "top3")
'(ecb-layout-window-sizes
(quote
(("top3" (0.4470588235294118 . 0.2) (0.5058823529411765 . 0.2))
("top1" (0.32941176470588235 . 0.2) (0.25882352941176473 . 0.2)
(0.3176470588235294 . 0.2)))))
'(ecb-tip-of-the-day nil)
'(ecb-tree-indent 1)
'(fill-column 80)
'(font-lock-mode-maximum-decoration t)
'(global-font-lock-mode t nil (font-lock))
'(indent-tabs-mode nil)
'(jde-ant-enable-find t)
'(jde-ant-home "$ANT_HOME")
'(jde-auto-parse-max-buffer-size 0)
'(jde-build-function (quote (jde-ant-build)))
'(jde-complete-function (quote jde-complete-minibuf))
'(kill-whole-line t)
'(next-line-add-newlines nil)
'(require-final-newline t)
'(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify)))
'(transient-mark-mode t)
'(uniquify-buffer-name-style nil nil (uniquify))
'(user-full-name "Artur Hefczyc")
'(user-mail-address "kobit@users.sourceforge.net")
'(version-control t))
(desktop-load-default)
(desktop-read)