summary refs log tree commit diff
path: root/emacs/custom/my-lang-python.el
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-09-17 13:54:21 -0700
committerFranck Cuny <franck@fcuny.net>2022-09-17 13:54:21 -0700
commit59d6953e0ef53a11d737779ad90d628851a493eb (patch)
tree6b256476587e8981c26ee1779af88aca03acfac9 /emacs/custom/my-lang-python.el
parentfeat(packages): install all required packages via straight (diff)
downloademacs.d-59d6953e0ef53a11d737779ad90d628851a493eb.tar.gz
feat(lang/python): configure Emacs for python
Change-Id: I4f1ae59be8c10f344bec93b86c70a893123e92de
Diffstat (limited to '')
-rw-r--r--emacs/custom/my-lang-python.el16
1 files changed, 16 insertions, 0 deletions
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 <franck@fcuny.net>
+
+;;; 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