summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"