<commit_before>;;; core-eval.el

(use-package quickrun
  :commands (quickrun
             quickrun-region
             quickrun-with-arg
             quickrun-shell
             quickrun-compile-only
             quickrun-replace-region
             helm-quickrun)
  :config
  (setq quickrun-focus-p nil)
  (add-hook! quickrun/mode '(linum-mode))
  (add-to-list 'quickrun-file-alist '("\\.gvy$" . "groovy")))

(use-package repl-toggle
  :commands (rtog/toggle-repl rtog/add-repl)
  :init
  (setq rtog/mode-repl-alist '())

  (defvar repl-p nil)
  (make-variable-buffer-local 'repl-p)

  (defun narf|repl-init ()
    (yascroll-bar-mode +1)
    (evil-initialize-state 'emacs)
    (setq mode-line-format nil
          repl-p t))
  (add-hook! repl-toggle-mode 'narf|repl-init))

(provide 'core-eval)
;;; core-eval.el ends here<commit_msg>Bind comint-(next|previous)-input to C-n/C-p in REPLs<commit_after>;;; core-eval.el

(use-package quickrun
  :commands (quickrun
             quickrun-region
             quickrun-with-arg
             quickrun-shell
             quickrun-compile-only
             quickrun-replace-region
             helm-quickrun)
  :config
  (setq quickrun-focus-p nil)
  (add-hook! quickrun/mode '(linum-mode))
  (add-to-list 'quickrun-file-alist '("\\.gvy$" . "groovy")))

(use-package repl-toggle
  :commands (rtog/toggle-repl rtog/add-repl)
  :init
  (setq rtog/mode-repl-alist '())

  (defvar repl-p nil)
  (make-variable-buffer-local 'repl-p)

  (defun narf|repl-init ()
    (yascroll-bar-mode +1)
    (evil-initialize-state 'emacs)
    (setq mode-line-format nil
          repl-p t))
  (add-hook! repl-toggle-mode 'narf|repl-init)
  :config
  (map! :map repl-toggle-mode-map
        :i "C-n" 'comint-next-input
        :i "C-p" 'comint-previous-input)
  )

(provide 'core-eval)
;;; core-eval.el ends here
{'fraction_non_alphanumeric': 0.15283842794759825, 'fraction_numerical': 0.001091703056768559, 'mean_word_length': 2.426168224299065, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '5349457', 'n_tokens_mistral': 705, 'n_tokens_neox': 696, 'n_words': 124}