]> git.donarmstrong.com Git - lib.git/blobdiff - emacs_el/configuration/don-configuration.org
remove post and old sql-indent; load sql-indent
[lib.git] / emacs_el / configuration / don-configuration.org
index 142fd79b1454f9dc430fc01fc4fddf264b204b98..d256be851bae8c4b1327869d9b9560df0d0f1f87 100644 (file)
@@ -681,10 +681,12 @@ value, scrolling continues until there is no more output.
 ** SQL mode
 #+BEGIN_SRC emacs-lisp
   ; load sql-indent when sql is loaded
+(use-package sql-indent
+  :hook sql-mode
+  )
 (use-package sql
   :mode (("\\.sql\\'" . sql-mode))
-  :config
-  (require sql-indent))
+  )
 #+END_SRC
 ** Ediff
 #+BEGIN_SRC emacs-lisp
@@ -1394,13 +1396,60 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori
 
 ** Python Programming
 #+BEGIN_SRC emacs-lisp
+  (use-package python-mode
+    :hook
+    (python-mode . pyenv-mode)
+    (python-mode . flycheck-mode)
+    (python-mode . company-mode)
+    (python-mode . blacken-mode)
+    (python-mode . yas-minor-mode)
+    )
+  (use-package pyenv
+    :ensure t
+    )
+  (use-package blacken
+    :init
+    (setq-default blacken-fast-unsafe t)
+    (setq-default blacken-line-length 80)
+    :ensure t)
+
+  
   (use-package elpy
     :ensure t
     :init
     (elpy-enable)
     )
 #+END_SRC
-
+*** Jedi
+#+BEGIN_SRC emacs-lisp
+  (use-package company-jedi
+    :ensure t
+    :hook (python-mode . (add-to-list 'company-backends 'company-jedi))
+    :hook (python-mode  . 'jedi:setup)
+    :config
+    (setq jedi:complete-on-dot t)
+    )
+#+END_SRC
+*** Black
+#+begin_src emacs-lisp :tangle yes
+  (use-package python-black
+    :demand t
+    :after python)
+#+end_src
+*** Sphinx Documentation
+#+begin_src emacs-lisp :tangle yes
+  (use-package numpydoc
+    :ensure t
+    :after python
+    :bind (:map python-mode-map
+                ("C-c C-n" . numpydoc-generate)))
+  (use-package sphinx-doc
+    :ensure t
+    :config
+    (sphinx-doc-mode t)
+    (setq sphinx-doc-include-types t)
+    :after python)
+#+end_src
 ** Go language
 #+BEGIN_SRC emacs-lisp
 (use-package go-mode