|
|
@ -1,12 +1,3 @@
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
|
|
;; Keep emacs clean!
|
|
|
|
|
|
|
|
;; Change the user-emacs-directory to keep unwanted things out of ~/.emacs.d
|
|
|
|
|
|
|
|
(setq user-emacs-directory (expand-file-name "~/.cache/emacs/")
|
|
|
|
|
|
|
|
url-history-file (expand-file-name "url/history" user-emacs-directory))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; set up straight package manager
|
|
|
|
;; set up straight package manager
|
|
|
|
(defvar bootstrap-version)
|
|
|
|
(defvar bootstrap-version)
|
|
|
@ -25,6 +16,16 @@
|
|
|
|
(straight-use-package 'use-package)
|
|
|
|
(straight-use-package 'use-package)
|
|
|
|
(setq straight-use-package-by-default t)
|
|
|
|
(setq straight-use-package-by-default t)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
|
|
;; Keep emacs clean!
|
|
|
|
|
|
|
|
;; Change the user-emacs-directory to keep unwanted things out of ~/.emacs.d
|
|
|
|
|
|
|
|
(setq user-emacs-directory (expand-file-name "~/.cache/emacs/")
|
|
|
|
|
|
|
|
url-history-file (expand-file-name "url/history" user-emacs-directory))
|
|
|
|
|
|
|
|
;; Use no-littering to automatically set common paths to the new user-emacs-directory
|
|
|
|
|
|
|
|
;; (use-package no-littering)
|
|
|
|
|
|
|
|
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; Install org-mode
|
|
|
|
;; Install org-mode
|
|
|
|
(straight-use-package 'org)
|
|
|
|
(straight-use-package 'org)
|
|
|
@ -44,11 +45,10 @@
|
|
|
|
;; (org-babel-load-file (f))))
|
|
|
|
;; (org-babel-load-file (f))))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; Load configuration
|
|
|
|
;; Load myconfig file.
|
|
|
|
;; Load myconfig.el unless there are changes in myconfig.org
|
|
|
|
(let ((config-el (expand-file-name "~/.emacs.d/myconfig.el"))
|
|
|
|
(let ((config-el (expand-file-name "myconfig.el" user-emacs-directory))
|
|
|
|
(config-org (expand-file-name "~/.emacs.d/myconfig.org")))
|
|
|
|
(config-org (expand-file-name "myconfig.org" user-emacs-directory)))
|
|
|
|
|
|
|
|
(if (and (file-exists-p config-el)
|
|
|
|
(if (and (file-exists-p config-el)
|
|
|
|
(time-less-p (file-attribute-modification-time (file-attributes config-org))
|
|
|
|
(time-less-p (file-attribute-modification-time (file-attributes config-org))
|
|
|
|
(file-attribute-modification-time (file-attributes config-el))))
|
|
|
|
(file-attribute-modification-time (file-attributes config-el))))
|
|
|
|