It is possible to move this configuration out of the default .emacs.d
But why?
(setq my/config-folder-location user-emacs-directory)
(setq user-full-name "Ilya Antonov")
(setq user-mail-address "[email protected]")
Some .el files are downloaded manually as support for them was stopped or there were deployment issues
(add-to-list 'load-path (concat my/config-folder-location "manual_el"))
(setq package-archives '(("org" . "https://orgmode.org/elpa/")
("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")
("melpa-stable" . "https://stable.melpa.org/packages/")))
(setq package-enable-at-startup nil)
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
:init
is executed before a package is loaded:config
is executed after a package is loaded
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(require 'use-package)
(defvar my/package-hashmap (make-hash-table :test 'equal))
(defun my/add-to-package-list (package-with-apostrophe)
"Adds the package to my/package-hashmap hashmap.
Ensure that it is escaped with apostrophe to avoid evaluation"
(puthash (format "%s" package-with-apostrophe) package-with-apostrophe my/package-hashmap))
(use-package exec-path-from-shell
:ensure t
:config (my/add-to-package-list 'exec-path-from-shell))
(exec-path-from-shell-initialize)
(server-start)