<commit_before>;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-

;; User =========================================================================

(setq user-full-name "<NAME>")

(setq user-mail-address "<EMAIL>")


;; Buffer =======================================================================

(set-themes '(doom-one doom-one-light))

(custom-set-faces
 `(lazy-highlight ((t (:background "#D23782" :foreground "#FFFFFF"))))
 `(evil-ex-search ((t (:background "#D23782" :foreground "#FFFFFF")))))

(setq doom-font (font-spec :family "SF Mono" :size 16))

(setq evil-normal-state-cursor '(box "#D23782")
      evil-insert-state-cursor '(bar "#D23782")
      evil-visual-state-cursor '(box "#D23782"))

(setq display-line-numbers-type t)

(global-visual-line-mode)

(auto-fill-mode)


;; Mappings =====================================================================

(setq doom-leader-key "§")

(setq doom-leader-alt-key "§")

(setq doom-localleader-key ",")

(map! :g "s-q" nil)

(map! :leader :g "tt" 'cycle-themes)

(map! :gn "s-0" 'doom/reset-font-size)

(map! :n "M-<tab>" 'evil-window-next)

(map! :nv ",ci" 'evilnc-comment-or-uncomment-lines)

(map! :i "M-<tab>" 'hippie-expand)

(map! :n "SPC" 'evil-forward-char)

(map! :n "To" '+treemacs/toggle :n "s-b" 'ivy-switch-buffer)

(map! :n "s-<backspace>" 'ivy-resume)

(map! :n "-" 'shell)

(map! :n "_" 'execute-extended-command)

(map! :n "s-F" '+ivy/project-search)

(map! :n "s-f" '+ivy/projectile-find-file)

(map! :n "s-p" 'doom/find-file-in-other-project)

(map! :n "!" 'projectile-run-async-shell-command-in-root)

(map! :n "+" 'magit-status)

(map! :n ",m" '+make/run)

(map! :g "M-f" 'delete-other-windows)

(map! :v "+" (lambda (begin end)
                (interactive "r")
                (align-regexp begin end "\\(\\s-*\\)=" 1 1)))

(map! :map treemacs-mode-map :gn "<escape>" '+treemacs/toggle)

(map! :map treemacs-mode-map :g "M-<tab>" 'evil-window-next)

(map! :map magit-status-mode-map :gn "<escape>" '+magit/quit)
<commit_msg>[Emacs] Added mappings for shell mode.<commit_after>;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-

;; User =========================================================================

(setq user-full-name "<NAME>")

(setq user-mail-address "<EMAIL>")


;; Buffer =======================================================================

(set-themes '(doom-one doom-one-light))

(custom-set-faces
 `(lazy-highlight ((t (:background "#D23782" :foreground "#FFFFFF"))))
 `(evil-ex-search ((t (:background "#D23782" :foreground "#FFFFFF")))))

(setq doom-font (font-spec :family "SF Mono" :size 16))

(setq evil-normal-state-cursor '(box "#D23782")
      evil-insert-state-cursor '(bar "#D23782")
      evil-visual-state-cursor '(box "#D23782"))

(setq display-line-numbers-type t)

(global-visual-line-mode)

(auto-fill-mode)


;; Mappings =====================================================================

(setq doom-leader-key "§")

(setq doom-leader-alt-key "§")

(setq doom-localleader-key ",")

(map! :g "s-q" nil)

(map! :leader :g "tt" 'cycle-themes)

(map! :gn "s-0" 'doom/reset-font-size)

(map! :n "M-<tab>" 'evil-window-next)

(map! :nv ",ci" 'evilnc-comment-or-uncomment-lines)

(map! :i "M-<tab>" 'hippie-expand)

(map! :n "SPC" 'evil-forward-char)

(map! :n "To" '+treemacs/toggle :n "s-b" 'ivy-switch-buffer)

(map! :n "s-<backspace>" 'ivy-resume)

(map! :n "-" 'shell)

(map! :n "_" 'execute-extended-command)

(map! :n "s-F" '+ivy/project-search)

(map! :n "s-f" '+ivy/projectile-find-file)

(map! :n "s-p" 'doom/find-file-in-other-project)

(map! :n "!" 'projectile-run-async-shell-command-in-root)

(map! :n "+" 'magit-status)

(map! :n ",m" '+make/run)

(map! :g "M-f" 'delete-other-windows)

(map! :v "+" (lambda (begin end)
                (interactive "r")
                (align-regexp begin end "\\(\\s-*\\)=" 1 1)))

(map! :map shell-mode-map :n "s-k" 'kill-this-buffer)

(map! :map shell-mode-map :ni "M-k" 'comint-previous-input)

(map! :map shell-mode-map :ni "M-j" 'comint-next-input)

(map! :map treemacs-mode-map :gn "<escape>" '+treemacs/toggle)

(map! :map treemacs-mode-map :g "M-<tab>" 'evil-window-next)

(map! :map magit-status-mode-map :gn "<escape>" '+magit/quit)

{'fraction_non_alphanumeric': 0.31688804554079697, 'fraction_numerical': 0.014231499051233396, 'mean_word_length': 4.277847309136421, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '1964878', 'n_tokens_mistral': 1785, 'n_tokens_neox': 1651, 'n_words': 349}