From 3b3343b7b3cb93274fbb5605d982f41b1d26ade3 Mon Sep 17 00:00:00 2001 From: Steph Enders Date: Thu, 30 Mar 2023 20:34:16 -0400 Subject: Reorganize emacs.d - use straight.el Major restructuring of the emacs directory: - moved .emacs to .emacs.d/init.el - setup early-init.el (as per straight.el directions) - moved major things into plugins.el - moved package installs into packages.el --- .emacs.d/init.el | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) (limited to '.emacs.d/init.el') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index dd07c6e..116ff79 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1,26 +1,16 @@ -(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. - '(custom-enabled-themes '(moe-dark)) - '(custom-safe-themes - '("a68624bd5c4bec879ee59cd3039531b6229766a8b8ed0e79eef2642f14dbda32" "58c996beb973f7e988ee4fd21c367b7a5bbdb0622ddfbbd112672a7b4e3d3b81" default)) - '(initial-buffer-choice t) - '(package-selected-packages '(## elpher moe-theme org visual-fill-column))) -(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. - ) +;; load plugins +(when (file-exists-p "~/.emacs.d/plugins.el") + (load "~/.emacs.d/plugins.el")) +(when (file-exists-p "~/.emacs.d/packages.el") + (load "~/.emacs.d/packages.el")) ;; Setup modes +;;(setq initial-buffer-choice t) ;;; remember layout ;;(desktop-save-mode 1) ;;; disable menu bar -;;(menu-bar-mode -1) +(menu-bar-mode -1) (tool-bar-mode -1) (scroll-bar-mode -1) ;;; disable emacs splash screen @@ -65,6 +55,3 @@ (global-set-key "\C-cl" 'use-light-theme) (global-set-key "\C-cd" 'use-dark-theme) -;; Always last -;;(when (file-exists-p "~/.emacs.d/pc_local_init.el") -;; (load "~/.emacs.d/pc_local_init.el"))` -- cgit v1.2.3-54-g00ecf