<commit_before>#+TITLE: Emacs Configuration
#+AUTHOR: <NAME> ( meain )


* Basic setup
** Set up env variables
   #+BEGIN_SRC emacs-lisp
    (setenv "PATH" "/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Users/abinsimon/.fzf/bin")
   #+END_SRC
** Backups
   #+BEGIN_SRC emacs-lisp
    ;; (setq backup-inhibited t)
    ;; (setq make-backup-files nil)
    (setq backup-directory-alist
        `((".*" . ,temporary-file-directory)))
   #+end_SRC
** Use UTF8
   #+BEGIN_SRC emacs-lisp
    ;; UTF-8 please
    (setq locale-coding-system 'utf-8)
    (set-terminal-coding-system 'utf-8)
    (set-keyboard-coding-system 'utf-8)
    (set-selection-coding-system 'utf-8)
    (prefer-coding-system 'utf-8)
   #+END_SRC
** Auto save
   #+BEGIN_SRC emacs-lisp
    ;; disable auto save
    ;; (setq auto-save-default nil)
    (setq auto-save-file-name-transforms
        `((".*" ,temporary-file-directory t)))
   #+END_SRC
** Easier prompts
   #+BEGIN_SRC emacs-lisp
    ;; change all prompts to y or n
    (fset 'yes-or-no-p 'y-or-n-p)
   #+END_SRC

** Fullscreen emacs
   #+BEGIN_SRC emacs-lisp
   (global-set-key (kbd "<s-return>") 'toggle-frame-fullscreen)
   #+END_SRC
* Visual settings
** No line wrapping
   #+BEGIN_SRC emacs-lisp
    ;; no line wrapping
    (setq-default truncate-lines 1)
   #+END_SRC
** OSX Scrolling
   #+BEGIN_SRC emacs-lisp
   (setq mouse-wheel-scroll-amount (quote (0.01)))
   #+END_SRC
** Page break line
   #+BEGIN_SRC emacs-lisp
    (use-package page-break-lines
        :ensure t
        :init
            (page-break-lines-mode))
   #+END_SRC
** Tab and spaces
    #+BEGIN_SRC emacs-lisp
    ;; set default tab width
    (setq-default tab-width 4)
    (setq-default indent-tabs-mode nil)
    #+END_SRC
** Line highlight
   #+BEGIN_SRC emacs-lisp
    ;; line highlight
    (global-hl-line-mode 1)
   #+END_SRC
** Line numbers
    #+BEGIN_SRC emacs-lisp
    ;; enable line numbers
    (global-linum-mode t)
    #+END_SRC
** Cursor
    #+BEGIN_SRC emacs-lisp
    ;; Don't blink the cursor
    (blink-cursor-mode -1)
    #+END_SRC
** Font
*** Editor font
    #+BEGIN_SRC emacs-lisp
    ;; Set font
    (set-frame-font "Operator Mono 17" nil t)
    #+END_SRC
*** Emojis
    #+BEGIN_SRC emacs-lisp
      (let ((font (if (= emacs-major-version 25)
                      "Symbola"
                  (cond ((string-equal system-type "darwin")    "Apple Color Emoji")
                          ((string-equal system-type "gnu/linux") "Symbola")))))
      (set-fontset-font t 'unicode font nil 'prepend))
    #+END_SRC
** Themes
*** Seti theme
    #+BEGIN_SRC emacs-lisp
    (use-package seti-theme<commit_msg>[emacs] fix left fringe styling<commit_after>#+TITLE: Emacs Configuration
#+AUTHOR: <NAME> ( meain )


* Basic setup
** Set up env variables
   #+BEGIN_SRC emacs-lisp
    (setenv "PATH" "/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Users/abinsimon/.fzf/bin")
   #+END_SRC
** Backups
   #+BEGIN_SRC emacs-lisp
    ;; (setq backup-inhibited t)
    ;; (setq make-backup-files nil)
    (setq backup-directory-alist
        `((".*" . ,temporary-file-directory)))
   #+end_SRC
** Use UTF8
   #+BEGIN_SRC emacs-lisp
    ;; UTF-8 please
    (setq locale-coding-system 'utf-8)
    (set-terminal-coding-system 'utf-8)
    (set-keyboard-coding-system 'utf-8)
    (set-selection-coding-system 'utf-8)
    (prefer-coding-system 'utf-8)
   #+END_SRC
** Auto save
   #+BEGIN_SRC emacs-lisp
    ;; disable auto save
    ;; (setq auto-save-default nil)
    (setq auto-save-file-name-transforms
        `((".*" ,temporary-file-directory t)))
   #+END_SRC
** Easier prompts
   #+BEGIN_SRC emacs-lisp
    ;; change all prompts to y or n
    (fset 'yes-or-no-p 'y-or-n-p)
   #+END_SRC

** Fullscreen emacs
   #+BEGIN_SRC emacs-lisp
   (global-set-key (kbd "<s-return>") 'toggle-frame-fullscreen)
   #+END_SRC
* Visual settings
** No line wrapping
   #+BEGIN_SRC emacs-lisp
    ;; no line wrapping
    (setq-default truncate-lines 1)
   #+END_SRC
** OSX Scrolling
   #+BEGIN_SRC emacs-lisp
   (setq mouse-wheel-scroll-amount (quote (0.01)))
   #+END_SRC
** Page break line
   #+BEGIN_SRC emacs-lisp
    (use-package page-break-lines
        :ensure t
        :init
            (page-break-lines-mode))
   #+END_SRC
** Tab and spaces
    #+BEGIN_SRC emacs-lisp
    ;; set default tab width
    (setq-default tab-width 4)
    (setq-default indent-tabs-mode nil)
    #+END_SRC
** Line highlight
   #+BEGIN_SRC emacs-lisp
    ;; line highlight
    (global-hl-line-mode 1)
   #+END_SRC
** Line numbers
    #+BEGIN_SRC emacs-lisp
    ;; enable line numbers
    (global-linum-mode t)
    (setq linum-format " %d ")
    (setq-default right-fringe-width  0)
    (set-face-attribute 'fringe nil :background "#151515")
    #+END_SRC
** Cursor
    #+BEGIN_SRC emacs-lisp
    ;; Don't blink the cursor
    (blink-cursor-mode -1)
    #+END_SRC
** Font
*** Editor font
    #+BEGIN_SRC emacs-lisp
    ;; Set font
    (set-frame-font "Operator Mono 17" nil t)
    #+END_SRC
*** Emojis
    #+BEGIN_SRC emacs-lisp
      (let ((font (if (= emacs-major-version 25)
                      "Symbola"
                  (cond ((string-equal system-type "darwin")    "Apple Color Emoji")
                          ((string-equal system-type "gnu/linux") "Symbola")))))
      (set-fontset-font t 'unicode font nil 'prepend))
    #+END_SRC
** Themes
*** Seti theme
    #+BEGIN_SRC emacs-lisp
    (use-package seti-theme
{'fraction_non_alphanumeric': 0.14923215898825654, 'fraction_numerical': 0.008491418247515809, 'mean_word_length': 2.654125412541254, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '461510', 'n_tokens_mistral': 2189, 'n_tokens_neox': 2054, 'n_words': 446}