 ;; Markdown ;;
 ;;----------;;
 (use-package markdown-mode
-             :init (add-hook 'markdown-mode-hook '(lambda ()
-			         (setq truncate-lines nil)
-				 (setq truncate-partial-width-windows nil)))
-	     )
+  :init (add-hook 'markdown-mode-hook '(lambda ()
+                                         (setq truncate-lines nil)
+                                         (setq truncate-partial-width-windows nil)))
+  )
 
 
 ;;---;;

(use-package rjsx-mode
  :bind
  ("C-c C-t" . my/npm-run-test)
  )



;;--------;;
;; Python ;;
;;--------;;
;; Use poetry
(use-package poetry
  :ensure t)

;; Use elpy in python mode
(use-package elpy
  :init
  (add-hook 'python-mode-hook '(lambda ()
                                 (setq python-indent-offset 4)))
  (add-hook 'before-save-hook 'elpy-format-code)
  :config
  (elpy-enable)
  (setq elpy-test-django-with-manage t)
  (setq elpy-modules (delq 'elpy-module-highlight-indentation elpy-modules))
  (setq elpy-rpc-virtualenv-path 'current)
  ;; Permits using pdb.set_trace() when running tests in buffer
  (defun elpy-test-run (working-directory command &rest args)
    (let ((default-directory working-directory))
      (compile (mapconcat #'shell-quote-argument
                          (cons command args)
                          " ")
               t))))

;; Use isort and auto sort imports on save
(use-package py-isort
