From 5bb53069d14bb53d20b7b8be884d919ad79d731a Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 20 Jan 2025 10:38:46 +0000 Subject: [PATCH] Clean-up python use-package block a bit --- init.el | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/init.el b/init.el index c2ce1e8..20959e6 100644 --- a/init.el +++ b/init.el @@ -1121,14 +1121,10 @@ :custom (sh-basic-offset 2)) -(defun my/enable-fill-column (col) - "Set and enable fill column to `COL'." - (set-fill-column col) - (display-fill-column-indicator-mode +1)) - (use-package python - :hook ((python-base-mode . (lambda () (my/enable-fill-column 88))) - (python-base-mode . (lambda () + :hook ((python-base-mode . (lambda () + (set-fill-column 88) + (display-fill-column-indicator-mode +1) (setq-local python-check-command (cond