Fix basic Emacs setup, add magit

This commit is contained in:
Tom Willemse 2024-12-09 10:00:02 -08:00
parent 68f3945789
commit 13b7728495

View file

@ -14,11 +14,39 @@
#:select (home-emacs-service-type #:select (home-emacs-service-type
home-emacs-configuration)) home-emacs-configuration))
#:use-module ((oni home services environment) #:use-module ((oni home services environment)
#:select (home-environment-service))) #:select (home-environment-service))
#:use-module ((oni packages emacs-config)
#:select (emacs-oni-browse-url
emacs-oni-common-lisp
emacs-oni-compilation
emacs-oni-core
emacs-oni-diff-hl
emacs-oni-dired
emacs-oni-elisp
emacs-oni-git-commit
emacs-oni-gui
emacs-oni-log-edit
emacs-oni-magit
emacs-oni-package
emacs-oni-project)))
(home-environment (home-environment
(packages (list (specification->package+output "glibc-locales") (packages (list (specification->package+output "glibc-locales")
(specification->package+output "font-fantasque-sans"))) (specification->package+output "font-fantasque-sans")
(specification->package+output "font-comic-neue")
emacs-oni-core
emacs-oni-compilation
emacs-oni-common-lisp
emacs-oni-browse-url
emacs-oni-package
emacs-oni-elisp
emacs-oni-gui
emacs-oni-magit
emacs-oni-diff-hl
emacs-oni-project
emacs-oni-dired
emacs-oni-log-edit
emacs-oni-git-commit))
(services (list home-channels-service (services (list home-channels-service
home-environment-service home-environment-service
(service home-emacs-service-type (service home-emacs-service-type
@ -29,8 +57,8 @@
(mixed-text-file (mixed-text-file
"init.el" "init.el"
"(with-eval-after-load 'project (require 'oni-project))\n" "(with-eval-after-load 'project (require 'oni-project))\n"
"(projectile-mode)\n" "(require 'oni-gui)\n"
"(setq custom-file \"~/.config/emacs/custom.el\")\n" "(setq custom-file \"~/.config/emacs/custom.el\")\n"
"(load custom-file)\n" "(load custom-file :noerror)\n"
"(provide 'init)\n" "(provide 'init)\n"
";;; init.el ends here\n")))))))) ";;; init.el ends here\n"))))))))