<commit_before>;;; init.el --- Simple Emacs configuration

;;; Commentary:

;;; Code:

;; Package Management

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

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

(eval-when-compile
  (require 'use-package))
(require 'diminish)
(require 'bind-key)

(use-package exec-path-from-shell
  :ensure t
  :config
  (exec-path-from-shell-initialize))

(use-package evil
  :ensure t
  :defer t
  :bind ("C-c e" . evil-mode))

(use-package counsel
  :ensure t
  :demand
  :diminish ivy-mode
  :config
  (ivy-mode t)
  (setq ivy-use-virtual-buffers t
        ivy-display-style "fancy"))

(use-package swiper
  :ensure t
  :bind (("C-s"       . swiper)
	 ("C-r"       . swiper)
	 ("C-c s b"   . swiper-all)
	 ("C-c s r"   . swiper-query-replace)
	 ("C-c s R"   . swiper-all-query-replace)))

(use-package counsel-projectile
  :ensure t
  :defer t
  :bind (("C-c p SPC" . counsel-projectile)
	 ("C-c p p"   . counsel-projectile-switch-project)
	 ("C-c p f"   . counsel-projectile-find-file)
	 ("C-c p b"   . counsel-projectile-switch-to-buffer)
	 ("C-c p s s" . counsel-projectile-ag)
	 ("C-c p d"   . counsel-projectile-find-dir))
  :config
  (counsel-projectile-on))

(use-package python-mode
  :ensure t
  :mode "\\.py\\'"
  :interpreter "Python")

(use-package php-mode
  :ensure t
  :mode "\\.php\\'"
  :interpreter "php")

(use-package scala-mode
  :ensure t
  :mode "\\.scala\\'"
  :interpreter "Scala")

(use-package ensime
  :ensure t
  :pin melpa-stable)

(use-package vimish-fold
  :ensure t
  :defer t)

(use-package which-key
  :ensure t
  :diminish which-key-mode
  :init (setq which-key-idle-delay 1.5)
  :config
  (which-key-mode)
  (which-key-setup-side-window-bottom)
  (which-key-declare-prefixes
    "C-c o" "org"
    "C-c p" "projectile"
    "C-c s" "swiper"))

(use-package yaml-mode
  :ensure t
  :mode "\\.ya?ml\\'"
  :interpreter "YAML")

(use-package flycheck
  :ensure t
  :diminish flycheck-mode
  :config
  (global-flycheck-mode)
  (setq flycheck-emacs-lisp-load-path 'inherit)
  (progn
    (add-to-list 'flycheck-disabled-checkers 'python-flake8)
    (add-hook 'python-mode-hook (lambda () (flycheck-select-checker 'python-pylint)))
    ;; Dirty hack to get around starscream pylintrc colour code escapes
    ;; Copy repo pylintrc file to tmp and change:
    ;;   output-format=colorized -> output-format=parseable
    ;; module: `starscream_list` breaks flycheck, remove from pylintrc
    (setq flycheck-pylintrc "tmp/pylintrc")))

(use-package flymake
  :disabled t)

(use-package org
  :ensure org-plus-contrib
  :mode ("\\.org\\'" . org-mode)<commit_msg>Update pylint problem<commit_after>;;; init.el --- Simple Emacs configuration

;;; Commentary:

;;; Code:

;; Package Management

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

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

(eval-when-compile
  (require 'use-package))
(require 'diminish)
(require 'bind-key)

(use-package exec-path-from-shell
  :ensure t
  :config
  (exec-path-from-shell-initialize))

(use-package evil
  :ensure t
  :defer t
  :bind ("C-c e" . evil-mode))

(use-package counsel
  :ensure t
  :demand
  :diminish ivy-mode
  :config
  (ivy-mode t)
  (setq ivy-use-virtual-buffers t
        ivy-display-style "fancy"))

(use-package swiper
  :ensure t
  :bind (("C-s"       . swiper)
	 ("C-r"       . swiper)
	 ("C-c s b"   . swiper-all)
	 ("C-c s r"   . swiper-query-replace)
	 ("C-c s R"   . swiper-all-query-replace)))

(use-package counsel-projectile
  :ensure t
  :defer t
  :bind (("C-c p SPC" . counsel-projectile)
	 ("C-c p p"   . counsel-projectile-switch-project)
	 ("C-c p f"   . counsel-projectile-find-file)
	 ("C-c p b"   . counsel-projectile-switch-to-buffer)
	 ("C-c p s s" . counsel-projectile-ag)
	 ("C-c p d"   . counsel-projectile-find-dir))
  :config
  (counsel-projectile-on))

(use-package python-mode
  :ensure t
  :mode "\\.py\\'"
  :interpreter "Python")

(use-package php-mode
  :ensure t
  :mode "\\.php\\'"
  :interpreter "php")

(use-package scala-mode
  :ensure t
  :mode "\\.scala\\'"
  :interpreter "Scala")

(use-package ensime
  :ensure t
  :pin melpa-stable)

(use-package vimish-fold
  :ensure t
  :defer t)

(use-package which-key
  :ensure t
  :diminish which-key-mode
  :init (setq which-key-idle-delay 1.5)
  :config
  (which-key-mode)
  (which-key-setup-side-window-bottom)
  (which-key-declare-prefixes
    "C-c o" "org"
    "C-c p" "projectile"
    "C-c s" "swiper"))

(use-package yaml-mode
  :ensure t
  :mode "\\.ya?ml\\'"
  :interpreter "YAML")

(use-package flycheck
  :ensure t
  :diminish flycheck-mode
  :config
  (global-flycheck-mode)
  (setq flycheck-emacs-lisp-load-path 'inherit)
  (progn
    (add-to-list 'flycheck-disabled-checkers 'python-flake8)
    (add-hook 'python-mode-hook (lambda () (flycheck-select-checker 'python-pylint)))
    ;; module: `starscream_list` breaks flycheck, remove from pylintrc
    ;; Try setting python interpretter to virtualenv
    (setq flycheck-pylintrc "tmp/pylintrc")))

(use-package flymake
  :disabled t)

(use-package org
  :ensure org-plus-contrib
  :mode ("\\.org\\'" . org-mode)
{'fraction_non_alphanumeric': 0.17277136644923902, 'fraction_numerical': 0.0010035122930255895, 'mean_word_length': 3.0107310529845743, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '472295', 'n_tokens_mistral': 2360, 'n_tokens_neox': 2310, 'n_words': 503}