You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Further, packages.el specifies many packages, and not all are required for everyone. I can easily modify packages.el myself, but that means I am changing the scimax structure. Could this be into essentials.el, use-helm.el or use-avy.el, writing.el, coding.el, extras.el? This would allow loading them from a user-startup file. A suitable init file could be provided as a template so that this would not interfere with the current setup.
;; this makes garbage collection less frequent, which speeds up init by about 2 seconds.
(set-language-environment"UTF-8")
(setq gc-cons-threshold 80000000)
(when (version< emacs-version "25.0")
(warn"You probably need at least Emacs 25. You should upgrade. You may need to install leuven-theme manually."))
;; remember this directory;; defconst scimax-dir (file-name-directory (or load-file-name (buffer-file-name)));; "Directory where the scimax is installed.");; this depends onm where the init file is located. Hard coding for now
(defconstscimax-dir"~/.emacs.d/scimax/")
(add-to-list'load-path scimax-dir)
;; Define here any variables that might affect package loading;;; Load the package manager, I removed the ssl part since https is now standard
(require'package)
(add-to-list'package-archives '("elpa"."https://elpa.gnu.org/packages/"))
(add-to-list'package-archives '("melpa"."https://melpa.org/packages/"))
(add-to-list'package-archives '("gnu"."https://elpa.gnu.org/packages/"))
;; (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/"));; Load scimax standard packages, Are all of these needed, or can this be split into;; several files, like helm, ivy, writing, coding?
(require'bootstrap)
(require'packages)
;; check for user defined settings
(defunscimax-customize-user ()
"Open scimax/user/user.el. If it does not exist, copy the exampleone and open it."
(interactive)
(let ((user-file (expand-file-name"user/settings.org"
scimax-dir)))
(unless (file-exists-p user-file)
(copy-file (expand-file-name"user/user.example"
scimax-dir)
user-file))
(find-file user-file)))
;; (require 'org) already loaded in packages el.
(org-babel-load-file
(expand-file-name"settings.org"
user-emacs-directory))
;; END
The text was updated successfully, but these errors were encountered:
I will give this some thought. I don't currently have time for any significant restructuring though. It is certainly not necessary to use the files in scimax as provided, you can simply add the directory to a load-path and use what you want, as you describe above. In that sense, I don't see an urgency to change it; it is hard to say where the line between what someone needs or doesn't, and to maintain the experience I set up scimax to provide.
Thanks for sharing your outline of a simplified load procedure. If I get time, I will take a look at it more closely.
no worries. The above init file works well for me. I just had that kind of weekend where I thought I had to clean my init files from historical ballast ...
The current startup involves calling several nested init files
This results in variables being declared and packages being loaded, multiple times in different locations.
This hierarchy can be flattened into a single init file (see the working example below).
Further,
packages.el
specifies many packages, and not all are required for everyone. I can easily modify packages.el myself, but that means I am changing the scimax structure. Could this be into essentials.el, use-helm.el or use-avy.el, writing.el, coding.el, extras.el? This would allow loading them from a user-startup file. A suitable init file could be provided as a template so that this would not interfere with the current setup.The text was updated successfully, but these errors were encountered: