--- /dev/null
+(require 'smart-tabs-mode)
+(setq-default c-basic-offset 4
+ tab-width 4
+ indent-tabs-mode t)
+
+(setq c-default-style
+ '((java-mode . "ellemtel")
+ (c++-mode . "ellemtel")))
+
+(smart-tabs-insinuate 'c 'javascript 'c++)
--- /dev/null
+(message "Starting ERC IRC Client")
+(require 'erc)
+
+;; Colorfull nicknames
+(and
+ (require 'erc-highlight-nicknames)
+ (add-to-list 'erc-modules 'highlight-nicknames)
+ (erc-update-modules))
+
+(setq erc-autojoin-channels-alist
+; Uni Erlangen / IRCnet
+ '(("uni-erlangen.de"
+ "#faui2k9"
+ "#fau-kiosk"
+ "#fau"
+ "#vamos"
+ "#faui2k10"
+ "#faui2k6"
+ "#hallowelt")
+; OFTC
+ ("oftc.net"
+ "#debian-devel-changes"
+ "#debian-games"
+ "#debian-devel"
+ "#debian-release"
+ "#debian-buildd"
+ "#debian-ftp"
+ "#debian-newmaint"
+ "#debian-mentors"
+ "#debian.de"
+ "#debian-devel.de"
+ "#debian-muc"
+ "#debian-python"
+ "#debian-kbsd"
+ "#debian-mentors")
+; Freenode
+ ("freenode.net"
+ "#unknown-horizons"
+ "#fife"
+ "#lisp"
+ "#parpg"
+ "#freedesktop-games"
+ "#stk"
+ "#warzone2100-dev"
+ "#supertux"
+ "#openwrt"
+ "#glou")))
+
+(setq erc-modules
+ '(netsplit
+ fill
+ button
+ match
+ track
+ completion
+ readonly
+ networks
+ ring
+ autojoin
+ noncommands
+ irccontrols
+ move-to-prompt
+ stamp
+ menu
+ list
+ log
+ scrolltobottom
+ highlight-nicknames
+ keep-place))
+
+(erc-autojoin-mode 1)
+
+(setq erc-log-insert-log-on-open nil
+ erc-log-channels t
+ erc-log-channels-directory "~/.irclogs/"
+ erc-save-buffer-on-part t
+ erc-hide-timestamps nil
+ erc-fill-column 200
+ erc-user-full-name "Christoph Egger")
+
+;; Regularly save stuff
+(add-hook 'erc-insert-post-hook 'erc-save-buffer-in-logs)
+
--- /dev/null
+(message "General emacs setup")
+
+;; Indentation
+(setq tab-width 4)
+(setq-default tab-width 4)
+(setq-default indent-tabs-mode t)
+(setq mail-user-agent 'sendmail-user-agent)
+;; Insert stuff at cursor position not at mouse position
+;(setq mouse-yank-at-point t)
+
+;; Emacs autobrabel configuration goes into extra file
+
+;; More uniq, parsable buffer names
+(require 'uniquify)
+(setq uniquify-buffer-name-style 'post-forward)
+
+(require 'auto-complete)
+
+(require 'magit)
+
+;; Ido mode
+(require 'ido)
+(ido-mode t)
+
+;; Reindenting the whole buffer
+(defun iwb ()
+ "indent whole buffer"
+ (interactive)
+ (delete-trailing-whitespace)
+ (indent-region (point-min) (point-max) nil)
+ (untabify (point-min) (point-max)))
+
+(when (>= emacs-major-version 23)
+ (global-linum-mode 1)
+ (setq linum-format "%3d")
+ (modify-all-frames-parameters
+ '((font . "DejaVu Sans Mono-9"))))
+
+;; Django template mode
+(when (locate-library "django-html-mode")
+ (require 'django-html-mode)
+ (message "Django HTML Mode available"))
+
+;; Some file extensions autoloading
+(add-to-list 'auto-mode-alist '("\\.mdn$" . markdown-mode))
+(add-to-list 'auto-mode-alist '("\\.dtpl$" . django-html-mode))
+
+(setq browse-url-generic-program (executable-find "midori")
+ browse-url-browser-function 'browse-url-generic)
+
+(global-set-key (kbd "C-x d") 'dired)
+
+(set-input-method "german-postfix")
+
+(load-file "/home/christoph/.emacs.d/rudel/rudel-loaddefs.el")
+
+(winner-mode)
+
+(defun paste-x-selection ()
+ (interactive)
+ (let ((x-select-enable-primary t)
+ (x-select-enable-clipboard nil))
+ (yank)))
+(global-set-key (kbd "<XF86Paste>") 'paste-x-selection)
+(global-set-key (kbd "C-S-<insert>") 'paste-x-selection)
+
+
+(defun paste-x-selection ()
+ (interactive)
+ (let ((x-select-enable-primary t)
+ (x-select-enable-clipboard nil))
+ (yank)))
+(global-set-key (kbd "<XF86Paste>") 'paste-x-selection)
+(global-set-key (kbd "C-S-<insert>") 'paste-x-selection)
--- /dev/null
+(message "Bringin up Identi.ca")
+
+(if (locate-library "identica-mode")
+ (progn
+ (require 'identica-mode)
+ (setq identica-soft-wrap-status t)
+ (when (require 'netrc nil t)
+ (autoload 'identica-mode "identica-mode" nil t)
+ (let ((identica (netrc-machine (netrc-parse "~/.netrc") "identi.ca" t))) ; remove this `t' if you didn't specify a port
+ (setq identica-password (netrc-get identica "password") ; if it's last, avoid doing C-M-x in public spaces at least ;-)
+ identica-username (netrc-get identica "login")))))
+ (message "[W] no identica mode found!"))
\ No newline at end of file
--- /dev/null
+(require 'irony)
+(add-hook 'c++-mode-hook 'irony-mode)
+(add-hook 'c-mode-hook 'irony-mode)
+(add-hook 'objc-mode-hook 'irony-mode)
+
+;; replace the `completion-at-point' and `complete-symbol' bindings in
+;; irony-mode's buffers by irony-mode's function
+(defun my-irony-mode-hook ()
+ (define-key irony-mode-map [remap completion-at-point]
+ 'irony-completion-at-point-async)
+ (define-key irony-mode-map [remap complete-symbol]
+ 'irony-completion-at-point-async))
+(add-hook 'irony-mode-hook 'my-irony-mode-hook)
--- /dev/null
+(message "Bringing up Jabber client")
+(if (locate-library "jabber")
+ (progn
+ (require 'jabber-autoloads)
+ ;(require 'jabber)
+
+ (setq jabber-roster-line-format "%c %-25n %u %-8s %S"))
+ (message "[W] No jabber available"))
\ No newline at end of file
--- /dev/null
+
+(setq org-log-done 'time)
--- /dev/null
+(message "Bringing up pastebin support")
+
+(if (locate-library "pastebin")
+ (require 'pastebin)
+ (message "[W] No pastebin stuff available"))
+
+(if (locate-library "identica-mode")
+ (defun snippet-publish ()
+ "Takes the actual region, pastes it on paste.q0a.de an asks you for a identi.ca message"
+ (interactive)
+ (identica-update-status-from-minibuffer
+ (pastebin (region-beginning) (region-end) "f"))))
\ No newline at end of file
--- /dev/null
+(setq py-indent-offset tab-width)
--- /dev/null
+(message "Slime setup")
+;; Make Common Lisp implementation M-- M-x selectable
+
+(setq slime-lisp-implementations
+ '((sbcl ("sbcl"))
+ (abcl ("abcl"))))
+
+(add-hook 'slime-mode-hook
+ (lambda ()
+ (setq indent-tabs-mode nil)))
--- /dev/null
+(defun vamos-include (config-name)
+ (interactive "MConfig variable: ")
+ (insert-file "/proj/i4vamos/users/siccegge/patch-template")
+ (replace-string "FOOBAR" config-name)
+ (fill-paragraph))
+
+(global-set-key (kbd "C-c v") 'vamos-include)
+
+(load-file (expand-file-name "~/.emacs.d/org-view-link.el"))
\ No newline at end of file
--- /dev/null
+;; Show whitespaces by default
+(require 'show-wspace)
+(global-font-lock-mode 1)
--- /dev/null
+(require 'yasnippet)
+(yas/initialize)
+
+(setq yas/root-directory '("~/proj/snipets"))
+(mapc 'yas/load-directory yas/root-directory)
--- /dev/null
+(add-to-list 'load-path "~/.emacs.d/lisp/")
+
+(require 'cl)
+
+(setq emacs-private-config (expand-file-name "~/.emacs.d/config/"))
+
+(load-file "~/.emacs-site.el")
+
+(setq custom-file "~/.emacs.d/emacs-custom.el")
+(load custom-file)
+
+(dolist (file-to-load '("yas.el"
+ "python.el"
+ "c.el"
+ "irony.el"
+ "org.el"
+ "vamos.el"
+ "slime.el"
+ "whitespace.el"
+ "general.el"
+ "jabber.el"
+ "erc.el"
+ "identica.el"
+ "pastebin.el"))
+ (load-file (concat emacs-private-config file-to-load)))