From 87663cee845a7685ce87c8ba8b0c9fed1acd04a2 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Wed, 2 Mar 2022 09:42:36 -0500 Subject: [PATCH] guess what --- emacs/.config/emacs/.gitignore | 4 --- emacs/.config/emacs/core/em-init.el | 33 ------------------------- emacs/.config/emacs/core/em-packages.el | 21 ---------------- emacs/.config/emacs/core/em-pkg.el | 8 ------ emacs/.config/emacs/core/em-utils.el | 2 -- emacs/.config/emacs/early-init.el | 18 -------------- emacs/.config/emacs/init.el | 8 ------ 7 files changed, 94 deletions(-) delete mode 100644 emacs/.config/emacs/.gitignore delete mode 100644 emacs/.config/emacs/core/em-init.el delete mode 100644 emacs/.config/emacs/core/em-packages.el delete mode 100644 emacs/.config/emacs/core/em-pkg.el delete mode 100644 emacs/.config/emacs/core/em-utils.el delete mode 100644 emacs/.config/emacs/early-init.el delete mode 100644 emacs/.config/emacs/init.el diff --git a/emacs/.config/emacs/.gitignore b/emacs/.config/emacs/.gitignore deleted file mode 100644 index e819316..0000000 --- a/emacs/.config/emacs/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -etc -var - -straight diff --git a/emacs/.config/emacs/core/em-init.el b/emacs/.config/emacs/core/em-init.el deleted file mode 100644 index 165e107..0000000 --- a/emacs/.config/emacs/core/em-init.el +++ /dev/null @@ -1,33 +0,0 @@ -(defvar em-core-dir (file-name-directory load-file-name) - "Core files") - -(defvar em-dir (expand-file-name ".." em-core-dir) - "Emacs configuration root directory") - -(add-to-list 'load-path em-core-dir) - -(defconst em-modules-dir (concat em-dir "/" "modules/")) - -(defun siren-recursive-add-to-load-path (dir) - "Add DIR and all its sub-directories to `load-path'." - (add-to-list 'load-path dir) - (dolist (f (directory-files dir)) - (let ((name (expand-file-name f dir))) - (when (and (file-directory-p name) - (not (string-prefix-p "." f))) - (siren-recursive-add-to-load-path name))))) - -(siren-recursive-add-to-load-path em-modules-dir) - -(require 'em-packages) - -(require 'em-utils) -(require 'em-pkg) - -;; ui -;; themes -;; editing - -;; modules - -(provide 'em-init) diff --git a/emacs/.config/emacs/core/em-packages.el b/emacs/.config/emacs/core/em-packages.el deleted file mode 100644 index 551b4c3..0000000 --- a/emacs/.config/emacs/core/em-packages.el +++ /dev/null @@ -1,21 +0,0 @@ -;; straight.el: Package management -(setq straight-vc-git-default-clone-depth 15) - -(defvar bootstrap-version) -(let ((bootstrap-file - (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) - (bootstrap-version 5)) - (unless (file-exists-p bootstrap-file) - (with-current-buffer - (url-retrieve-synchronously - "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el" - 'silent 'inhibit-cookies) - (goto-char (point-max)) - (eval-print-last-sexp))) - (load bootstrap-file nil 'nomessage)) - -(setq straight-use-package-by-default t) -(straight-use-package 'use-package) -;; (require 'straight-x) - -(provide 'em-packages) diff --git a/emacs/.config/emacs/core/em-pkg.el b/emacs/.config/emacs/core/em-pkg.el deleted file mode 100644 index d3e2855..0000000 --- a/emacs/.config/emacs/core/em-pkg.el +++ /dev/null @@ -1,8 +0,0 @@ -(use-package no-littering - :demand) - -(use-package exec-path-from-shell - :init - (exec-path-from-shell-initialize)) - -(provide 'em-pkg) diff --git a/emacs/.config/emacs/core/em-utils.el b/emacs/.config/emacs/core/em-utils.el deleted file mode 100644 index 3d90ac2..0000000 --- a/emacs/.config/emacs/core/em-utils.el +++ /dev/null @@ -1,2 +0,0 @@ - -(provide 'em-utils) diff --git a/emacs/.config/emacs/early-init.el b/emacs/.config/emacs/early-init.el deleted file mode 100644 index cd075ed..0000000 --- a/emacs/.config/emacs/early-init.el +++ /dev/null @@ -1,18 +0,0 @@ -(setq package-enable-at-startup nil) ;; straight.el instead of package.el - -;; Garbage collection -(setq gc-cons-threshold most-positive-fixnum - gc-cons-percentage 0.6) - -(add-hook 'emacs-startup-hook - (lambda () - (setq gc-cons-threshold 16777216 - gc-cons-percentage 0.1))) - -;; Startup -(setq frame-inhibit-implied-resize t) -(set-language-environment "UTF-8") ; UTF-8 as default -(setq default-input-method nil) - -;; GUI -(tool-bar-mode -1) diff --git a/emacs/.config/emacs/init.el b/emacs/.config/emacs/init.el deleted file mode 100644 index 2c6a66e..0000000 --- a/emacs/.config/emacs/init.el +++ /dev/null @@ -1,8 +0,0 @@ -(setq user-full-name "earnest ma" - user-mail-address "me@earne.link" - calendar-latitude 43.7682 ; Toronto - calendar-longitude -79.4126) - -;; Always load newest byte code -(setq load-prefer-newer t) -(load (concat user-emacs-directory "core/em-init") nil 'nomessage)