From 07f68dc9f177e4d6851d3f6fca6f38f0b7729782 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 23 Jul 2020 21:11:58 -0400 Subject: [PATCH] Enable `blacken-mode` when a python project uses it --- .emacs.d/init.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index af82812..3b9dbd8 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -984,6 +984,12 @@ (org-lookup-dnd-parse-extras) (org-lookup-dnd-dump-vars-to-file '(org-lookup-dnd-db) org-lookup-dnd-db-file)) +(use-package blacken + :hook (python-mode . blacken-mode) + :delight + :config + (setq blacken-only-if-project-is-blackened t)) + ;;; Local Variables (add-to-list 'safe-local-eval-forms '(outline-hide-body)) ;; Local Variables: