aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2024-07-08 15:10:02 -0700
committerGravatar Tom Willemse2024-07-08 15:10:02 -0700
commitf404ee603285efc62c73f03b178bd367d115fcbc (patch)
treeff036a34568ae86fc764ffd3d2c7b6b3d010bc4c
parenteeca5767e94fa1033cd8dad4c273408246d8ec9f (diff)
downloademacs-config-f404ee603285efc62c73f03b178bd367d115fcbc.tar.gz
emacs-config-f404ee603285efc62c73f03b178bd367d115fcbc.zip
Autoload needed functionHEADmaster
-rw-r--r--oni-python/oni-python.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/oni-python/oni-python.el b/oni-python/oni-python.el
index c88e7b4..9e8c9c2 100644
--- a/oni-python/oni-python.el
+++ b/oni-python/oni-python.el
@@ -76,6 +76,7 @@ for indentation."
(setq-local whitespace-style '(face tabs))
(whitespace-mode))
+;;;###autoload
(defun oni-python--enable-hooks (hook)
(add-hook hook 'company-mode)
(add-hook hook 'display-fill-column-indicator-mode)
@@ -101,7 +102,7 @@ for indentation."
;;;###autoload
(when (and (functionp 'treesit-available-p)
(treesit-available-p)
- (require 'treesit)
+ (require 'treesit)
(treesit-ready-p 'python))
(add-to-list 'major-mode-remap-alist '(python-mode . python-ts-mode))
(oni-python--enable-hooks 'python-ts-mode-hook))