;;-*-coding: utf-8;-*-
-(define-abbrev-table 'org-mode-abbrev-table
- '(("ssrc" "" skel-org-block)
- ("selisp" "" skel-org-block-elisp)
- ("sfac" "" skel-facility-properties)
- ("sper" "" skel-person-properties)
- ("swo" "" skel-workorder-properties)))
+(when (equal system-type 'windows-nt)
+ (define-abbrev-table 'global-abbrev-table
+ '(
+ ("hfac" "" howm-facility :count 0)
+ ("hper" "" howm-person :count 0)
+ ("oelisp" "" skel-org-block-elisp :count 0)
+ ("ofac" "" skel-facility-properties :count 0)
+ ("oper" "" skel-person-properties :count 0)
+ ("osrc" "" skel-org-block :count 0)
+ ("owo" "" skel-workorder-properties :count 0)
+ )))
save-abbrevs 'silently)
(add-hook 'org-mode-hook #'abbrev-mode)
+(add-hook 'howm-mode-hook #'abbrev-mode)
;; IELM
(setq ielm-history-file-name (expand-file-name "ielm/history" user-emacs-directory))
(when (equal system-type 'windows-nt)
(setq howm-template-list '("= %title%cursor\n%date %file\n\n"
- "= %title%cursor\n%date %file\n\nSystemNotes\nBeforeStartup\nPlcProgram\nHumanMachineInterface\nDuringStartup\nAfterStartup\n"
- "= %title%cursor\n%date %file\n\nMeeting Attendees: \n"
- "= @%title%cursor\n%date %file\n\nCompany: \nPosition: \nEmail: \nOffice: \nCell: \n")
+ "= %title%cursor Meeting\n%date %file\n\nAttendees: \n"
+ "= @%title%cursor\n%date %file\n\n")
howm-template howm-template-list))
(use-package howm
"* TODO Workorder "
_ - ":#:customer:city:state:topics:\n")
+(define-skeleton howm-facility
+ "Insert the structure for a facility note in HOWM"
+ ""
+ "SystemNotes"
+ _ - \n
+ "BeforeStartup\n"
+ "PLC\n"
+ "HMI\n"
+ "Commissioning\n"
+ "AfterStartup\n")
+
+(define-skeleton howm-person
+ "Insert the structure for a person note in HOWM"
+ ""
+ "Company: "
+ _ - \n
+ "Position: \n"
+ "Email: \n"
+ "Office: \n"
+ "Cell: \n")
+
(provide 're-skeletons)
;;; re-skeletons.el ends here