<commit_before>;; emacs configuration

;; disable menu bar and tool bar
;; (if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))

;; set cursor type
(setq-default cursor-type 'bar)

;; disable startup screen, set column number, etc
(setq-default inhibit-startup-screen t
	      column-number-mode t
	      line-number-mode t
	      fill-column 80
	      use-dialog-box nil)

;; tabs to space
(setq-default indent-tabs-mode nil)
(setq-default standard-indent 4)
(setq default-tab-width 4)
(setq-default c-basic-offset 4)

;; display time
(display-time-mode)

;; display battery stats
(display-battery-mode 1)

;; line number
(setq linum-format "%4d \u2502 ")
(global-linum-mode t)

;; save point position between sessions
(require 'saveplace)
(setq-default save-place t)
(setq save-place-file (expand-file-name ".places" user-emacs-directory))

;; highlight current line
(global-hl-line-mode t)

; start emacs with empty file
(setq inhibit-splash-screen t)
(switch-to-buffer "**")

; completion splits horizontally
(setq split-width-threshold nil)

; ido-mode
(require 'ido)
(ido-mode t)

; winner mode
(when (fboundp 'winner-mode)
  (winner-mode 1))

; windmove
(windmove-default-keybindings)

; CamelCase distinction
(global-subword-mode t)

; yes/no to y/n
(fset 'yes-or-no-p 'y-or-n-p)

; read only prompt
(setq comint-prompt-read-only t)

; add homebrew's path
(add-to-list 'exec-path "/usr/local/bin")

; show matching parenthesis
(show-paren-mode 1)

;; backup
(setq backup-directory-alist '(("." . "~/.emacs.d/backups")))
(setq delete-old-versions -1)
(setq version-control t)
(setq vc-make-backup-files t)
(setq auto-save-file-name-transforms '((".*" "~/.emacs.d/auto-save-list/" t)))

;; set font
(set-frame-font "Inconsolata-14")

(define-minor-mode sensitive-mode
  "For sensitive files like password lists.
It disables backup creation and auto saving.
<commit_msg>Fixed Emacs font size<commit_after>;; emacs configuration

;; disable menu bar and tool bar
;; (if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))

;; set cursor type
(setq-default cursor-type 'bar)

;; disable startup screen, set column number, etc
(setq-default inhibit-startup-screen t
	      column-number-mode t
	      line-number-mode t
	      fill-column 80
	      use-dialog-box nil)

;; tabs to space
(setq-default indent-tabs-mode nil)
(setq-default standard-indent 4)
(setq default-tab-width 4)
(setq-default c-basic-offset 4)

;; display time
(display-time-mode)

;; display battery stats
(display-battery-mode 1)

;; line number
(setq linum-format "%4d \u2502 ")
(global-linum-mode t)

;; save point position between sessions
(require 'saveplace)
(setq-default save-place t)
(setq save-place-file (expand-file-name ".places" user-emacs-directory))

;; highlight current line
(global-hl-line-mode t)

; start emacs with empty file
(setq inhibit-splash-screen t)
(switch-to-buffer "**")

; completion splits horizontally
(setq split-width-threshold nil)

; ido-mode
(require 'ido)
(ido-mode t)

; winner mode
(when (fboundp 'winner-mode)
  (winner-mode 1))

; windmove
(windmove-default-keybindings)

; CamelCase distinction
(global-subword-mode t)

; yes/no to y/n
(fset 'yes-or-no-p 'y-or-n-p)

; read only prompt
(setq comint-prompt-read-only t)

; add homebrew's path
(add-to-list 'exec-path "/usr/local/bin")

; show matching parenthesis
(show-paren-mode 1)

;; backup
(setq backup-directory-alist '(("." . "~/.emacs.d/backups")))
(setq delete-old-versions -1)
(setq version-control t)
(setq vc-make-backup-files t)
(setq auto-save-file-name-transforms '((".*" "~/.emacs.d/auto-save-list/" t)))

;; set font
(set-frame-font "Inconsolata-12")

(define-minor-mode sensitive-mode
  "For sensitive files like password lists.
It disables backup creation and auto saving.

{'fraction_non_alphanumeric': 0.152250885179565, 'fraction_numerical': 0.009610520991401113, 'mean_word_length': 3.956140350877193, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5064824', 'n_tokens_mistral': 1497, 'n_tokens_neox': 1444, 'n_words': 385}