Start the Emacs server from this instance so that all emacsclient calls are routed here. ( push "~/.dotfiles/.emacs.d/lisp" load-path)Īvoid constant errors on Windows about the coding system by setting the default to UTF-8. I've got a folder of custom Emacs Lisp libraries which must be added to the load path. Guix Packages "emacs-no-littering" ¶Update Load Path (expand-file-name (format "emacs-custom-%s.el" (user-uid)) temporary-file-directory))) (expand-file-name "custom.el" server-socket-dir) Keep customization settings in a temporary file (thanks Ambrevar!) Use no-littering to automatically set common paths to the new user-emacs-directory Url-history-file (expand-file-name "url/history" user-emacs-directory)) ( setq user-emacs-directory (expand-file-name "~/.cache/emacs/") Change the user-emacs-directory to keep unwanted things out of ~/.emacs.d I don't want a bunch of transient files showing up as untracked in the Git repo so I move them all to another location. Load the helper package for commands like ` straight-x-clean-unused-repos ' Use straight.el for use-package expressions ( setq straight-use-package-by-default (not (eq system-type 'gnu/linux))) Always use straight to install on systems other than Linux (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) Trying out straight.el for package management. Guix Packages "emacs-use-package" ¶straight.el ( setq use-package-always-ensure (not dw/is-guix-system)) Uncomment this to get a reading on packages that get loaded at startup (setq use-package-verbose t) On non-Guix systems, "ensure" packages by default ( unless ( or (package-installed-p 'use-package) (unless package-archive-contents (package-refresh-contents)) Initialize use-package on non-Linux platforms ( setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")) Fix an issue accessing the ELPA archive in Termux NOTE: I'm keeping this section in but disabling tangling for now because I'm trying out straight.el as an alternative. Set up ELPA, MELPA, and Org package repositories and load use-package to manage package configuration. ![]() ( setq dw/is-guix-system ( and (eq system-type 'gnu/linux) (string-suffix-p "Android" (string-trim (shell-command-to-string "uname -a")))) (load-file "~/.dotfiles/.emacs.d/lisp/dw-settings.el") Also load system-specific settings from per-system-settings.el. Some parts of the configuration require knowledge of whether Emacs is running on a Guix system or in Termux on Android. ( setq comp-async-report-warnings-errors nil) Silence compiler warnings as they can be pretty disruptive Here are some settings to tweak the behavior slightly: I've started experimenting with the native-comp branch of Emacs for increased performance. (time-subtract after-init-time before-init-time))) (message "*** Emacs loaded in %s with %d garbage collections." Make startup faster by reducing the frequency of garbage collection and then use a hook to measure Emacs startup time. This is an ongoing evolution of my original Emacs configuration files, inspired by a bunch of resources I've found online.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |