Skip to content

Commit

Permalink
add python poetry key bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
ashkan-leo committed Feb 22, 2021
1 parent 015f914 commit fdde656
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions config.org
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
- [[#lsp-ui-configurations][LSP UI Configurations]]
- [[#lsp-treemacs][LSP Treemacs]]
- [[#python][Python]]
- [[#poetry][Poetry]]
- [[#sphinx-doc][~sphinx-doc~]]
- [[#prolog-1][Prolog]]
- [[#ediprolog][~ediprolog~]]
Expand Down Expand Up @@ -740,6 +741,19 @@ I use deft to search the notes I take using org roam.
(setq +python-ipython-repl-args '("-i" "--simple-prompt" "--no-color-info"))
(setq +python-jupyter-repl-args '("--simple-prompt"))
#+END_SRC
*** Poetry
**** Key Bindings
#+BEGIN_SRC emacs-lisp
(map! :leader
(:prefix-map ("a" . "applications")
(:prefix ("p" . "poetry")
:desc "add poetry dependency" "d" #'poetry-add
:desc "add poetry dev dependency" "D" #'poetry-add-dev-dep
:desc "poetry run" "r" #'poetry-run
:desc "poetry build" "b" #'poetry-build
:desc "poetry install" "i" #'poetry-install
:desc "poetry install-install" "I" #'poetry-install-install)))
#+END_SRC
*** ~sphinx-doc~
+ Enable [[https://github.com/naiquevin/sphinx-doc.el][sphinx-doc]], which generate Python docstrings for function and methods.
+ It does not work with python type hints.
Expand Down

0 comments on commit fdde656

Please sign in to comment.