 
 ;; Page up and down
 (define-key evil-normal-state-map (kbd "9") (lambda ()
-                    (interactive)
-                    (evil-scroll-up nil)))
+                                              (interactive)
+                                              (evil-scroll-up nil)))
 (define-key evil-normal-state-map (kbd "8") (lambda ()
-                        (interactive)
-                        (evil-scroll-down nil)))
+                                              (interactive)
+                                              (evil-scroll-down nil)))
 
 ;; Automateic indentation
 (define-key global-map (kbd "RET") 'newline-and-indent)


;; Start maximized
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(custom-safe-themes
   (quote
	("e87a2bd5abc8448f8676365692e908b709b93f2d3869c42a4371223aab7d9cf8" default)))
 '(global-linum-mode t)
 '(inhibit-startup-screen t)
 '(initial-frame-alist (quote ((fullscreen . maximized))))
 '(package-selected-packages
   (quote
	(term+ snippet vimrc-mode auctex-latexmk magic-latex-buffer init-open-recentf magit-find-file find-things-fast helm-fuzzy-find highlight-current-line rainbow-mode neotree linum-relative drag-stuff git-gutter evil-surround evil-commentary autopair simpleclip flycheck smooth-scrolling projectile powerline-evil magit helm gruvbox-theme evil-search-highlight-persist evil-leader auto-complete)))
 '(send-mail-function (quote smtpmail-send-it)))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(trailing-whitespace ((t (:background "dim gray")))))

(defun copy-to-clipboard ()
  (interactive)
  (if (display-graphic-p)
    (progn
      (message "Yanked region to x-clipboard!")
      (call-interactively 'clipboard-kill-ring-save)
      )
    (if (region-active-p)
      (progn
        (shell-command-on-region (region-beginning) (region-end) "xsel -i -b")
        (message "Yanked region to clipboard!")
        (deactivate-mark))
      (message "No region active; can't yank to clipboard!")))
  )
(evil-define-command paste-from-clipboard()
                     (if (display-graphic-p)
                       (progn
                         (clipboard-yank)
                         (message "graphics active")
                         )
                       (insert (shell-command-to-string "xsel -o -b"))
                       )
                     )
(global-set-key [f8] 'copy-to-clipboard)
(global-set-key [f9] 'paste-from-clipboard)

