<commit_before>;;; Genral settings for emacs

;; tabs to spaces
(setq-default indent-tabs-mode nil)
(setq tab-width 2)

;;undo-tree global
(global-undo-tree-mode 1)

;;Fix the scrolling to keep point in the center:
(setq scroll-conservatively 10000
      scroll-preserve-screen-position t)

;;Make tab key do indent first then completion.
(setq-default tab-always-indent 'complete)

;;Relevant Apropos
(setq apropos-sort-by-scores t)

;; KEYMAPS

;; Map M-o to switch windows
(global-set-key (kbd "M-o") 'other-window)
(global-set-key (kbd "M-O") 'universal-argument)

;; Maps M-i to imenu
(global-set-key (kbd "M-i") 'imenu)

;;----------------------


;; GLOBAL enabled modes and hooks
;;(require 'flycheck)

(add-hook 'after-init-hook 'global-company-mode)
(add-hook 'after-init-hook 'global-flycheck-mode)
(add-hook 'prog-mode-hook 'vi-tilde-fringe-mode)
(add-hook 'prog-mode-hook 'flyspell-prog-mode)
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
;;----------------------

;; CUSTOM MAJOR MODES

;; adds js2-mode as the major mode for javscript shit.
;;(add-to-list 'auto-mode-alist '("\\.jsx?$" . web-mode))

(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
(add-to-list 'interpreter-mode-alist '("node" . js2-mode))

(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))

;;-------------------

;; Font settings
(if (eq system-type 'darwin)
    ;;(set-face-attribute 'default nil :font "Operator Mono-13")
    ;;(set-face-attribute 'default nil :font "DejaVu Sans Mono")
    (set-face-attribute 'default nil :font "Hack-12"))

;; Removes the side-scrollbars from emacs
(scroll-bar-mode -1)

;; Indent settings

(setq web-mode-markup-indent-offset 2
        web-mode-css-indent-offset 2
        web-mode-code-indent-offset 2) ; web-mode
(setq js-indent-level 2)
(setq js2-basic-offset 2) ; js2-mode
(setq css-indent-offset 2) ; css-mode
;;----------------------


(provide 'general)<commit_msg>removes the global company hook from general.el file<commit_after>;;; Genral settings for emacs

;; tabs to spaces
(setq-default indent-tabs-mode nil)
(setq tab-width 2)

;;undo-tree global
(global-undo-tree-mode 1)

;;Fix the scrolling to keep point in the center:
(setq scroll-conservatively 10000
      scroll-preserve-screen-position t)

;;Make tab key do indent first then completion.
(setq-default tab-always-indent 'complete)

;;Relevant Apropos
(setq apropos-sort-by-scores t)

;; KEYMAPS


;; Map M-o to switch windows
(global-set-key (kbd "M-o") 'other-window)
(global-set-key (kbd "M-O") 'universal-argument)

;; Maps M-i to imenu
(global-set-key (kbd "M-i") 'imenu)

;;----------------------


;; GLOBAL enabled modes and hooks
;;(require 'flycheck)

;;(add-hook 'after-init-hook 'global-company-mode)
(add-hook 'after-init-hook 'global-flycheck-mode)
(add-hook 'prog-mode-hook 'vi-tilde-fringe-mode)
(add-hook 'prog-mode-hook 'flyspell-prog-mode)
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
;;----------------------

;; CUSTOM MAJOR MODES

;; adds js2-mode as the major mode for javscript shit.
;;(add-to-list 'auto-mode-alist '("\\.jsx?$" . web-mode))

(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
(add-to-list 'interpreter-mode-alist '("node" . js2-mode))

(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))

;;-------------------

;; Font settings
(if (eq system-type 'darwin)
    ;;(set-face-attribute 'default nil :font "Operator Mono-13")
    ;;(set-face-attribute 'default nil :font "DejaVu Sans Mono")
    (set-face-attribute 'default nil :font "Hack-12"))

;; Removes the side-scrollbars from emacs
(scroll-bar-mode -1)

(provide 'general)
{'fraction_non_alphanumeric': 0.20703991130820398, 'fraction_numerical': 0.010532150776053215, 'mean_word_length': 3.2161214953271027, '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': '6575021', 'n_tokens_mistral': 1377, 'n_tokens_neox': 1317, 'n_words': 333}