Compare commits
4 commits
6054dccc67
...
314ef89dc0
Author | SHA1 | Date | |
---|---|---|---|
314ef89dc0 | |||
3dcd2b763f | |||
51a84e941e | |||
9ad2400a9a |
4 changed files with 97 additions and 7 deletions
|
@ -75,7 +75,9 @@
|
|||
home-emacs-helpful-configuration
|
||||
home-emacs-yasnippet-capf-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)
|
||||
#:select (home-environment-service))
|
||||
#:use-module ((oni home services flameshot)
|
||||
|
@ -414,6 +416,8 @@
|
|||
(local-file "../services/emacs/oni-helpful.el")))))
|
||||
(service home-emacs-yasnippet-capf-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)
|
||||
|
||||
|
|
|
@ -9,7 +9,9 @@
|
|||
#:select (emacs))
|
||||
#:use-module ((gnu packages emacs-xyz)
|
||||
#:select (emacs-helpful
|
||||
emacs-dashboard))
|
||||
emacs-dashboard
|
||||
emacs-eros
|
||||
emacs-ace-link))
|
||||
#:use-module ((gnu home services)
|
||||
#:select (service-type
|
||||
service-extension
|
||||
|
@ -25,7 +27,6 @@
|
|||
mixed-text-file))
|
||||
#:use-module ((guix packages)
|
||||
#:select (package?))
|
||||
|
||||
#:use-module ((oni packages emacs)
|
||||
#:select (emacs-yasnippet-capf))
|
||||
|
||||
|
@ -39,7 +40,13 @@
|
|||
home-emacs-yasnippet-capf-configuration
|
||||
|
||||
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
|
||||
(configurations
|
||||
|
@ -196,3 +203,70 @@
|
|||
(compose identity)
|
||||
(default-value (home-emacs-dashboard-configuration))
|
||||
(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.")))
|
||||
|
|
|
@ -85,9 +85,20 @@ after it has been unlocked."
|
|||
(define-key m (kbd "f") "exec flameshot full")
|
||||
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*
|
||||
(let ((m (make-sparse-keymap)))
|
||||
(define-key m (kbd "s") '*screenshot-bindings*)
|
||||
(define-key m (kbd "n") '*notification-bindings*)
|
||||
m))
|
||||
|
||||
(define-key *top-map* (kbd "s-c") '*user-bindings*)
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#:use-module (oni packages go))
|
||||
|
||||
(define-public emacs-oni-config
|
||||
(let ((commit "e6a7b37ce47422db495d647b30643b9e26c58e67")
|
||||
(let ((commit "76e4f129563be48048a5f2142924aa3cebee6bb2")
|
||||
(revision "0"))
|
||||
(package
|
||||
(name "emacs-oni-config")
|
||||
|
@ -26,7 +26,7 @@
|
|||
(commit commit)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "1qi64x699fg3nazzwch4y3ypdddppm7nsnvsjvr92ivv13p33sab"))))
|
||||
(base32 "01f6j91wzlnbnidv2kvnm6xdcqb9qpb0a9hsa36l7jm1x94xxfwx"))))
|
||||
(build-system emacs-build-system)
|
||||
(home-page "https://code.ryuslash.org/ryuslash/emacs-config")
|
||||
(synopsis "My Emacs configuration")
|
||||
|
@ -603,7 +603,8 @@ Emacs")))
|
|||
(propagated-inputs
|
||||
(list emacs-oni-sendmail
|
||||
emacs-notmuch
|
||||
emacs-ol-notmuch))
|
||||
emacs-ol-notmuch
|
||||
emacs-olivetti))
|
||||
(synopsis "My notmuch configuration for Emacs.")
|
||||
(description "This package provides my configuration for notmuch.")))
|
||||
|
||||
|
|
Loading…
Reference in a new issue