<commit_before>;;; init.el -*- lexical-binding: t; -*-

;; increase garbage collection threshold
(setq gc-cons-threshold 50000000)

;; do not compact font caches during GC.
(setq inhibit-compacting-font-caches t)

;; enable use-package
(require 'package)
(setq package-enable-at-startup nil)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))
(package-initialize)

(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))

(eval-when-compile
  (require 'use-package))

;; disable distractions
(menu-bar-mode -1)
(toggle-scroll-bar -1)
(tool-bar-mode -1)
(blink-cursor-mode -1)

;; enable line and column eyecandy
(global-hl-line-mode +1)
(line-number-mode +1)
(global-display-line-numbers-mode 1)
(column-number-mode t)
(size-indication-mode t)

;; disable startup screen
(setq inhibit-startup-screen t)

;; disable confirmation dialogues
(setq use-dialog-box nil)

;; set fonts
(set-frame-font (font-spec :family "Hack" :size 14) nil t)

;; packages
(use-package buffer-move
  :ensure t)

(use-package company
  :ensure t
  :diminish company-mode
  :config
  (global-company-mode))

(use-package counsel
  :ensure t
  :diminish counsel-mode)

(use-package dired
  :after general
  :bind (:map evil-normal-state-map
	      ("-" . #'dired-jump)))

(use-package doom-modeline
  :ensure t
  :config
  (doom-modeline-mode 1)
  (setq doom-modeline-buffer-file-name-style 'relative-from-project))

(use-package doom-themes
  :ensure t
  :config
  (load-theme 'doom-dracula t))

(use-package evil
  :ensure t
  :init
  (setq evil-want-integration t
	evil-want-keybinding nil
	evil-collection-company-use-tng nil
	evil-collection-setup-minibuffer t)
  :config
  (evil-mode 1))

(use-package evil-collection
  :after evil
  :ensure t
  :config
  (evil-collection-init))

(use-package evil-numbers
  :ensure t
  :bind (("C-a" . #'evil-numbers/inc-at-pt)
	 ("C-S-a" . #'evil-numbers/dec-at-pt)))

(use-package evil-surround
  :ensure t
  :config
  (global-evil-surround-mode 1))

(use-package flycheck
  :ensure t
  :diminish flycheck-mode
  :config
  (global-flycheck-mode))

(use-package general
  :ensure t
  :config
  (general-evil-setup t))

(use-package ivy
  :ensure t
  :config
  (ivy-mode 1))

(use-package lispyville
  :ensure t
  :hook ((common-lisp-mode . lispyville-mode)
         (emacs-lisp-mode . lispyville-mode)
         (scheme-mode . lispyville-mode)
         (racket-mode . lispyville-mode)
         (hy-mode . lispyville-mode)
         (lfe-mode . lispyville-mode)
         (clojure-mode . lispyville-mode))
  :when (display-graphic-p) ;; lispyville breaks terminal Emacs
  :config
  (lispyville-set-key-theme
   `(additional
     additional-insert
     (additional-movement normal visual motion)
     (additional-wrap normal insert)
     c-w
     (commentary normal visual)
     (escape insert emacs)
     (operators normal)
     prettify
     slurp/barf-cp)))

(use-package projectile
  :ensure t
  :diminish projectile-mode
  :config
  (projectile-mode +1))

(use-package smartparens
  :ensure t
  :hook ((prog-mode . smartparens-mode)
	 (text-mode . smartparens-mode)))

(use-package which-key
  :ensure t
  :diminish which-key-mode
  :config
  (which-key-mode +1))

;; keybindings
(general-mmap
 "C-h" #'evil-window-left
 "C-j" #'evil-window-down
 "C-k" #'evil-window-up
 "C-l" #'evil-window-right

 "C-h" #'buf-move-left
 "C-j" #'buf-move-down
 "C-k" #'buf-move-up
 "C-l" #'buf-move-right)

(general-imap
 "C-h" #'backward-char
 "C-j" #'next-line
 "C-k" #'previous-line
 "C-l" #'forward-char)

(general-create-definer leader-map
  :prefix "SPC"
  :states '(normal visual))

(leader-map
  "/" #'counsel-rg
  "SPC" #'counsel-find-file)

;; set custom variables somewhere else
(setq custom-file "~/.emacs.d/custom.el")
(load custom-file)

;;; init.el ends here<commit_msg>emacs: Added counsel-projectile<commit_after>;;; init.el -*- lexical-binding: t; -*-

;; increase garbage collection threshold
(setq gc-cons-threshold 50000000)

;; do not compact font caches during GC.
(setq inhibit-compacting-font-caches t)

;; enable use-package
(require 'package)
(setq package-enable-at-startup nil)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))
(package-initialize)

(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))

(eval-when-compile
  (require 'use-package))

;; disable distractions
(menu-bar-mode -1)
(toggle-scroll-bar -1)
(tool-bar-mode -1)
(blink-cursor-mode -1)

;; enable line and column eyecandy
(global-hl-line-mode +1)
(line-number-mode +1)
(global-display-line-numbers-mode 1)
(column-number-mode t)
(size-indication-mode t)

;; disable startup screen
(setq inhibit-startup-screen t)

;; disable confirmation dialogues
(setq use-dialog-box nil)

;; set fonts
(set-frame-font (font-spec :family "Hack" :size 14) nil t)

;; packages
(use-package buffer-move
  :ensure t)

(use-package company
  :ensure t
  :diminish company-mode
  :config
  (global-company-mode))

(use-package counsel
  :ensure t
  :diminish counsel-mode)

(use-package counsel-projectile
  :ensure t
  :after counsel)

(use-package dired
  :after general
  :bind (:map evil-normal-state-map
	      ("-" . #'dired-jump)))

(use-package doom-modeline
  :ensure t
  :config
  (doom-modeline-mode 1)
  (setq doom-modeline-buffer-file-name-style 'relative-from-project))

(use-package doom-themes
  :ensure t
  :config
  (load-theme 'doom-dracula t))

(use-package evil
  :ensure t
  :init
  (setq evil-want-integration t
	evil-want-keybinding nil
	evil-collection-company-use-tng nil
	evil-collection-setup-minibuffer t)
  :config
  (evil-mode 1))

(use-package evil-collection
  :after evil
  :ensure t
  :config
  (evil-collection-init))

(use-package evil-numbers
  :ensure t
  :bind (("C-a" . #'evil-numbers/inc-at-pt)
	 ("C-S-a" . #'evil-numbers/dec-at-pt)))

(use-package evil-surround
  :ensure t
  :config
  (global-evil-surround-mode 1))

(use-package flycheck
  :ensure t
  :diminish flycheck-mode
  :config
  (global-flycheck-mode))

(use-package general
  :ensure t
  :config
  (general-evil-setup t))

(use-package ivy
  :ensure t
  :config
  (ivy-mode 1))

(use-package lispyville
  :ensure t
  :hook ((common-lisp-mode . lispyville-mode)
         (emacs-lisp-mode . lispyville-mode)
         (scheme-mode . lispyville-mode)
         (racket-mode . lispyville-mode)
         (hy-mode . lispyville-mode)
         (lfe-mode . lispyville-mode)
         (clojure-mode . lispyville-mode))
  :when (display-graphic-p) ;; lispyville breaks terminal Emacs
  :config
  (lispyville-set-key-theme
   `(additional
     additional-insert
     (additional-movement normal visual motion)
     (additional-wrap normal insert)
     c-w
     (commentary normal visual)
     (escape insert emacs)
     (operators normal)
     prettify
     slurp/barf-cp)))

(use-package projectile
  :ensure t
  :diminish projectile-mode
  :config
  (projectile-mode +1))

(use-package smartparens
  :ensure t
  :hook ((prog-mode . smartparens-mode)
	 (text-mode . smartparens-mode)))

(use-package which-key
  :ensure t
  :diminish which-key-mode
  :config
  (which-key-mode +1))

;; keybindings
(general-mmap
 "C-h" #'evil-window-left
 "C-j" #'evil-window-down
 "C-k" #'evil-window-up
 "C-l" #'evil-window-right

 "C-h" #'buf-move-left
 "C-j" #'buf-move-down
 "C-k" #'buf-move-up
 "C-l" #'buf-move-right)

(general-imap
 "C-h" #'backward-char
 "C-j" #'next-line
 "C-k" #'previous-line
 "C-l" #'forward-char)

(general-create-definer leader-map
  :prefix "SPC"
  :states '(normal visual))

(leader-map
  "/" #'counsel-projectile-rg
  "SPC" #'counsel-projectile-find-file
  ":" #'counsel-M-x)

;; set custom variables somewhere else
(setq custom-file "~/.emacs.d/custom.el")
(load custom-file)

;;; init.el ends here
{'fraction_non_alphanumeric': 0.15659031167855803, 'fraction_numerical': 0.005757917136062086, 'mean_word_length': 3.392523364485981, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '6501756', 'n_tokens_mistral': 3171, 'n_tokens_neox': 3024, 'n_words': 660}