From bdf6086ffc83726e06a6f632ba98f9658dacb458 Mon Sep 17 00:00:00 2001 From: rush Date: Fri, 7 Aug 2026 10:34:11 -0400 Subject: [PATCH] Add skeleton and abbrev for html boilerplate, always in abbrev-mode --- abbrev_defs | 15 ++++++++------- init.el | 29 +++++++++++++++++++++++++++-- 2 files changed, 35 insertions(+), 9 deletions(-) diff --git a/abbrev_defs b/abbrev_defs index 0ce2f92..519e3eb 100644 --- a/abbrev_defs +++ b/abbrev_defs @@ -1,8 +1,9 @@ ;;-*-coding: utf-8;-*- -(when (equal system-type 'windows-nt) - (define-abbrev-table 'global-abbrev-table - '( - ("wol" "" workorder-link :count 0) - ("oel" "" skel-org-block-elisp :count 0) - ("osrc" "" skel-org-block :count 0) - ))) +(define-abbrev-table 'global-abbrev-table + '( + ("htmlbp" "" html-header :count 21) + ("oel" "" skel-org-block-elisp :count 0) + ("osrc" "" skel-org-block :count 0) + ("wol" "" workorder-link :count 0) + )) + diff --git a/init.el b/init.el index 0b63b20..149fbbe 100644 --- a/init.el +++ b/init.el @@ -1410,9 +1410,34 @@ Stolen from https://depp.brause.cc/dotemacs" \n "#+END_SRC") -(setq save-abbrevs 'silently) +(define-skeleton html-header + "HTML boilerplate" + "" + "" + \n + "" + \n + "" + \n + "" + \n + "" + \n + "" + _ - + "" + \n + "" + \n + "" + \n + \n + "" + \n + "") -(add-hook 'org-mode-hook #'abbrev-mode) +(setq save-abbrevs 'silently) +(abbrev-mode) ;;; Customization Framework ;; Disable it by making it save to a temp file (stolen from prot) -- 2.39.5