 
 ;; Selection
 
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+(require 'hippie-exp)
+
+(defun my-hippie-tab (arg)
+  (interactive "*P")
+  (cond ((and transient-mark-mode (region-active-p))
+         (indent-region (region-beginning) (region-end) nil))
+        ((and (eq (char-syntax (preceding-char)) ?w)
+              (not (zerop (current-column))))
+         (hippie-expand arg))
+        (t
+         (indent-for-tab-command))))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 

(put 'erase-buffer 'disabled nil)
(fset 'yes-or-no-p 'y-or-n-p)

(menu-bar-mode -1)
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
(line-number-mode t)

(add-to-list 'load-path (expand-file-name "~/.emacs.d"))

;(require 'filladapt)

(setq filladapt-mode-line-string nil)
(setq-default filladapt-mode t)

(set-register ?e '(file . "~/.emacs"))

; (setq-default visual-line-mode t)
(setq-default indent-tabs-mode nil)
(setq-default show-trailing-whitespace t)
(setq make-backup-files nil)
