|
|
|
@ -15,9 +15,12 @@
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;; set up straight package manager
|
|
|
|
|
;;
|
|
|
|
|
;; set new location for straight.el
|
|
|
|
|
(setq straight-base-dir (expand-file-name "~/.cache/emacs/var"))
|
|
|
|
|
;;
|
|
|
|
|
(defvar bootstrap-version)
|
|
|
|
|
(let ((bootstrap-file
|
|
|
|
|
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
|
|
|
|
(expand-file-name "straight/repos/straight.el/bootstrap.el" straight-base-dir))
|
|
|
|
|
(bootstrap-version 6))
|
|
|
|
|
(unless (file-exists-p bootstrap-file)
|
|
|
|
|
(with-current-buffer
|
|
|
|
@ -52,6 +55,23 @@
|
|
|
|
|
custom-file (no-littering-expand-etc-file-name "custom.el"))
|
|
|
|
|
)
|
|
|
|
|
;;
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;; Install org-mode
|
|
|
|
|
(straight-use-package 'org)
|
|
|
|
|
;;
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;; Load myconfig file.
|
|
|
|
|
(let ((config-el (expand-file-name "myconfig.el" user-emacs-directory))
|
|
|
|
|
(config-org (expand-file-name "myconfig.org" user-emacs-directory)))
|
|
|
|
|
(if (and (file-exists-p config-el)
|
|
|
|
|
(file-exists-p config-org)
|
|
|
|
|
(time-less-p (file-attribute-modification-time (file-attributes config-org))
|
|
|
|
|
(file-attribute-modification-time (file-attributes config-el))))
|
|
|
|
|
(load-file config-el)
|
|
|
|
|
(if (file-exists-p config-org)
|
|
|
|
|
(org-babel-load-file config-org)
|
|
|
|
|
(error "No file `%s' found!! No configuration loaded!!" config-org))))
|
|
|
|
|
;;
|
|
|
|
|
;;
|
|
|
|
|
(provide 'init)
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|