<commit_before>;;; config/default/+bindings.el -*- lexical-binding: t; -*-

;; This file defines a Spacemacs-esque keybinding scheme

;; expand-region's prompt can't tell what key contract-region is bound to, so we
;; tell it explicitly.
(setq expand-region-contract-fast-key "V")

;;
(map! [remap evil-jump-to-tag] #'projectile-find-tag
      [remap find-tag]         #'projectile-find-tag

      ;; Ensure there are no conflicts
      :nmvo doom-leader-key nil
      :nmvo doom-localleader-key nil

      ;; Swap RET/C-j in insert mode
      :i [remap newline] #'newline-and-indent
      :i "C-j" #'+default/newline

      ;; --- Global keybindings ---------------------------
      ;; Make M-x available everywhere
      :gnvime "M-x" #'execute-extended-command
      :gnvime "A-x" #'execute-extended-command

      ;; A little sandbox to run code in
      :gnvime "M-;" #'eval-expression
      :gnvime "M-:" #'doom/open-scratch-buffer

      ;; Text-scaling
      :ne "M-+"   (λ! (text-scale-set 0))
      :ne "M-="   #'text-scale-increase
      :ne "M--"   #'text-scale-decrease

      ;; Simple window/frame navigation/manipulation
      :ne "C-`"   #'+popup/toggle
      :ne "C-~"   #'+popup/raise
      :ne "M-t"   #'+workspace/new
      :ne "M-T"   #'+workspace/display
      :ne "M-w"   #'delete-window
      :ne "M-W"   #'delete-frame
      :ne "C-M-f" #'toggle-frame-fullscreen
      :ne "M-n"   #'evil-buffer-new
      :ne "M-N"   #'make-frame
      :ne "M-1"   (λ! (+workspace/switch-to 0))
      :ne "M-2"   (λ! (+workspace/switch-to 1))
      :ne "M-3"   (λ! (+workspace/switch-to 2))
      :ne "M-4"   (λ! (+workspace/switch-to 3))
      :ne "M-5"   (λ! (+workspace/switch-to 4))
      :ne "M-6"   (λ! (+workspace/switch-to 5))
      :ne "M-7"   (λ! (+workspace/switch-to 6))
      :ne "M-8"   (λ! (+workspace/switch-to 7))
      :ne "M-9"   (λ! (+workspace/switch-to 8))
      :ne "M-0"   #'+workspace/switch-to-last

      ;; Other sensible, textmate-esque global bindings
      :ne "M-r"   #'+eval/buffer
      :ne "M-R"   #'+eval/region-and-replace
      :ne "M-b"   #'+default/compile
      :ne "M-a"   #'mark-whole-buffer
      :ne "M-c"   #'evil-yank
      :ne "M-q"   (if (daemonp) #'delete-frame #'evil-quit-all)
      (:when (featurep! :completion helm)
        :ne "M-f" #'helm-swoop)
      (:when (featurep! :completion ivy)
        :ne "M-f" #'swiper)
      :n  "M-s"   #'save-buffer
      :m  "A-j"   #'+default:multi-next-line
      :m  "A-k"   #'+default:multi-previous-line
      :nv "C-SPC" #'+evil:fold-toggle
      :gnvimer "M-v" #'clipboard-yank
      ;; Easier window navigation<commit_msg>Remove many conflicting emacs-state keybinds #734<commit_after>;;; config/default/+bindings.el -*- lexical-binding: t; -*-

;; This file defines a Spacemacs-esque keybinding scheme

;; expand-region's prompt can't tell what key contract-region is bound to, so we
;; tell it explicitly.
(setq expand-region-contract-fast-key "V")

;;
(map! [remap evil-jump-to-tag] #'projectile-find-tag
      [remap find-tag]         #'projectile-find-tag

      ;; Ensure there are no conflicts
      :nmvo doom-leader-key nil
      :nmvo doom-localleader-key nil

      ;; Swap RET/C-j in insert mode
      :i [remap newline] #'newline-and-indent
      :i "C-j" #'+default/newline

      ;; --- Global keybindings ---------------------------
      ;; Make M-x available everywhere
      :gnvime "M-x" #'execute-extended-command
      :gnvime "A-x" #'execute-extended-command

      ;; A little sandbox to run code in
      :gnvime "M-;" #'eval-expression

      ;; Text-scaling
      :n "M-+"   (λ! (text-scale-set 0))
      :n "M-="   #'text-scale-increase
      :n "M--"   #'text-scale-decrease

      ;; Simple window/frame navigation/manipulation
      :n "C-`"   #'+popup/toggle
      :n "C-~"   #'+popup/raise
      :n "M-t"   #'+workspace/new
      :n "M-T"   #'+workspace/display
      :n "M-w"   #'delete-window
      :n "M-W"   #'delete-frame
      :n "C-M-f" #'toggle-frame-fullscreen
      :n "M-n"   #'evil-buffer-new
      :n "M-N"   #'make-frame
      :n "M-1"   (λ! (+workspace/switch-to 0))
      :n "M-2"   (λ! (+workspace/switch-to 1))
      :n "M-3"   (λ! (+workspace/switch-to 2))
      :n "M-4"   (λ! (+workspace/switch-to 3))
      :n "M-5"   (λ! (+workspace/switch-to 4))
      :n "M-6"   (λ! (+workspace/switch-to 5))
      :n "M-7"   (λ! (+workspace/switch-to 6))
      :n "M-8"   (λ! (+workspace/switch-to 7))
      :n "M-9"   (λ! (+workspace/switch-to 8))
      :n "M-0"   #'+workspace/switch-to-last

      ;; Other sensible, textmate-esque global bindings
      :n "M-r"   #'+eval/buffer
      :n "M-R"   #'+eval/region-and-replace
      :n "M-b"   #'+default/compile
      :n "M-a"   #'mark-whole-buffer
      :n "M-c"   #'evil-yank
      :n "M-q"   (if (daemonp) #'delete-frame #'evil-quit-all)
      (:when (featurep! :completion helm)
        :n "M-f" #'helm-swoop)
      (:when (featurep! :completion ivy)
        :n "M-f" #'swiper)
      :n  "M-s"   #'save-buffer
      :m  "A-j"   #'+default:multi-next-line
      :m  "A-k"   #'+default:multi-previous-line
      :nv "C-SPC" #'+evil:fold-toggle
      :gnvimr "M-v" #'clipboard-yank
      ;; Easier window navigation
{'fraction_non_alphanumeric': 0.19670245398773006, 'fraction_numerical': 0.008243865030674846, 'mean_word_length': 2.123952095808383, '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': '7641346', 'n_tokens_mistral': 2143, 'n_tokens_neox': 2013, 'n_words': 465}