<commit_before>;;; ~/.emacs.d/personal/10-config.el --- Custom Emacs configurations
;;
;; -*- mode: emacs-lisp -*-
;; vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=lisp:
;;
;; Credits:
;; [1] https://github.com/wasamasa/dotemacs/blob/master/init.org
;;
;; <NAME>
;; 2016-02-24
;;

;;; Commentary:
;; Custom Emacs configurations.

;;; Code:

;; Turn off the scroll bar
(scroll-bar-mode -1)

;; Show the `*scratch*' buffer directly with splash
(setq inhibit-startup-screen t)
(setq initial-major-mode 'emacs-lisp-mode)

;; Change the initial buffer to `*Remember*' instead of `*scratch*'
(setq initial-buffer-choice 'remember-notes)
(setq remember-notes-initial-major-mode 'org-mode)
;; Disable the `C-c C-c' keybinding of `remember-notes-mode-map' to avoid
;; the conflict with `org-mode'
(with-eval-after-load 'remember
                      (define-key remember-notes-mode-map (kbd "C-c C-c") nil))

;; Prevent kill and yank commands from accessing the clipboard
(setq x-select-enable-clipboard nil)

(setq fill-column 80)

;; Zero out default splitting thresholds
(setq split-height-threshold 0
      split-width-threshold 0)

;; Backup and auto save settings
;; Credit: https://www.emacswiki.org/emacs/AutoSave
(defvar prelude-backup-dir (expand-file-name "backup/" prelude-dir))
(defvar prelude-autosave-dir (expand-file-name "autosave/" prelude-dir))
;; Place the backup files in the specified directory under `prelude-dir'
(setq backup-by-copying t  ;; do not clobber symlinks
      backup-directory-alist `((".*" . ,prelude-backup-dir))
      version-control t  ;; use versioned backups
      delete-old-versions t
      kept-new-versions 6
      kept-old-versions 2)
;; Place both auto-saved files and auto-save-list file in the same directory<commit_msg>_emacs.d/personal/10-config.el: drop `initial-buffer-choice'<commit_after>;;; ~/.emacs.d/personal/10-config.el --- Custom Emacs configurations
;;
;; -*- mode: emacs-lisp -*-
;; vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=lisp:
;;
;; Credits:
;; [1] https://github.com/wasamasa/dotemacs/blob/master/init.org
;;
;; <NAME>
;; 2016-02-24
;;

;;; Commentary:
;; Custom Emacs configurations.

;;; Code:

;; Turn off the scroll bar
(scroll-bar-mode -1)

;; Show the `*scratch*' buffer directly with splash
(setq inhibit-startup-screen t)
(setq initial-major-mode 'emacs-lisp-mode)

;; Prevent kill and yank commands from accessing the clipboard
(setq x-select-enable-clipboard nil)

(setq fill-column 80)

;; Zero out default splitting thresholds
(setq split-height-threshold 0
      split-width-threshold 0)

;; Backup and auto save settings
;; Credit: https://www.emacswiki.org/emacs/AutoSave
(defvar prelude-backup-dir (expand-file-name "backup/" prelude-dir))
(defvar prelude-autosave-dir (expand-file-name "autosave/" prelude-dir))
;; Place the backup files in the specified directory under `prelude-dir'
(setq backup-by-copying t  ;; do not clobber symlinks
      backup-directory-alist `((".*" . ,prelude-backup-dir))
      version-control t  ;; use versioned backups
      delete-old-versions t
      kept-new-versions 6
      kept-old-versions 2)
;; Place both auto-saved files and auto-save-list file in the same directory
{'fraction_non_alphanumeric': 0.14681789540012602, 'fraction_numerical': 0.014492753623188406, 'mean_word_length': 3.8179059180576633, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '1184100', 'n_tokens_mistral': 1133, 'n_tokens_neox': 1090, 'n_words': 291}