aboutsummaryrefslogtreecommitdiffstats
path: root/oni/home/config/rincewind.scm
diff options
context:
space:
mode:
authorGravatar Tom Willemse2023-07-14 00:54:48 -0700
committerGravatar Tom Willemse2023-07-14 00:54:48 -0700
commitb144e84ea5b013fdd161287d4d5a6eb12f02e53b (patch)
treecdb428cd1b5049a77caafd8f192dd2f394e805d1 /oni/home/config/rincewind.scm
parent5aa1d0c0e8069bdce3ff938948bfaeeb1e10c834 (diff)
downloadnew-dotfiles-b144e84ea5b013fdd161287d4d5a6eb12f02e53b.tar.gz
new-dotfiles-b144e84ea5b013fdd161287d4d5a6eb12f02e53b.zip
Add ‘emacs-oni-hy’
I just added a configuration for programming in Hy. This is the first step for moving more of my Emacs configuration into guix home. Instead of adding the autoload for ‘oni-hy’ in the ‘oni-core’ package, I've added it directly to my Guix configuration. In the future I'll want to change this so that each package gets its own configuration and also extends my Emacs configuration so that it automatically adds these autoloads when I add a package.
Diffstat (limited to 'oni/home/config/rincewind.scm')
-rw-r--r--oni/home/config/rincewind.scm19
1 files changed, 17 insertions, 2 deletions
diff --git a/oni/home/config/rincewind.scm b/oni/home/config/rincewind.scm
index d095fb1..6643360 100644
--- a/oni/home/config/rincewind.scm
+++ b/oni/home/config/rincewind.scm
@@ -40,6 +40,9 @@
#:select (channel
make-channel-introduction
openpgp-fingerprint))
+ #:use-module ((guix gexp)
+ #:select (local-file
+ mixed-text-file))
#:use-module ((guix packages)
#:select (package-name))
#:use-module ((guix transformations)
@@ -107,7 +110,8 @@
emacs-oni-common-lisp
emacs-oni-gui
emacs-oni-magit
- emacs-oni-notmuch))
+ emacs-oni-notmuch
+ emacs-oni-hy))
#:use-module ((oni packages hlwm-run-or-raise)
#:select (hlwm-run-or-raise))
#:use-module ((oni packages inbox-size)
@@ -215,6 +219,7 @@
emacs-oni-gui
emacs-oni-magit
emacs-oni-notmuch
+ emacs-oni-hy
gforth
recutils
emacs-rec-mode
@@ -280,7 +285,17 @@
(service home-emacs-service-type
(home-emacs-configuration
- (package emacs-next)))
+ (package emacs-next)
+ (configurations
+ (list
+ (local-file "../services/emacs/init.el")
+ (mixed-text-file
+ "init.el"
+ "(with-eval-after-load 'hy-mode (require 'oni-hy))\n"
+ "(setq custom-file \"~/.config/emacs/custom.el\")\n"
+ "(load custom-file)\n"
+ "(provide 'init)\n"
+ ";;; init.el ends here\n")))))
(service home-flameshot-service-type)