Autoload needed function
This commit is contained in:
parent
eeca5767e9
commit
f404ee6032
1 changed files with 2 additions and 1 deletions
|
@ -76,6 +76,7 @@ for indentation."
|
||||||
(setq-local whitespace-style '(face tabs))
|
(setq-local whitespace-style '(face tabs))
|
||||||
(whitespace-mode))
|
(whitespace-mode))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
(defun oni-python--enable-hooks (hook)
|
(defun oni-python--enable-hooks (hook)
|
||||||
(add-hook hook 'company-mode)
|
(add-hook hook 'company-mode)
|
||||||
(add-hook hook 'display-fill-column-indicator-mode)
|
(add-hook hook 'display-fill-column-indicator-mode)
|
||||||
|
@ -101,7 +102,7 @@ for indentation."
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(when (and (functionp 'treesit-available-p)
|
(when (and (functionp 'treesit-available-p)
|
||||||
(treesit-available-p)
|
(treesit-available-p)
|
||||||
(require 'treesit)
|
(require 'treesit)
|
||||||
(treesit-ready-p 'python))
|
(treesit-ready-p 'python))
|
||||||
(add-to-list 'major-mode-remap-alist '(python-mode . python-ts-mode))
|
(add-to-list 'major-mode-remap-alist '(python-mode . python-ts-mode))
|
||||||
(oni-python--enable-hooks 'python-ts-mode-hook))
|
(oni-python--enable-hooks 'python-ts-mode-hook))
|
||||||
|
|
Loading…
Reference in a new issue