Compare commits

..

4 commits

4 changed files with 97 additions and 7 deletions

View file

@ -75,7 +75,9 @@
home-emacs-helpful-configuration home-emacs-helpful-configuration
home-emacs-yasnippet-capf-service-type home-emacs-yasnippet-capf-service-type
home-emacs-dashboard-service-type home-emacs-dashboard-service-type
home-emacs-dashboard-configuration)) home-emacs-dashboard-configuration
home-emacs-eros-service-type
home-emacs-ace-link-service-type))
#:use-module ((oni home services environment) #:use-module ((oni home services environment)
#:select (home-environment-service)) #:select (home-environment-service))
#:use-module ((oni home services flameshot) #:use-module ((oni home services flameshot)
@ -414,6 +416,8 @@
(local-file "../services/emacs/oni-helpful.el"))))) (local-file "../services/emacs/oni-helpful.el")))))
(service home-emacs-yasnippet-capf-service-type) (service home-emacs-yasnippet-capf-service-type)
(service home-emacs-dashboard-service-type) (service home-emacs-dashboard-service-type)
(service home-emacs-eros-service-type)
(service home-emacs-ace-link-service-type)
(service home-flameshot-service-type) (service home-flameshot-service-type)

View file

@ -9,7 +9,9 @@
#:select (emacs)) #:select (emacs))
#:use-module ((gnu packages emacs-xyz) #:use-module ((gnu packages emacs-xyz)
#:select (emacs-helpful #:select (emacs-helpful
emacs-dashboard)) emacs-dashboard
emacs-eros
emacs-ace-link))
#:use-module ((gnu home services) #:use-module ((gnu home services)
#:select (service-type #:select (service-type
service-extension service-extension
@ -25,7 +27,6 @@
mixed-text-file)) mixed-text-file))
#:use-module ((guix packages) #:use-module ((guix packages)
#:select (package?)) #:select (package?))
#:use-module ((oni packages emacs) #:use-module ((oni packages emacs)
#:select (emacs-yasnippet-capf)) #:select (emacs-yasnippet-capf))
@ -39,7 +40,13 @@
home-emacs-yasnippet-capf-configuration home-emacs-yasnippet-capf-configuration
home-emacs-dashboard-service-type home-emacs-dashboard-service-type
home-emacs-dashboard-configuration)) home-emacs-dashboard-configuration
home-emacs-eros-service-type
home-emacs-eros-configuration
home-emacs-ace-link-service-type
home-emacs-ace-link-configuration))
(define-configuration/no-serialization home-emacs-extension (define-configuration/no-serialization home-emacs-extension
(configurations (configurations
@ -196,3 +203,70 @@
(compose identity) (compose identity)
(default-value (home-emacs-dashboard-configuration)) (default-value (home-emacs-dashboard-configuration))
(description "Install and configure emacs-dashboard."))) (description "Install and configure emacs-dashboard.")))
(define-configuration/no-serialization home-emacs-eros-configuration
(package
(package emacs-eros)
"Package to use for setting emacs-eros.")
(configurations
(text-config '())
"Configuration for emacs-eros."))
(define (add-emacs-eros config)
(home-emacs-extension
(configurations
(append
(list (mixed-text-file "eros-config"
"(eros-mode)\n"))
(home-emacs-eros-configuration-configurations config)))))
(define (add-emacs-eros-packages config)
(list (home-emacs-eros-configuration-package config)))
(define home-emacs-eros-service-type
(service-type
(name 'home-emacs-eros)
(extensions
(list (service-extension
home-emacs-service-type
add-emacs-eros)
(service-extension
home-profile-service-type
add-emacs-eros-packages)))
(compose identity)
(default-value (home-emacs-eros-configuration))
(description "Install and configure emacs-eros.")))
(define-configuration/no-serialization home-emacs-ace-link-configuration
(package
(package emacs-ace-link)
"Package to use for setting emacs-ace-link.")
(configurations
(text-config '())
"Configuration for emacs-ace-link."))
(define (add-emacs-ace-link config)
(home-emacs-extension
(configurations
(append
(list (mixed-text-file "ace-link-config"
"(ace-link-setup-default)\n"))
(home-emacs-ace-link-configuration-configurations config)))))
(define (add-emacs-ace-link-packages config)
(list (home-emacs-ace-link-configuration-package config)))
(define home-emacs-ace-link-service-type
(service-type
(name 'home-emacs-ace-link)
(extensions
(list (service-extension
home-emacs-service-type
add-emacs-ace-link)
(service-extension
home-profile-service-type
add-emacs-ace-link-packages)))
(compose identity)
(default-value (home-emacs-ace-link-configuration))
(description "Install and configure emacs-ace-link.")))

View file

@ -85,9 +85,20 @@ after it has been unlocked."
(define-key m (kbd "f") "exec flameshot full") (define-key m (kbd "f") "exec flameshot full")
m)) m))
(defvar *notification-bindings*
(let ((m (make-sparse-keymap)))
(define-key m (kbd "RET") "exec dunstctl action")
(define-key m (kbd "c") "exec dunstctl close")
(define-key m (kbd "S-c") "exec dunstctl close-all")
(define-key m (kbd "SPC") "exec dunstctl context")
(define-key m (kbd ",") "exec dunstctl history-pop")
(define-key m (kbd "p") "exec dunstctl set-paused toggle")
m))
(defvar *user-bindings* (defvar *user-bindings*
(let ((m (make-sparse-keymap))) (let ((m (make-sparse-keymap)))
(define-key m (kbd "s") '*screenshot-bindings*) (define-key m (kbd "s") '*screenshot-bindings*)
(define-key m (kbd "n") '*notification-bindings*)
m)) m))
(define-key *top-map* (kbd "s-c") '*user-bindings*) (define-key *top-map* (kbd "s-c") '*user-bindings*)

View file

@ -13,7 +13,7 @@
#:use-module (oni packages go)) #:use-module (oni packages go))
(define-public emacs-oni-config (define-public emacs-oni-config
(let ((commit "e6a7b37ce47422db495d647b30643b9e26c58e67") (let ((commit "76e4f129563be48048a5f2142924aa3cebee6bb2")
(revision "0")) (revision "0"))
(package (package
(name "emacs-oni-config") (name "emacs-oni-config")
@ -26,7 +26,7 @@
(commit commit))) (commit commit)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "1qi64x699fg3nazzwch4y3ypdddppm7nsnvsjvr92ivv13p33sab")))) (base32 "01f6j91wzlnbnidv2kvnm6xdcqb9qpb0a9hsa36l7jm1x94xxfwx"))))
(build-system emacs-build-system) (build-system emacs-build-system)
(home-page "https://code.ryuslash.org/ryuslash/emacs-config") (home-page "https://code.ryuslash.org/ryuslash/emacs-config")
(synopsis "My Emacs configuration") (synopsis "My Emacs configuration")
@ -603,7 +603,8 @@ Emacs")))
(propagated-inputs (propagated-inputs
(list emacs-oni-sendmail (list emacs-oni-sendmail
emacs-notmuch emacs-notmuch
emacs-ol-notmuch)) emacs-ol-notmuch
emacs-olivetti))
(synopsis "My notmuch configuration for Emacs.") (synopsis "My notmuch configuration for Emacs.")
(description "This package provides my configuration for notmuch."))) (description "This package provides my configuration for notmuch.")))