From 9ce94344a530a77486c3cc3e44739b50a04e8510 Mon Sep 17 00:00:00 2001 From: Ezri Brimhall Date: Thu, 7 Mar 2024 11:13:20 -0700 Subject: [PATCH] Added last thing needed for emacs settings --- .emacs.d/init.el | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .emacs.d/init.el diff --git a/.emacs.d/init.el b/.emacs.d/init.el new file mode 100644 index 0000000..cad686c --- /dev/null +++ b/.emacs.d/init.el @@ -0,0 +1,46 @@ +;; Install straight.el +(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)) + +;; Install use-package +(straight-use-package 'use-package) + +;; Configure use-package to use straight.el by default +(use-package straight + :custom (straight-use-package-by-default t)) + +(straight-use-package 'org) +(require 'org) +(org-babel-load-file + (expand-file-name "settings.org" + user-emacs-directory)) + +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(auth-source-save-behavior nil) + '(elcord-idle-message "Idling...") + '(elcord-idle-timer 120) + '(elcord-refresh-rate 3) + '(mouse-autoselect-window t) + '(package-selected-packages + '(kotlin-mode magit counsel doom-modeline doom-themes use-package)) + '(tab-width 2)) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + )