<commit_before>;;; lang/scheme/autoload.el -*- lexical-binding: t; -*-

;; HACK geiser-* plugins will try to add to these two variables, so it must be
;;      defined before their autoloads are evaluated. Fortunately, Doom modules'
;;      autoloads run earlier than package autoloads.
;;;###autoload (defvar geiser-active-implementations ())
;;;###autoload (defvar geiser-implementations-alist ())

;; HACK `geiser-impl--add-to-alist' isn't autoloaded or inlined, so you get
;;      void-function errors when it is called in the autoloads files of other
;;      geiser-* packages.
;;;###autoload
(defun geiser-impl--add-to-alist (kind what impl &optional append)
  (add-to-list 'geiser-implementations-alist
               (list (list kind what) impl) append))


(defvar calculate-lisp-indent-last-sexp)

;; Adapted from https://github.com/alezost/emacs-config/blob/master/utils/al-scheme.el#L76-L123
;;;###autoload
(defun +scheme-scheme-indent-function-a (indent-point state)
  "Advice to replace `scheme-indent-function'.
<commit_msg>Fix void-function geiser-impl--add-to-alist errors<commit_after>;;; lang/scheme/autoload.el -*- lexical-binding: t; -*-

;; HACK geiser-* plugins will try to add to these two variables, so it must be
;;      defined before their autoloads are evaluated. Fortunately, Doom modules'
;;      autoloads run earlier than package autoloads.
;;;###autoload (defvar geiser-active-implementations ())
;;;###autoload (defvar geiser-implementations-alist ())

;; HACK `geiser-impl--add-to-alist' isn't autoloaded or inlined, so you get
;;      void-function errors when it is called in the autoloads files of other
;;      geiser-* packages.
;;;###autoload (defun geiser-impl--add-to-alist (kind what impl &optional append) (add-to-list 'geiser-implementations-alist (list (list kind what) impl) append))


(defvar calculate-lisp-indent-last-sexp)

;; Adapted from https://github.com/alezost/emacs-config/blob/master/utils/al-scheme.el#L76-L123
;;;###autoload
(defun +scheme-scheme-indent-function-a (indent-point state)
  "Advice to replace `scheme-indent-function'.

{'fraction_non_alphanumeric': 0.1413562559694365, 'fraction_numerical': 0.004775549188156638, 'mean_word_length': 4.198511166253102, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4602858', 'n_tokens_mistral': 707, 'n_tokens_neox': 694, 'n_words': 189}