<commit_before>;; * Clojure Hacking Support -*- lexical-binding: t; -*-
;; Authors:
;;	jgd = <NAME>

;; ** require

(require 'clojure-mode)

;; ** Everything Else

;; Based in part on the .emacs.d imported by
;; git clone https://github.com/flyingmachine/emacs-for-clojure.git ~/.emacs.d

;; (add-to-list 'auto-mode-alist '("\\.edn\\'" . clojure-mode))

;; (setq nrepl-history-file "~/.emacs.d/nrepl-history")
;; (setq nrepl-popup-stacktraces t)
;; (setq nrepl-popup-stacktraces-in-repl t)

;; (defun pnh-clojure-mode-eldoc-hook ()
;;   (add-hook 'clojure-mode-hook 'turn-on-eldoc-mode)
;;   (add-hook 'nrepl-interaction-mode-hook 'nrepl-turn-on-eldoc-mode)
;;   (nrepl-enable-on-existing-clojure-buffers)
;;   ;; prevent hippie expand from trying file names
;;   (dolist (fn 'try-complete-file-name 'try-complete-file-name-partially)
;;     (setq hippie-expand-try-functions-list (delete fn hippie-expand-try-functions-list)) )
;;   (setq ido-use-filename-at-point nil)
;;   )

;; (add-hook 'nrepl-connected-hook 'pnh-clojure-mode-eldoc-hook)

(ngender-update-union 'auto-mode-alist '("\\.cljs\\'" . clojure-mode) )

;; (add-hook 'nrepl-mode-hook 'subword-mode)

;; (eval-after-load "auto-complete"
;;   '(add-to-list 'ac-modes 'nrepl-mode) )

;; (add-hook 'nrepl-mode-hook 'ac-nrepl-setup)

;; ** provide

(provide 'ngender-clojure)

;; ** Loading

;; (autoload 'ngender-clojure-mode "ngender-clojure")
;; (add-to-list 'auto-mode-alist '("\\.\\(clj[cxs]\\?\\|dtm\\|edn\\)\\'" . ngender-clojure-mode))<commit_msg>added cider config<commit_after>;; * Clojure Hacking Support -*- lexical-binding: t; -*-
;; Authors:
;;	jgd = <NAME>

;; ** requires
(require 'clojure-mode)
(require 'cider)

;; Configure cider

(add-hook 'cider-mode-hook 'cider-turn-on-eldoc-mode)

(setq nrepl-hide-special-buffers t)

(setq cider-repl-popup-stacktraces t)

;; (setq cider-repl-history-file "path/to/file")

(add-hook 'cider-repl-mode-hook 'paredit-mode)

(add-hook 'cider-repl-mode-hook 'rainbow-delimiters-mode)

;; ** Configure Clojure-Nrepl

;; Is this still needed, given Cider??

;; Based in part on the .emacs.d imported by
;; git clone https://github.com/flyingmachine/emacs-for-clojure.git ~/.emacs.d

;; (add-to-list 'auto-mode-alist '("\\.edn\\'" . clojure-mode))

;; (setq nrepl-history-file "~/.emacs.d/nrepl-history")
;; (setq nrepl-popup-stacktraces t)
;; (setq nrepl-popup-stacktraces-in-repl t)

;; (defun pnh-clojure-mode-eldoc-hook ()
;;   (add-hook 'clojure-mode-hook 'turn-on-eldoc-mode)
;;   (add-hook 'nrepl-interaction-mode-hook 'nrepl-turn-on-eldoc-mode)
;;   (nrepl-enable-on-existing-clojure-buffers)
;;   ;; prevent hippie expand from trying file names
;;   (dolist (fn 'try-complete-file-name 'try-complete-file-name-partially)
;;     (setq hippie-expand-try-functions-list (delete fn hippie-expand-try-functions-list)) )
;;   (setq ido-use-filename-at-point nil)
;;   )

;; (add-hook 'nrepl-connected-hook 'pnh-clojure-mode-eldoc-hook)

;; Configure Clojure-Mode

(ngender-update-union 'auto-mode-alist '("\\.cljs\\'" . clojure-mode) )

;; (add-hook 'nrepl-mode-hook 'subword-mode)

;; (eval-after-load "auto-complete"
;;   '(add-to-list 'ac-modes 'nrepl-mode) )

;; (add-hook 'nrepl-mode-hook 'ac-nrepl-setup)

;; ** provide

(provide 'ngender-clojure)

;; ** Loading

;; (autoload 'ngender-clojure-mode "ngender-clojure")
;; (add-to-list 'auto-mode-alist '("\\.\\(clj[cxs]\\?\\|dtm\\|edn\\)\\'" . ngender-clojure-mode))
{'fraction_non_alphanumeric': 0.21002039032915817, 'fraction_numerical': 0.0, 'mean_word_length': 3.7827298050139277, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1277935', 'n_tokens_mistral': 1455, 'n_tokens_neox': 1435, 'n_words': 223}