 
 ; Keymaps {{{
 ; some keymaps from ~/.vimrc
+
+; pressing TAB inserts a TAB
+(define-key text-mode-map (kbd "TAB") 'self-insert-command)
+(global-set-key (kbd "TAB") 'self-insert-command)
+
 (define-key evil-insert-state-map [f1] 'save-buffer) ; save
 (define-key evil-normal-state-map [f1] 'save-buffer) ; save
 (define-key evil-normal-state-map ",w" 'save-buffer) ; save

; Custom functions {{{
(setq my-current-font 0)
(defun my-toggle-font ()
    "Toggle font between Terminus and DejaVu Sans Mono"
    (interactive)
    (setq my-current-font (if (= my-current-font 0) 1 0))
    (set-face-attribute 'default nil :font (if (= my-current-font 1) "DejaVu Sans Mono" "Terminus"))
    (redraw-display))
;}}}

; Load paths and modes {{{


; add load path for custom scripts
(add-to-list 'load-path "~/.emacs.d/script")

; rainbow-colored matching parentheses, braces, etc.
(require 'rainbow-delimiters)
(global-rainbow-delimiters-mode)

; highlight matching parenthese
(show-paren-mode 1)

; change background of hex color strings to the actual color (activate with rainbow-mode)
(require 'rainbow-mode)

; YAML major mode
(require 'yaml-mode)
