 (global-set-key (kbd "<C-next>") 'er/contract-region)
 
 ;; Make shell more convenient, and suspend-frame less
-(global-set-key (kbd "C-z") 'ansi-term)
+
 (global-set-key (kbd "C-x M-z") 'suspend-frame)
 ;; make zsh aliases work
 (setq shell-command-switch "-ic")

(add-hook 'isearch-mode-hook 'isearch-yank-word-hook)
(global-set-key (kbd "C-c *") 'isearch-word-at-point)

;; safety
(setq make-backup-files nil)
(defvar autosave-dir (expand-file-name "~/.emacs.d/cache/autosave-dir/"))
(setq auto-save-list-file-prefix "~/.emacs-saves/cache/auto-save-list/.saves-")
(setq auto-save-list-file-prefix autosave-dir)
(setq auto-save-file-name-transforms `((".*" ,autosave-dir t)))
(setq confirm-kill-emacs 'y-or-n-p)

;; save location inside buffer
(require 'saveplace)
(setq save-place-file "~/.emacs.d/cache/saveplace")
(setq-default save-place t)

;; optical stuff
;; (require 'heartbeat-cursor)
;; (blink-cursor-mode -1)
;; (heartbeat-cursor-mode)
(setq-default cursor-type 'box)
(setq inhibit-splash-screen t)

;; shows current selected region
(setq-default transient-mark-mode t)
(setq frame-title-format "%b")
(set-fringe-mode '(1 . 10))

;; text stuff
(setq default-major-mode 'org-mode)
(prefer-coding-system 'utf-8)
(setq undo-limit 1000000)
(setq sentence-end-double-space nil)

(menu-bar-mode -1)
(scroll-bar-mode -1)

;; optical stuff
;; (require 'heartbeat-cursor)
;; (blink-cursor-mode -1)
;; (heartbeat-cursor-mode)
(setq-default cursor-type 'box)
(setq inhibit-splash-screen t)

;; shows current selected region
(setq-default transient-mark-mode t)
(global-font-lock-mode t)
(setq jit-lock-stealth-time 5)
(setq frame-title-format "%b")
(set-fringe-mode '(1 . 10))

;; smart-mode
(setup "smart-mode-line"
       (setq sml/theme 'dark)
       (sml/setup))

;; scrolling
(setq scroll-preserve-screen-position t)
(setq mouse-wheel-progressive-speed nil)
(setq scroll-error-top-bottom t)
;; smooth scrolling with margin
(setup "smooth-scrolling"
       (setq smooth-scroll-margin 5)
       (setq scroll-margin 0)
       (setq scroll-conservatively 10000)
       ;; necessary or scrolling is really slow
       (setq-default bidi-display-reordering nil)
       (setq auto-window-vscroll nil))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Remove background color from terminal emacs,
