** 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
** 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