]> git.earman.xyz Git - emacsinit.git/commitdiff
Add SRC_BLOCK snippet, force utf-8
authorrearman <rearman@r717.net>
Thu, 9 May 2024 20:26:23 +0000 (16:26 -0400)
committerrearman <rearman@r717.net>
Thu, 9 May 2024 20:26:23 +0000 (16:26 -0400)
abbrev_defs
init.org

index f55bff7331325ba3b0800b3c2226dd4e573b5796..ec5461d0485a79cb5d2bd6a281df14629fdf7222 100644 (file)
@@ -1,7 +1,7 @@
 ;;-*-coding: utf-8;-*-
 (define-abbrev-table 'org-mode-abbrev-table
-  '(("selisp" "" skel-org-block-elisp)
+  '(("ssrc" "" skel-org-block)
+    ("selisp" "" skel-org-block-elisp)
     ("sfac" "" skel-facility-properties)
     ("sper" "" skel-person-properties)
-    ("swo" "" skel-workorder-properties)
-    ("smet" "" skel-meeting-properties)))
+    ("swo" "" skel-workorder-properties)))
index 51b91d923cb7f8e95c8ff419e070a673b263040b..aa2d09c3cde7dca7784187799f9c6fb5eb6a7126 100644 (file)
--- a/init.org
+++ b/init.org
@@ -373,6 +373,18 @@ I want these things every time, or at least setting them this way worked when a
               cursor-in-non-selected-windows 'hollow)
 #+END_SRC
 
+*** UTF-8
+:PROPERTIES:
+:ID:       79eb9b8c-84a3-4dcb-808f-ef7ff26eb829
+:END:
+Force emacs to use UTF-8 so I avoid prompts on save
+#+BEGIN_SRC emacs-lisp
+(set-language-environment 'utf-8)
+(set-default-coding-systems 'utf-8)
+(set-keyboard-coding-system 'utf-8-unix)
+(set-terminal-coding-system 'utf-8-unix)
+#+END_SRC
+
 *** Backup/Autosave
 :PROPERTIES:
 :ID:       caa6e592-9e74-42a7-837a-f7c650a43b11
@@ -867,6 +879,19 @@ Start up =abbrev-mode= for org
 :PROPERTIES:
 :ID:       fffe9361-bae6-4ceb-8a71-5d06e711528d
 :END:
+***** General source Block
+:PROPERTIES:
+:ID:       f469a595-d370-46b5-8d8e-afab9a816c97
+:END:
+#+BEGIN_SRC emacs-lisp
+(define-skeleton skel-org-block
+  "Insert an org source code block"
+  ""
+  "#+BEGIN_SRC "
+  _ - \n\n
+  "#+END_SRC\n")
+#+END_SRC
+
 ***** Emacs Lisp source Block
 :PROPERTIES:
 :ID:       eb47039c-d264-4a61-8da8-7659cbc02b62
@@ -879,7 +904,6 @@ Start up =abbrev-mode= for org
   _ - \n
   "#+END_SRC\n")
 #+END_SRC
-
 ***** Facility properties block
 :PROPERTIES:
 :ID:       30630b60-66ca-40ed-a30b-9a95a2be7c70
@@ -948,11 +972,11 @@ Superceded by [[*Templates][Meeting Capture Template]]
 #+BEGIN_SRC emacs-lisp  :tangle ./abbrev_defs
 ;;-*-coding: utf-8;-*-
 (define-abbrev-table 'org-mode-abbrev-table
-  '(("selisp" "" skel-org-block-elisp)
+  '(("ssrc" "" skel-org-block)
+    ("selisp" "" skel-org-block-elisp)
     ("sfac" "" skel-facility-properties)
     ("sper" "" skel-person-properties)
-    ("swo" "" skel-workorder-properties)
-    ("smet" "" skel-meeting-properties)))
+    ("swo" "" skel-workorder-properties)))
 #+END_SRC
 
 *** Auto-archive