Template Docs + Konfiguration
This commit is contained in:
10
bookmarks
10
bookmarks
@@ -3,9 +3,9 @@
|
|||||||
;;; nevertheless, you probably don't want to edit it.
|
;;; nevertheless, you probably don't want to edit it.
|
||||||
;;; -*- End Of Bookmark File Format Version Stamp -*-
|
;;; -*- End Of Bookmark File Format Version Stamp -*-
|
||||||
(("org-capture-last-stored"
|
(("org-capture-last-stored"
|
||||||
(filename . "~/org/notes/neuer_test.org")
|
(filename . "~/org/docs/testest2.org")
|
||||||
(front-context-string)
|
(front-context-string . ":PROPERTIES:\n:ID")
|
||||||
(rear-context-string . "category: Notes\n")
|
(rear-context-string)
|
||||||
(position . 106)
|
(position . 1)
|
||||||
(last-modified 27091 63383 132609 836000))
|
(last-modified 27094 24899 601951 629000))
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -53,6 +53,12 @@
|
|||||||
(setq s (replace-regexp-in-string "\\`-\\|-\\'" "" s))
|
(setq s (replace-regexp-in-string "\\`-\\|-\\'" "" s))
|
||||||
s))
|
s))
|
||||||
|
|
||||||
|
|
||||||
|
(defun my/org-new-id ()
|
||||||
|
"Erzeuge eine neue Org-ID."
|
||||||
|
(org-id-new))
|
||||||
|
|
||||||
|
|
||||||
(defun my/org-ensure-directory (dir)
|
(defun my/org-ensure-directory (dir)
|
||||||
(make-directory dir t)
|
(make-directory dir t)
|
||||||
dir)
|
dir)
|
||||||
@@ -81,24 +87,26 @@
|
|||||||
(let ((my/org-capture-title title))
|
(let ((my/org-capture-title title))
|
||||||
(org-capture nil key)))))
|
(org-capture nil key)))))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;; ===== Commands =====
|
;; ===== Commands =====
|
||||||
|
|
||||||
(defun my/org-capture-new-task ()
|
(defun my/org-new-task ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((title (read-string "Task-Titel: ")))
|
(let ((title (read-string "Task-Titel: ")))
|
||||||
(my/org-open-or-capture title "n" #'my/org-task-file-from-title)))
|
(my/org-open-or-capture title "n" #'my/org-task-file-from-title)))
|
||||||
|
|
||||||
(defun my/org-capture-new-doc ()
|
(defun my/org-new-doc ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((title (read-string "Doku-Titel: ")))
|
(let ((title (read-string "Doku-Titel: ")))
|
||||||
(my/org-open-or-capture title "d" #'my/org-doc-file-from-title)))
|
(my/org-open-or-capture title "d" #'my/org-doc-file-from-title)))
|
||||||
|
|
||||||
(defun my/org-capture-new-kpi ()
|
(defun my/org-new-kpi ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((title (read-string "KPI-Titel: ")))
|
(let ((title (read-string "KPI-Titel: ")))
|
||||||
(my/org-open-or-capture title "k" #'my/org-doc-file-from-title)))
|
(my/org-open-or-capture title "k" #'my/org-doc-file-from-title)))
|
||||||
|
|
||||||
(defun my/org-capture-new-note ()
|
(defun my/org-new-note ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(find-file (my/org-today-file))
|
(find-file (my/org-today-file))
|
||||||
(when (= (point-max) 1)
|
(when (= (point-max) 1)
|
||||||
@@ -118,11 +126,11 @@
|
|||||||
:unnarrowed t
|
:unnarrowed t
|
||||||
:jump-to-captured t)
|
:jump-to-captured t)
|
||||||
|
|
||||||
("d" "Neue Doku-Datei" plain
|
("d" "Neue Docs-Datei" plain
|
||||||
(file
|
(file
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(my/org-doc-file-from-title my/org-capture-title)))
|
(my/org-doc-file-from-title my/org-capture-title)))
|
||||||
"#+title: %(or my/org-capture-title \"\")\n#+category: Docs\n\n:PROPERTIES:\n:ART: Analyse\n:END:\n\n* Überblick\n%?\n\n* Details\n\n* Referenzen\n"
|
(file "~/.emacs.d/templates/org/docs-template.org")
|
||||||
:unnarrowed t
|
:unnarrowed t
|
||||||
:jump-to-captured t)
|
:jump-to-captured t)
|
||||||
|
|
||||||
@@ -131,13 +139,15 @@
|
|||||||
(file
|
(file
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(my/org-doc-file-from-title my/org-capture-title)))
|
(my/org-doc-file-from-title my/org-capture-title)))
|
||||||
"#+title: %(or my/org-capture-title \"\")\n#+category: Docs\n\n:PROPERTIES:\n:ART: KPI-Steckbrief\n:VERANTWORTLICH: %^{Verantwortlich}\n:BEREICH: %^{Bereich}\n:END:\n\n* Definition\n%?\n\n* Berechnung\n#+begin_src sql\n\n#+end_src\n\n* Datenquelle\n\n* Interpretation\n\n* Hinweise\n"
|
(file "~/.emacs.d/templates/org/kpi-steckbrief-template.org")
|
||||||
|
;; "#+title: %(or my/org-capture-title \"\")\n#+category: Docs\n\n:PROPERTIES:\n:ART: KPI-Steckbrief\n:VERANTWORTLICH: %^{Verantwortlich}\n:BEREICH: %^{Bereich}\n:END:\n\n* Definition\n%?\n\n* Berechnung\n#+begin_src sql\n\n#+end_src\n\n* Datenquelle\n\n* Interpretation\n\n* Hinweise\n"
|
||||||
|
|
||||||
:unnarrowed t
|
:unnarrowed t
|
||||||
:jump-to-captured t)))
|
:jump-to-captured t)))
|
||||||
|
|
||||||
;; ===== Agenda =====
|
;; ===== Agenda =====
|
||||||
|
|
||||||
(setq org-agenda-files '("~/org/todos/" "~/org/docs/"))
|
(setq org-agenda-files '("~/org/todos/"))
|
||||||
|
|
||||||
(provide 'init-capture)
|
(provide 'init-capture)
|
||||||
;;; init-capture.el ends here
|
;;; init-capture.el ends here
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
;;; init-keybindings.el --- Keybindings -*- lexical-binding: t; -*-
|
;;; init-keybindings.el --- Keybindings -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
(global-set-key (kbd "C-c t") #'my/org-capture-new-task)
|
(global-set-key (kbd "C-c t") #'my/org-new-task)
|
||||||
(global-set-key (kbd "C-c d") #'my/org-capture-new-doc)
|
(global-set-key (kbd "C-c d") #'my/org-new-doc)
|
||||||
(global-set-key (kbd "C-c k") #'my/org-capture-new-kpi)
|
(global-set-key (kbd "C-c k") #'my/org-new-kpi)
|
||||||
(global-set-key (kbd "C-c n") #'my/org-capture-new-note)
|
(global-set-key (kbd "C-c n") #'my/org-new-note)
|
||||||
|
|
||||||
|
|
||||||
;; org-roam-keybindings
|
;; org-roam-keybindings
|
||||||
|
|||||||
13
templates/org/docs-template.org
Normal file
13
templates/org/docs-template.org
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
:PROPERTIES:
|
||||||
|
:ID: %(my/org-new-id)
|
||||||
|
:ART: doc
|
||||||
|
:ZUORDNUNG: %^{Bereich||co|at|ku|sp|pw|ag|us|un}
|
||||||
|
:PROJEKT: %^{Projekt|none}
|
||||||
|
:END:
|
||||||
|
|
||||||
|
#+title: %(or my/org-capture-title"")
|
||||||
|
|
||||||
|
* %(or my/org-capture-title"")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
:ART: Kpi-Steckbrief
|
:ART: Kpi-Steckbrief
|
||||||
:VERANTWORTLICH: %^{Verantwortlicher}
|
:VERANTWORTLICH: %^{Verantwortlicher}
|
||||||
:BEREICH: %^{Bereich}
|
:BEREICH: %^{Bereich}
|
||||||
:LAYER: strategisch, taktisch, operativ
|
:LAYER: %^{Layer||strategisch|taktisch|operativ}
|
||||||
:END:
|
:END:
|
||||||
|
|
||||||
#+title: %(or my/org-capture-title"")
|
#+title: %(or my/org-capture-title"")
|
||||||
Binary file not shown.
@@ -1,55 +0,0 @@
|
|||||||
% Created 2026-04-06 Mo 21:40
|
|
||||||
% Intended LaTeX compiler: pdflatex
|
|
||||||
\documentclass[11pt]{article}
|
|
||||||
\usepackage[utf8]{inputenc}
|
|
||||||
\usepackage[T1]{fontenc}
|
|
||||||
\usepackage{graphicx}
|
|
||||||
\usepackage{longtable}
|
|
||||||
\usepackage{wrapfig}
|
|
||||||
\usepackage{rotating}
|
|
||||||
\usepackage[normalem]{ulem}
|
|
||||||
\usepackage{amsmath}
|
|
||||||
\usepackage{amssymb}
|
|
||||||
\usepackage{capt-of}
|
|
||||||
\usepackage{hyperref}
|
|
||||||
\date{\today}
|
|
||||||
\title{\%(or my/org-capture-title"")}
|
|
||||||
\hypersetup{
|
|
||||||
pdfauthor={},
|
|
||||||
pdftitle={\%(or my/org-capture-title"")},
|
|
||||||
pdfkeywords={},
|
|
||||||
pdfsubject={},
|
|
||||||
pdfcreator={Emacs 30.2 (Org mode 9.7.11)},
|
|
||||||
pdflang={English}}
|
|
||||||
\begin{document}
|
|
||||||
|
|
||||||
\maketitle
|
|
||||||
\tableofcontents
|
|
||||||
|
|
||||||
\section{Name}
|
|
||||||
\label{sec:org3887b4b}
|
|
||||||
|
|
||||||
\section{Ziel / Zweck}
|
|
||||||
\label{sec:org88753ba}
|
|
||||||
|
|
||||||
\section{Definition}
|
|
||||||
\label{sec:orga243ffc}
|
|
||||||
|
|
||||||
\section{Formel}
|
|
||||||
\label{sec:orgc2995c4}
|
|
||||||
|
|
||||||
\section{Inhalt / Abgrenzung}
|
|
||||||
\label{sec:orgd457ad1}
|
|
||||||
|
|
||||||
\section{Detaildefinitionen / Besonderheiten}
|
|
||||||
\label{sec:orgb35097d}
|
|
||||||
|
|
||||||
\section{Wirkzusammenhang und Nebenbedingungen}
|
|
||||||
\label{sec:org90a57fc}
|
|
||||||
|
|
||||||
\section{Guardrail-KPIs (Leitplanken -> Schutzfunktion)}
|
|
||||||
\label{sec:orgadbf801}
|
|
||||||
|
|
||||||
\section{Contraint-KPIs (Restriktionen -> )}
|
|
||||||
\label{sec:orga5afd81}
|
|
||||||
\end{document}
|
|
||||||
Reference in New Issue
Block a user