   ; (dotemacs-init-latex)
   ; (dotemacs-init-scala)
   (dotemacs-init-mapserver)
-  
+
   ;; ;; other modes
   (dotemacs-init-dired)
   (dotemacs-init-org)



(defun dotemacs-init-python ()
  (declare-function python-shell-calculate-exec-path "python")

  (defalias 'workon 'pyvenv-workon)

  (defun flycheck-virtualenv-executable-find (executable)
    "Find an EXECUTABLE in the current virtualenv if any."
    (if (bound-and-true-p python-shell-virtualenv-root)
        (let ((exec-path (python-shell-calculate-exec-path)))
          (executable-find executable))
      (executable-find executable)))

  (defun flycheck-virtualenv-setup ()
    "Setup Flycheck for the current virtualenv."
    (setq-local flycheck-executable-find #'flycheck-virtualenv-executable-find))

  (defun my-python-mode-hook ()
    (flycheck-virtualenv-setup)


  (add-to-list 'auto-mode-alist '("\\.map\\'" . mapserver-mode))
  t)


(defun dotemacs-init-org ()
  (setq org-todo-keywords
        '((sequence "TODO(t)" "WAIT(w@/!)" "IN PROGRESS(p!)" "|" "DONE(d!)" "CANCELED(c@)")))
