clean up the configuration a bit
This commit is contained in:
26
init.el
26
init.el
@@ -3,35 +3,27 @@
|
||||
;; Bootstrap straight.el package manager
|
||||
(defvar bootstrap-version)
|
||||
(let ((bootstrap-file
|
||||
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
||||
(bootstrap-version 5))
|
||||
(expand-file-name
|
||||
"straight/repos/straight.el/bootstrap.el"
|
||||
(or (bound-and-true-p straight-base-dir)
|
||||
user-emacs-directory)))
|
||||
(bootstrap-version 7))
|
||||
(unless (file-exists-p bootstrap-file)
|
||||
(with-current-buffer
|
||||
(url-retrieve-synchronously
|
||||
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
|
||||
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
|
||||
'silent 'inhibit-cookies)
|
||||
(goto-char (point-max))
|
||||
(eval-print-last-sexp)))
|
||||
(load bootstrap-file nil 'nomessage))
|
||||
|
||||
;; Always use straight.el to install packages with use-package
|
||||
;;(straight-use-package 'use-package)
|
||||
(eval-when-compile
|
||||
(require 'use-package))
|
||||
(straight-use-package 'use-package)
|
||||
(setq straight-use-package-by-default t)
|
||||
|
||||
;;(setq use-package-always-defer t)
|
||||
|
||||
;; Minimal package.el use so we can explore melpa packages
|
||||
(require 'package)
|
||||
(add-to-list 'package-archives
|
||||
'("melpa" . "https://melpa.org/packages/")
|
||||
'("gnu" . "http://elpa.gnu.org/packages/"))
|
||||
(setq use-package-always-demand t)
|
||||
|
||||
(add-to-list 'load-path "~/.emacs.d/elisp/")
|
||||
;; load debian mu4e package
|
||||
(add-to-list 'load-path "/usr/share/emacs/site-lisp/mu4e")
|
||||
;(load "~/.emacs.d/elisp/mu4e-setup.el")
|
||||
|
||||
|
||||
(load "~/.emacs.d/elisp/settings.el")
|
||||
(load "~/.emacs.d/elisp/eshell-setup.el")
|
||||
|
||||
Reference in New Issue
Block a user