;; -*- self-compile-mode: t; foldingo-close: t -*- (setq custom-file "~/.emacs.d/emacs-custom.el") (load custom-file) (setq warning-suppress-types nil) ;;{{{ load-path anpassen (let* ((my-lisp-dir "~/.emacs.d/lisp") (default-directory my-lisp-dir) (orig-load-path load-path)) (setq load-path (cons my-lisp-dir nil)) (normal-top-level-add-subdirs-to-load-path) (nconc load-path orig-load-path)) ;;}}} ;;{{{ fix scroll bug with emacs 24.1 (when (boundp 'bidi-paragraph-direction) (setq-default bidi-paragraph-direction 'left-to-right)) ;;}}} ;;{{{ load own color theme (when (require 'color-theme nil 'noerror) (color-theme-initialize) (if (not window-system) (color-theme-alex-console) (color-theme-alex))) ;;}}} ;;{{{ user settings (setq user-full-name "Alexander Sulfrian" user-mail-address "alexander@sulfrian.net") ;;}}} ;; define F1 to display man page of the current word (global-set-key [(f1)] (lambda () (interactive) (manual-entry (current-word)))) (load "/usr/share/emacs/site-lisp/site-gentoo" 'noerror) (setq text-mode-hook 'turn-on-auto-fill) (setq fill-column 72) (setq semanticdb-default-save-directory "~/.emacs.d/semantic") (setq locale-coding-system 'latin-1) (set-terminal-coding-system 'latin-1) (set-keyboard-coding-system 'latin-1) (set-selection-coding-system 'latin-1) (prefer-coding-system 'latin-1) (global-set-key [mouse-3] 'imenu) ;;{{{ fix keys for urxvt (if (not window-system) (mapc (lambda (map) (define-key function-key-map (read-kbd-macro (cadr map)) (read-kbd-macro (car map)))) '(("" "M-[ Z") ("" "