Support Python
Adds configuration for my Python preferences.
This commit is contained in:
		
							parent
							
								
									e389f02007
								
							
						
					
					
						commit
						9ed59566eb
					
				
					 5 changed files with 32 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -0,0 +1,6 @@
 | 
			
		|||
# -*- mode: snippet -*-
 | 
			
		||||
# name: Dunder main (__main__)
 | 
			
		||||
# key: mn
 | 
			
		||||
# --
 | 
			
		||||
if __name__ == "__main__":
 | 
			
		||||
    main()
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,6 @@
 | 
			
		|||
# -*- mode: snippet -*-
 | 
			
		||||
# name: shebang
 | 
			
		||||
# key: shb
 | 
			
		||||
# --
 | 
			
		||||
#!/usr/bin/env python
 | 
			
		||||
# -*- coding: utf-8 -*-
 | 
			
		||||
							
								
								
									
										5
									
								
								configs/shared/emacs/.emacs.d/snippets/python-mode/utf-8
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								configs/shared/emacs/.emacs.d/snippets/python-mode/utf-8
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,5 @@
 | 
			
		|||
# -*- mode: snippet -*-
 | 
			
		||||
# name: utf-8
 | 
			
		||||
# key: utf
 | 
			
		||||
# --
 | 
			
		||||
# -*- coding: utf-8 -*-
 | 
			
		||||
							
								
								
									
										14
									
								
								configs/shared/emacs/.emacs.d/wpc/packages/wpc-python.el
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								configs/shared/emacs/.emacs.d/wpc/packages/wpc-python.el
									
										
									
									
									
										Normal 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
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue