2020-09-10 19:12:26 +00:00
|
|
|
# -*- mode: snippet -*-
|
|
|
|
# name: Org template
|
|
|
|
# --
|
2021-04-12 12:03:19 +00:00
|
|
|
#+title: ${1:`
|
2020-09-10 19:12:26 +00:00
|
|
|
(string-join
|
|
|
|
(mapcar #'capitalize
|
|
|
|
;; Replace -,_... with space
|
|
|
|
(split-string
|
|
|
|
(let (case-fold-search)
|
|
|
|
;; Seperating lower from upper: hello|World
|
|
|
|
(replace-regexp-in-string
|
|
|
|
"\\([[:lower:]]\\)\\([[:upper:]]\\)" "\\1 \\2"
|
|
|
|
;; Separating upper from (upper and lower): HTTP|Server
|
|
|
|
(replace-regexp-in-string "\\([[:upper:]]\\)\\([[:upper:]][0-9[:lower:]]\\)"
|
|
|
|
"\\1 \\2" (file-name-base buffer-file-name))))
|
|
|
|
"[^[:word:]0-9]+"
|
|
|
|
)) " " )
|
|
|
|
`}
|
2021-07-22 11:25:18 +00:00
|
|
|
#+date: `(format-time-string "%Y-%m-%d %T %:z")`
|
|
|
|
#+date_modified: `(format-time-string "%Y-%m-%d %T %:z")`
|
2021-04-12 12:03:19 +00:00
|
|
|
#+language: en
|
2020-09-10 19:12:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
$0
|