1 (message "General emacs setup")
5 (setq-default tab-width 4)
6 (setq-default indent-tabs-mode t)
7 (setq mail-user-agent 'sendmail-user-agent)
8 ;; Insert stuff at cursor position not at mouse position
9 ;(setq mouse-yank-at-point t)
11 ;; Emacs autobrabel configuration goes into extra file
13 ;; More uniq, parsable buffer names
15 (setq uniquify-buffer-name-style 'post-forward)
17 (require 'auto-complete)
25 ;; Reindenting the whole buffer
29 (delete-trailing-whitespace)
30 (indent-region (point-min) (point-max) nil)
31 (untabify (point-min) (point-max)))
34 (setq linum-format "%3d")
36 ;; Some file extensions autoloading
37 (add-to-list 'auto-mode-alist '("\\.mdn$" . markdown-mode))
39 (setq browse-url-generic-program (executable-find "conkeror")
40 browse-url-browser-function 'browse-url-generic)
42 (global-set-key (kbd "C-x d") 'dired)
44 (set-input-method "german-postfix")
48 (defun paste-x-selection ()
50 (let ((x-select-enable-primary t)
51 (x-select-enable-clipboard nil))
53 (global-set-key (kbd "<XF86Paste>") 'paste-x-selection)
54 (global-set-key (kbd "C-S-<insert>") 'paste-x-selection)