From 59d6953e0ef53a11d737779ad90d628851a493eb Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 17 Sep 2022 13:54:21 -0700 Subject: feat(lang/python): configure Emacs for python Change-Id: I4f1ae59be8c10f344bec93b86c70a893123e92de --- emacs/custom/my-lang-python.el | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 emacs/custom/my-lang-python.el (limited to 'emacs/custom') diff --git a/emacs/custom/my-lang-python.el b/emacs/custom/my-lang-python.el new file mode 100644 index 0000000..74da80b --- /dev/null +++ b/emacs/custom/my-lang-python.el @@ -0,0 +1,16 @@ +;;; my-lang-python.el --- Configures emacs for python -*- lexical-binding: t -*- +;; Author: Franck Cuny + +;;; Commentary: + +;;; Code: + +(require 'python-mode) +(require 'blacken) + +;; enable black when we are in python-mode +(add-hook 'python-mode-hook 'blacken-mode) + +(provide 'my-lang-python) + +;;; my-lang-python.el ends here -- cgit 1.4.1