<commit_before>;;; nix-mode-conf.el --- Settings for nix-mode
;;
;;; Commentary:
;;
;;; Code:
(require 'nix-mode)
(require 'reformatter)

(custom-set-variables
 '(nix-indent-function #'nix-indent-line))

(reformatter-define nix-format
  :program "nixpkgs-fmt")

(defun pjones:nix-mode-hook ()
  "Configure `nix-mode'."
  (setq-local electric-pair-open-newline-between-pairs nil)
  (setq-local indent-line-function #'indent-relative)
  (nix-format-on-save-mode))

(add-hook 'nix-mode-hook #'pjones:nix-mode-hook)
<commit_msg>nix: Don't try to indent on bracket insert<commit_after>;;; nix-mode-conf.el --- Settings for nix-mode
;;
;;; Commentary:
;;
;;; Code:
(require 'nix-mode)
(require 'reformatter)

(custom-set-variables
 '(nix-indent-function #'nix-indent-line))

(reformatter-define nix-format
  :program "nixpkgs-fmt")

(defun pjones:nix-mode-hook ()
  "Configure `nix-mode'."
  (setq-local indent-line-function #'indent-relative)
  (electric-indent-mode -1)
  (pjones:prog-mode-hook)
  (nix-format-on-save-mode))

(define-key nix-mode-map (kbd "<return>") #'newline-and-indent)
(add-hook 'nix-mode-hook #'pjones:nix-mode-hook)

{'fraction_non_alphanumeric': 0.19118942731277533, 'fraction_numerical': 0.000881057268722467, 'mean_word_length': 4.541463414634146, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2321683', 'n_tokens_mistral': 473, 'n_tokens_neox': 446, 'n_words': 76}