Support Python

Adds configuration for my Python preferences.
This commit is contained in:
William Carroll 2018-10-02 09:56:30 -04:00
parent e389f02007
commit 9ed59566eb
5 changed files with 32 additions and 0 deletions

View file

@ -37,6 +37,7 @@
(require 'wpc-docker)
(require 'wpc-lisp)
(require 'wpc-haskell)
(require 'wpc-python)
(require 'wpc-nix)
(require 'wpc-clojure)
(require 'wpc-javascript)

View file

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: Dunder main (__main__)
# key: mn
# --
if __name__ == "__main__":
main()

View file

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: shebang
# key: shb
# --
#!/usr/bin/env python
# -*- coding: utf-8 -*-

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: utf-8
# key: utf
# --
# -*- coding: utf-8 -*-

View file

@ -0,0 +1,14 @@
;;; wpc-python.el --- Hosts python tooling preferences -*- lexical-binding: t -*-
;; Author: William Carroll <wpcarro@gmail.com>
;;; Commentary:
;; Python tooling for work, life, etc.
;;; Code:
(use-package lsp-python
:config
(general-add-hook 'python-mode-hook #'lsp-python-enable)
(general-add-hook 'before-save-hook #'lsp-format-buffer))
(provide 'wpc-python)
;;; wpc-python.el ends here