   "Use this to indent the whole file."
   (interactive)
   (indent-region (point-min) (point-max)))
+
 (defun run ()
   "Use this to run single file in different file type."
   (interactive)

  (lambda ()
    (interactive)
    (evil-delete (point-at-bol) (point))))
(define-key evil-insert-state-map "j" #'cofi/maybe-exit)
(evil-define-command cofi/maybe-exit ()
  :repeat change
  (interactive)
  (let ((modified (buffer-modified-p)))
    (insert "j")
    (let ((evt (read-event (format "Insert %c to exit insert state" ?j)
                           nil 0.5)))
      (cond


(add-hook 'before-save-hook 'delete-trailing-whitespace)

(defun uco (name)
  "Use this to init the ${NAME} programming for usacontext."
  (interactive "sinput the program name you want to open or create: ")
  (let* ((prefix `((t . "~") (nil . "~/host")))
         (path (concat (cdr (assoc *is-a-mac* prefix)) "/Work/git/usacontext/" ))
         (folder (concat path name "/")))
    (unless (file-exists-p folder)
      (make-directory folder)
      (shell-command (concat  "cp " path  "sample/sample.cpp " folder name
                              ".cpp && sed -i 's/#{name}/" name "/' " folder "*.cpp" )))
    (uco-display folder name)))

(defun uco-display (folder name)
  "FOLDER: the file location.  NAME: the file name."
  (let ((uco-cpp (concat folder name ".cpp"))
        (uco-pro (concat folder name ".pr"))
        (uco-in (concat folder name ".in"))
        (uco-out (concat folder name ".out")))
    (make-frame-command)
    (switch-to-buffer (find-file-noselect uco-cpp))
    (set-window-buffer (split-window-horizontally) (find-file-noselect uco-pro))
    (windmove-right)
    (set-window-buffer (split-window-below) (find-file-noselect uco-in))
    (windmove-down)
    (set-window-buffer (split-window-right) (find-file-noselect uco-out))
    (windmove-left)))

(provide 'init-local)

;;; init-local.el ends here
