<commit_before>;; -*- coding: utf-8; mode: emacs-lisp -*-
;; Emacs customization file by <NAME>

(package-initialize)


;; ==============================================================================
;; Generic config
;; ------------------------------------------------------------------------------

(setq usr-prefix
      (cond ((eq system-type 'darwin) "/usr/local")
            ((eq system-type 'linux) "/usr")
            (t "/usr")))

(setq rc-dir "~/.emacs.d/rc/")

(setq custom-file (concat rc-dir "custom.el"))
(load custom-file 'no-error)

;; Basic Common Lisp in Emacs Lisp
(eval-when-compile (require 'cl))

(defun configure (path)
  (load-file (concat rc-dir path ".el")))


;; ==============================================================================
;; Packages
;; ------------------------------------------------------------------------------

;; Elpa repositories

;; (require 'package)

(when (< emacs-major-version 24)
  (add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/")))

(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
;(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
(add-to-list 'package-archives '("marmalade" . "https://marmalade-repo.org/packages/") t)

(unless package-archive-contents
  (package-refresh-contents))

;; New on Emacs 25 - install packages based on package-selected-packages list:
;; http://endlessparentheses.com/new-in-package-el-in-emacs-25-1-user-selected-packages.html
(package-install-selected-packages)


;; ==============================================================================
;; Lazy load packages with use-package
;; ------------------------------------------------------------------------------

;; Ensure a package is installed
(defun ensure-package-installed (package)
  (unless (package-installed-p package)
    (progn (message "Installing package: %s" package)
	   (package-refresh-contents)
	   (package-install package))))

;; Use-package is a macro to lazily initialize, require and configure packages
;; https://github.com/jwiegley/use-package
(ensure-package-installed 'use-package)


;; ==============================================================================
;; Site lisp<commit_msg>Remove marmalade repo<commit_after>;; -*- coding: utf-8; mode: emacs-lisp -*-
;; Emacs customization file by <NAME>

(package-initialize)


;; ==============================================================================
;; Generic config
;; ------------------------------------------------------------------------------

(setq usr-prefix
      (cond ((eq system-type 'darwin) "/usr/local")
            ((eq system-type 'linux) "/usr")
            (t "/usr")))

(setq rc-dir "~/.emacs.d/rc/")

(setq custom-file (concat rc-dir "custom.el"))
(load custom-file 'no-error)

;; Basic Common Lisp in Emacs Lisp
(eval-when-compile (require 'cl))

(defun configure (path)
  (load-file (concat rc-dir path ".el")))


;; ==============================================================================
;; Packages
;; ------------------------------------------------------------------------------

;; Elpa repositories

;; (require 'package)

(when (< emacs-major-version 24)
  (add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/")))

(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
;(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)

(unless package-archive-contents
  (package-refresh-contents))

;; New on Emacs 25 - install packages based on package-selected-packages list:
;; http://endlessparentheses.com/new-in-package-el-in-emacs-25-1-user-selected-packages.html
(package-install-selected-packages)


;; ==============================================================================
;; Lazy load packages with use-package
;; ------------------------------------------------------------------------------

;; Ensure a package is installed
(defun ensure-package-installed (package)
  (unless (package-installed-p package)
    (progn (message "Installing package: %s" package)
	   (package-refresh-contents)
	   (package-install package))))

;; Use-package is a macro to lazily initialize, require and configure packages
;; https://github.com/jwiegley/use-package
(ensure-package-installed 'use-package)


;; ==============================================================================
;; Site lisp
{'fraction_non_alphanumeric': 0.3780323450134771, 'fraction_numerical': 0.0035938903863432167, 'mean_word_length': 2.802732707087959, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 9, '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': '1000629', 'n_tokens_mistral': 1247, 'n_tokens_neox': 1164, 'n_words': 270}