my-emacs-d/init.el
Gergely Polonkai 8534e3c8d7
Move the pre-init section back to init.el
Emacs sometimes (often? always?) loads an old Org version, then upgrades it after `configuration.org` is loaded.

To prevent this, i simply move back to a non-org configuration.  I never used any real Org features in my config anyway.
2025-05-29 18:59:16 +02:00

34 lines
1.0 KiB
EmacsLisp
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

;;; init --- Summary
;;; Commentary:
;;; Code:
(setq custom-file (concat user-emacs-directory "customizations.el"))
(load custom-file)
;; Initialize the package system and use-package
(setq load-prefer-newer t)
;; Add my own, version controlled ~lisp~ directory to ~load-path~
(add-to-list 'load-path (expand-file-name
(convert-standard-filename "lisp/")
user-emacs-directory))
;; Do the same with the local ~site-lisp~ if its there
(let ((site-lisp-dir "/usr/local/share/emacs/site-lisp"))
(when (file-directory-p site-lisp-dir)
(dolist (elt (directory-files site-lisp-dir))
(unless (or (string= elt ".") (string= elt ".."))
(add-to-list 'load-path (expand-file-name elt site-lisp-dir))))))
;; I prefer using freedesktops desktop specification everywhere
(load "xdg-paths")
;; I started moving my configuration to this Org file. Its easier to document this way.
(org-babel-load-file (expand-file-name "configuration.org" user-emacs-directory))
;;; init.el ends here