<commit_before>;;; init-local.el --- Configure default locale -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:

(setq package-archives '(("gnu"   . "http://elpa.emacs-china.org/gnu/")
                         ("melpa" . "http://elpa.emacs-china.org/melpa/")))

(global-set-key "\C-xj" 'treemacs)
(global-set-key "\M-op" 'find-file-in-project)
(global-set-key "\M-os" 'youdao-dictionary-search)
(global-set-key "\M-." 'lsp-ui-peek-find-definitions)
(global-set-key "\M-," 'lsp-ui-peek-find-references)
(global-set-key "\C-xg" 'magit)

(editorconfig-mode 1)
(undo-tree-mode 1)
(setq-default fill-column 80)
(global-display-fill-column-indicator-mode -1)

(set-frame-font "Andale Mono for Powerline 14")
(setq-default line-spacing 5)


(require 'expand-region)
(global-set-key (kbd "C-=") 'er/expand-region)
(global-set-key (kbd "C--") 'er/contract-region)


(require 'lsp-mode)
(require 'lsp-ui)
(dap-mode 1)

;; The modes below are optional

(dap-ui-mode 1)
;; enables mouse hover support
(dap-tooltip-mode 1)
;; use tooltips for mouse hover
;; if it is not enabled `dap-mode' will use the minibuffer.
(tooltip-mode 1)
;; displays floating panel with debug buttons
;; requies emacs 26+
(dap-ui-controls-mode 1)

(add-hook 'js2-mode-hook #'lsp)
(add-hook 'typescript-mode-hook #'lsp)


(add-to-list 'exec-path "/Users/ryan/.nvm/versions/node/v12.16.1/bin")
(add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory))

(delete-selection-mode 1)
(provide 'init-local)
;;; init-local.el ends here<commit_msg>conf(packages): add require-package settings<commit_after>;;; init-local.el --- Configure default locale -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:

(setq package-archives '(("gnu"   . "http://elpa.emacs-china.org/gnu/")
                         ("melpa" . "http://elpa.emacs-china.org/melpa/")))

(require-package 'treemacs)
(require-package 'find-file-in-project)
(require-package 'youdao-dictionary)
(require-package 'editorconfig)
(require-package 'undo-tree)
(require-package 'expand-region)
(require-package 'lsp-mode)
(require-package 'lsp-ui)
(require-package 'dap-mode)

(global-set-key "\C-xj" 'treemacs)
(global-set-key "\M-op" 'find-file-in-project)
(global-set-key "\M-os" 'youdao-dictionary-search)
(global-set-key "\M-." 'lsp-ui-peek-find-definitions)
(global-set-key "\M-," 'lsp-ui-peek-find-references)
(global-set-key "\C-xg" 'magit)

(editorconfig-mode 1)
(undo-tree-mode 1)
(setq-default fill-column 80)
(global-display-fill-column-indicator-mode -1)

(set-frame-font "Andale Mono for Powerline 14")
(setq-default line-spacing 5)


(require 'expand-region)
(global-set-key (kbd "C-=") 'er/expand-region)
(global-set-key (kbd "C--") 'er/contract-region)


(require 'lsp-mode)
(require 'lsp-ui)
(require 'dap-mode)
(dap-mode 1)

;; The modes below are optional

(dap-ui-mode 1)
;; enables mouse hover support
(dap-tooltip-mode 1)
;; use tooltips for mouse hover
;; if it is not enabled `dap-mode' will use the minibuffer.
(tooltip-mode 1)
;; displays floating panel with debug buttons
;; requies emacs 26+
(dap-ui-controls-mode 1)

(add-hook 'js2-mode-hook #'lsp)
(add-hook 'typescript-mode-hook #'lsp)


(add-to-list 'exec-path "/Users/ryan/.nvm/versions/node/v12.16.1/bin")
(add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory))

(delete-selection-mode 1)
(provide 'init-local)
;;; init-local.el ends here
{'fraction_non_alphanumeric': 0.19133788193414417, 'fraction_numerical': 0.013052506674577276, 'mean_word_length': 3.937042459736457, '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': '187945', 'n_tokens_mistral': 1357, 'n_tokens_neox': 1318, 'n_words': 280}