<commit_before>; Setup path for custom config files, then load those configs.
(add-to-list 'load-path (expand-file-name "config" user-emacs-directory))
(require 'package-config)
(require 'powerline-config)

;;;;;;;;;;;;;;;
; Magit Stuff ;
;;;;;;;;;;;;;;;
; Shut magit up.
(setq magit-last-seen-setup-instructions "1.4.0")


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Anzu is fun - displays current & total matches by highlighting. ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; (anzu-mode +1)
(global-anzu-mode +1)


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Minimap mode: Because it turns out sublimity sucks. ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;(minimap-mode t)
;(minimap-create)


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Making Emacs not suck. A work-in-progress. ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; No emacs, windows encoding is never ok.
(setq-default default-buffer-file-coding-system 'utf-8-unix)
(set-default-coding-systems 'utf-8-unix)
(prefer-coding-system 'utf-8-unix)
; Ok, so that's a bit of suspenders-and-belting. But I *really* don't want to
; deal with a whitespace divergence on files ever ever.

; Basic editor functionality. Includes, but not limited to, not inserting tab literals.
;(setq tab-width )

; ain't no reason for that blasted splash screen
(setq inhibit-splash-screen t)

; get rid of that awful tool bar... the menu bar can be similarly disabled but isn't nearly so bad
(tool-bar-mode -1)

; because the system bell is a good idea, said no-one ever.
(setq ring-bell-function nil)

; Start off in linum-relative and column-number modes.
; TODO: toggle for relative v absolute
(linum-relative-mode t)

; Don't do that freaking line wrap thing.
(setq-default truncate-lines t)

; Scrollbars are ugly son.
; supposedly this errors out on terminal mode, so guard with a when
(when (display-graphic-p) (set-scroll-bar-mode nil))


; Emacs set these based on stuff.
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(custom-safe-themes
   (quote
    ("0ec59d997a305e938d9ec8f63263a8fc12e17990aafc36ff3aff9bc5c5a202f0" "<KEY>" "d677ef584c6dfc0697901a44b885cc18e206f05114c8a3b7fde674fce6180879" "<KEY>" "a8245b7cc985a0610d71f9852e9f2767ad1b852c2bdea6f4aadc12cce9c4d6d0" "<KEY>" "118717ce0a2645a0cf240b044999f964577ee10137b1f992b09a317d5073c02d" "f5eb916f6bd4e743206913e6f28051249de8ccfd070eae47b5bde31ee813d55f" default)))
 '(minimap-window-location (quote right)))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; A bunch of theme stuff, and then other appearance stuff. ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Make emacs look less... well, emacs-y
;
; Zenburn for emacs: https://github.com/bbatsov/zenburn-emacs
; (load-theme 'zenburn t)
; (enable-theme 'zenburn)

; Start in /d/devel. I hope.
;(cd "d:/devel/")

; If you ever want to waste an afternoon, checkout
; http://emacsthemes.com/index/1.html

; Ample's pretty darned nice.
(load-theme 'ample t t)
(enable-theme 'ample)
; (load-theme 'ample-flat t t)
; (load-theme 'ample-light t t)

; (load-theme 'warm-night)

; Unofficial solarized port: https://github.com/bbatsov/solarized-emacs
; (load-theme 'solarized-dark)
; (load-theme 'solarized-light)

; There's also an official port at https://github.com/sellout/emacs-color-theme-solarized
; with ties to the orginal project.

; Monokai by https://github.com/oneKelvinSmith/monokai-emacs
; (load-theme 'monokai t)

; Org-mode theme. Now figure out how to swap themes on mode-switch.
; Repo is https://github.com/fniessen/emacs-leuven-theme
; (load-theme 'leuven t)

; One version of darcula is at https://github.com/fommil/darcula-theme-emacs
; (require 'darcula-theme)
; It's not clear to me if this is the package available on melpa, but I don't think it
; is. To use that one, instead run
; (load-theme 'darcula)<commit_msg>Make base directory OS-aware.<commit_after>; Setup path for custom config files, then load those configs.
(add-to-list 'load-path (expand-file-name "config" user-emacs-directory))
(require 'package-config)
(require 'powerline-config)

;;;;;;;;;;;;;;;
; Magit Stuff ;
;;;;;;;;;;;;;;;
; Shut magit up.
(setq magit-last-seen-setup-instructions "1.4.0")


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Anzu is fun - displays current & total matches by highlighting. ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; (anzu-mode +1)
(global-anzu-mode +1)


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Minimap mode: Because it turns out sublimity sucks. ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;(minimap-mode t)
;(minimap-create)


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Making Emacs not suck. A work-in-progress. ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; No emacs, windows encoding is never ok.
(setq-default default-buffer-file-coding-system 'utf-8-unix)
(set-default-coding-systems 'utf-8-unix)
(prefer-coding-system 'utf-8-unix)
; Ok, so that's a bit of suspenders-and-belting. But I *really* don't want to
; deal with a whitespace divergence on files ever ever.

; Basic editor functionality. Includes, but not limited to, not inserting tab literals.
;(setq tab-width )

; ain't no reason for that blasted splash screen
(setq inhibit-splash-screen t)

; get rid of that awful tool bar... the menu bar can be similarly disabled but isn't nearly so bad
(tool-bar-mode -1)

; because the system bell is a good idea, said no-one ever.
(setq ring-bell-function nil)

; Start off in linum-relative and column-number modes.
; TODO: toggle for relative v absolute
(linum-relative-mode t)

; Don't do that freaking line wrap thing.
(setq-default truncate-lines t)

; Scrollbars are ugly son.
; supposedly this errors out on terminal mode, so guard with a when
(when (display-graphic-p) (set-scroll-bar-mode nil))

; OS aware base directory.
(if (eq system-type 'windows-nt)
    (cd "d:/devel/")
  (cd "~/devel/"))

; Emacs set these based on stuff.
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(custom-safe-themes
   (quote
    ("0ec59d997a305e938d9ec8f63263a8fc12e17990aafc36ff3aff9bc5c5a202f0" "196cc00960232cfc7e74f4e95a94a5977cb16fd28ba7282195338f68c84058ec" "d677ef584c6dfc0697901a44b885cc18e206f05114c8a3b7fde674fce6180879" "<KEY>" "a8245b7cc985a0610d71f9852e9f2767ad1b852c2bdea6f4aadc12cce9c4d6d0" "<KEY>" "<KEY>" "<KEY>" default)))
 '(minimap-window-location (quote right)))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; A bunch of theme stuff, and then other appearance stuff. ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Make emacs look less... well, emacs-y
;
; Zenburn for emacs: https://github.com/bbatsov/zenburn-emacs
; (load-theme 'zenburn t)
; (enable-theme 'zenburn)

; If you ever want to waste an afternoon, checkout
; http://emacsthemes.com/index/1.html

; Ample's pretty darned nice.
(load-theme 'ample t t)
(enable-theme 'ample)
; (load-theme 'ample-flat t t)
; (load-theme 'ample-light t t)

; (load-theme 'warm-night)

; Unofficial solarized port: https://github.com/bbatsov/solarized-emacs
; (load-theme 'solarized-dark)
; (load-theme 'solarized-light)

; There's also an official port at https://github.com/sellout/emacs-color-theme-solarized
; with ties to the orginal project.

; Monokai by https://github.com/oneKelvinSmith/monokai-emacs
; (load-theme 'monokai t)

; Org-mode theme. Now figure out how to swap themes on mode-switch.
; Repo is https://github.com/fniessen/emacs-leuven-theme
; (load-theme 'leuven t)

; One version of darcula is at https://github.com/fommil/darcula-theme-emacs
; (require 'darcula-theme)
; It's not clear to me if this is the package available on melpa, but I don't think it
; is. To use that one, instead run
; (load-theme 'darcula)
{'fraction_non_alphanumeric': 0.2134251290877797, 'fraction_numerical': 0.04348823866896156, 'mean_word_length': 4.830100334448161, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 12, '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': '3574515', 'n_tokens_mistral': 3517, 'n_tokens_neox': 3021, 'n_words': 885}