(message "General emacs setup")
+(if window-system
+ (tool-bar-mode -1))
+(setq inhibit-startup-message t)
+
;; Indentation
(setq tab-width 4)
(setq-default tab-width 4)
(require 'uniquify)
(setq uniquify-buffer-name-style 'post-forward)
-(require 'auto-complete)
+(if (locate-library "auto-complete")
+ (require 'auto-complete))
-(require 'magit)
+(if (locate-library "auto-complete")
+ (require 'magit))
;; Ido mode
(require 'ido)
(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"))
+(global-linum-mode 1)
+(setq linum-format "%3d")
;; 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")
+(setq browse-url-generic-program (executable-find "conkeror")
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 ()
(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)
+(if (locate-library "dired-narrow")
+ (progn
+ (require 'dired-narrow)
+ (define-key dired-mode-map "/" 'dired-narrow)))