1fcb1ef03903cd8654a85b0a878154b20d0dcb17 — jerry 1 year, 11 months ago 216a93f
Adding black
3 files changed, 17 insertions(+), 5 deletions(-)

M config.el
M init.el
M packages.el
M config.el => config.el +14 -4
@@ 83,10 83,20 @@
;; https://emacs.stackexchange.com/questions/61987/leave-evils-insert-state-with-control-c
(define-key evil-normal-state-map (kbd "C-}") 'evil-forward-paragraph)
(define-key evil-normal-state-map (kbd "C-{") 'evil-backward-paragraph)
(evil-define-key 'normal 'scheme-mode (kbd "C-{") 'evil-backwards-paragraph)
(map! :after 'scheme-mode "C-{" #'evil-backwards-paragraph)
(map! :after scheme "C-{" #'evil-backwards-paragraph)
(map! "C-{" #'evil-backwards-paragraph)
;(evil-define-key 'normal 'scheme-mode (kbd "C-{") 'evil-backwards-paragraph)
;(map! :after 'scheme-mode "C-{" #'evil-backwards-paragraph)
;(map! :after scheme "C-{" #'evil-backwards-paragraph)
;(map! "C-{" #'evil-backwards-paragraph)

; https://gist.github.com/jordangarrison/8720cf98126a1a64890b2f18c1bc69f5
(use-package! python-black
              :demand t
              :after python
              (add-hook! 'python-mode-hook #'python-black-on-save-mode)
              (map! :leader "m b b" #'python-black-buffer)
              (map! :leader "m b r" #'python-black-region)
              (map! :leader "m b s" #'python-black-statement))

; https://github.com/hlissner/doom-emacs/issues/2263#issuecomment-569444412
;(after! geiser

M init.el => init.el +1 -0
@@ 57,6 57,7 @@
       (evil +everywhere); come to the dark side, we have cookies
       file-templates    ; auto-snippets for empty files
       fold              ; (nigh) universal code folding
       ;;(format +onsave)  ; automated prettiness
       ;;god               ; run Emacs commands without modifier keys
       ;;lispy             ; vim for lisp, for people who don't like vim

M packages.el => packages.el +2 -1
@@ 20,7 20,8 @@
(package! poetry)
(package! python-isort)
(package! python-pytest)
(package! lsp-python-ms)
;(package! lsp-python-ms)
(package! python-black)

;; To install a package directly from a remote git repo, you must specify a
;; `:recipe'. You'll find documentation on what `:recipe' accepts here: