     (call-interactively #'write-file)
     (when old-location
       (delete-file old-location))))
-;; (defun my/python-mode-hook ()
-;;   (add-to-list 'company-backends 'company-jedi))
 
 (setq visible-bell nil
       ring-bell-function 'my-terminal-visible-bell)
 
 ;;Put backup files neatly away -- saved me many times
-
 (let ((backup-dir "~/Dropbox/Code/Emacs/backups")
       (auto-saves-dir "~/Dropbox/Code/Emacs/autosavedir")
       )

(setq-default frame-title-format '("%f")) ;;Set file name as the frame title
(add-to-list 'default-frame-alist '(width  . 110))
(add-to-list 'default-frame-alist '(height . 37))
;;(setq initial-frame-alist '((left . 570) (top . 135)))
(scroll-bar-mode -1)

;;-------------------------------------Server------------------

(global-set-key [(meta down)]  'move-line-down)
(define-key evil-normal-state-map "n" 'scroll-up)
(define-key evil-normal-state-map "N" 'scroll-down)
(global-set-key (kbd "<f7>") 'flyspell-mode) ;Activates the spell-checker
(global-set-key (kbd "C-x g") 'magit-status)
(global-set-key (kbd "M-z") 'shell-command)
(global-set-key (kbd "C-x 2") 'my-window-split-v)
(global-set-key (kbd "C-x 3") 'my-window-split-h)
(global-set-key (kbd "C-x d") 'dired-jump)
(global-set-key (kbd "C-x t") 'ansi-term)
(global-set-key (kbd "S-SPC") 'recompile)
(define-key evil-normal-state-map (kbd "C-h") 'evil-window-left)
