Compare commits

...

3 Commits

Author SHA1 Message Date
Sergio Alvariño 5f1f3c1e60 Add emacs configuration file in org-mode format
11 months ago
Sergio Alvariño befa00b857 Add org installation
11 months ago
Sergio Alvariño af08ea7c1c Change base-dir for straight.el
11 months ago

@ -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)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Loading…
Cancel
Save