From: rush Date: Fri, 7 Aug 2026 14:34:11 +0000 (-0400) Subject: Add skeleton and abbrev for html boilerplate, always in abbrev-mode X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=bdf6086ffc83726e06a6f632ba98f9658dacb458;p=emacsinit.git Add skeleton and abbrev for html boilerplate, always in abbrev-mode --- 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)