From 81ba56789b5f14ef5527749a1af10bd0020b0d3c Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 14 Apr 2014 19:30:22 +0200 Subject: emacs: move .emacs to .emacs.d/init.el --- emacs.d/init.el | 493 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ emacs.d/init.elc | Bin 0 -> 12393 bytes 2 files changed, 493 insertions(+) create mode 100644 emacs.d/init.el create mode 100644 emacs.d/init.elc (limited to 'emacs.d') diff --git a/emacs.d/init.el b/emacs.d/init.el new file mode 100644 index 0000000..58bb2ab --- /dev/null +++ b/emacs.d/init.el @@ -0,0 +1,493 @@ +;; -*- 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") + ("" "