You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
;;; init.el --- The Emacs init file
|
|
|
|
;;
|
|
|
|
;;; Commentary:
|
|
|
|
;; This is the main configuration file for Emacs.
|
|
|
|
;; In this file:
|
|
|
|
;; - Set the bootstratp for straight.el
|
|
|
|
;; - Load use-package
|
|
|
|
;; - Load no-littering
|
|
|
|
;; - Set user-init-directory to ~/.cache/emacs
|
|
|
|
;; - Install the latest release of org
|
|
|
|
;; - Load the file ~/.emacs.d/myconfig.org
|
|
|
|
;;
|
|
|
|
;;; Code:
|
|
|
|
;;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; set up straight package manager
|
|
|
|
;;
|
|
|
|
(defvar bootstrap-version)
|
|
|
|
(let ((bootstrap-file
|
|
|
|
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
|
|
|
(bootstrap-version 6))
|
|
|
|
(unless (file-exists-p bootstrap-file)
|
|
|
|
(with-current-buffer
|
|
|
|
(url-retrieve-synchronously
|
|
|
|
"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))
|
|
|
|
;;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; Install and configure use-package
|
|
|
|
(straight-use-package 'use-package)
|
|
|
|
(setq straight-use-package-by-default t)
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
(provide 'init)
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;;; init.el ends here
|