summary refs log tree commit diff
path: root/emacs/custom/my-lang-python.el
blob: c5f612a5553402de6a1a0221b6b1b56fd1358f71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
;;; my-lang-python.el --- Configures emacs for python -*- lexical-binding: t -*-
;; Author: Franck Cuny <franck@fcuny.net>

;;; Commentary:

;;; Code:

(require 'python)
(require 'python-mode)

;; if black is present, enable it
(when (executable-find "black")
  (require 'blacken)
  (add-hook 'python-mode-hook 'blacken-mode))

(setq python-shell-interpreter "python3")

(provide 'my-lang-python)

;;; my-lang-python.el ends here