summaryrefslogtreecommitdiff
path: root/home/dots
diff options
context:
space:
mode:
authorMarc Coquand <marc@coquand.email>2024-12-14 20:44:18 +0100
committerMarc Coquand <marc@coquand.email>2024-12-14 20:44:18 +0100
commit8e690c38f95abda65da051764d7804036fa971d0 (patch)
treed645a9d437be407730d91efb2dee335ce8df7671 /home/dots
parentfa0f8110854c7c2b3c00c51aa6a0ca903b04301d (diff)
downloadguix-8e690c38f95abda65da051764d7804036fa971d0.tar.gz
guix-8e690c38f95abda65da051764d7804036fa971d0.tar.bz2
guix-8e690c38f95abda65da051764d7804036fa971d0.zip
.
Diffstat (limited to 'home/dots')
-rw-r--r--home/dots/.emacs9
1 files changed, 9 insertions, 0 deletions
diff --git a/home/dots/.emacs b/home/dots/.emacs
index ee1a40b..4edae97 100644
--- a/home/dots/.emacs
+++ b/home/dots/.emacs
@@ -1181,6 +1181,13 @@
(skeleton-end-hook nil)
:init
+ (define-skeleton s/scheme-define-module
+ "Define module"
+ "Module name: "
+ > "(define-module (" str ")" \n
+ - "#:use-module (gnu packages))" \n
+ )
+
(define-skeleton s/scheme-define
"G-expression"
"Definition name: "
@@ -1261,6 +1268,8 @@
:init
(setq-default abbrev-mode t)
:config
+ (define-abbrev scheme-mode-abbrev-table "2mo"
+ "" 's/scheme-define-module)
(define-abbrev scheme-mode-abbrev-table "2de"
"" 's/scheme-define)
(define-abbrev scheme-mode-abbrev-table "2ge"