Normal emacs config

This commit is contained in:
Aleksandr Lebedev 2026-01-06 12:35:26 +01:00
parent fac02d775f
commit 77b7a1d5c4
2 changed files with 1087 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,15 @@
;;; -*- lexical-binding: t; -*-
(setq custom-file "~/.config/emacs/custom.el")
(when (file-exists-p custom-file)
(load custom-file))
(setq package-user-dir "~/.cache/emacs/elpa")
(make-directory package-user-dir t)
(require 'package)
;;https://github.com/wbolster/emacs-direnv/issues/85
(setenv "PATH" (mapconcat 'identity exec-path ":")) ;;fixes direnv losing nix pkgs
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
(package-refresh-contents)
(add-to-list 'load-path (getenv "EMACSLOADPATH"))
(load "~/.config/emacs/config.el")