Erweiterung Templates und Anpassung Init-Files
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
|
|
||||||
(("~/org/notes/neuer_neuer_test.org" "c1f0c054-6a3b-48e9-8f63-61c1061fa080") ("~/org/notes/neuer_test.org" "e136ede2-6fe1-48d9-9b43-dcbdb6e1c925"))
|
(("~/org/20260410092813-bjorn_bauml.org" "6fe5a97d-02ba-40f7-ab20-068e893d99bf") ("~/org/notes/neuer_neuer_test.org" "c1f0c054-6a3b-48e9-8f63-61c1061fa080") ("~/org/notes/neuer_test.org" "e136ede2-6fe1-48d9-9b43-dcbdb6e1c925") ("~/org/daily/2026-04-09.org" "e093392c-28f3-4f90-bb36-59efb35ec079"))
|
||||||
|
|||||||
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/docs/test.org")
|
(filename . "~/org/20260410092813-bjorn_bauml.org")
|
||||||
(front-context-string . ":PROPERTIES:\n:ID")
|
(front-context-string)
|
||||||
(rear-context-string)
|
(rear-context-string . "le: Björn Bäuml\n")
|
||||||
(position . 1)
|
(position . 89)
|
||||||
(last-modified 27094 28081 955795 991000))
|
(last-modified 27096 42652 302432 121000))
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
| horizontal splitten | C-x 2 |
|
| horizontal splitten | C-x 2 |
|
||||||
| vertikal splitte | C-x 3 |
|
| vertikal splitte | C-x 3 |
|
||||||
| Fenster wechseln | C-x o |
|
| Fenster wechseln | C-x o |
|
||||||
|
| Fenster schließen | C-x 0 |
|
||||||
|
|
||||||
|
|
||||||
** Buffer Shortcuts
|
** Buffer Shortcuts
|
||||||
@@ -73,3 +74,44 @@
|
|||||||
| redo | C-g C-/ |
|
| redo | C-g C-/ |
|
||||||
| Zeile nach oben verschieben | M-↑ |
|
| Zeile nach oben verschieben | M-↑ |
|
||||||
| Zeile nach unten verschieben | M-↓ |
|
| Zeile nach unten verschieben | M-↓ |
|
||||||
|
| Block aus-/einkommentieren | C-c # |
|
||||||
|
|
||||||
|
|
||||||
|
** Suchen (consult-ripgrep)
|
||||||
|
|
||||||
|
| Funktion | Shortcut |
|
||||||
|
|--------------------------+----------|
|
||||||
|
| Über Dateiinhalte suchen | C-c s |
|
||||||
|
| In einer Datei suchen | C-c f |
|
||||||
|
|
||||||
|
|
||||||
|
** Dateien suchen (org-roam-nodes)
|
||||||
|
|
||||||
|
| Funktion | Shortcut |
|
||||||
|
|--------------+----------|
|
||||||
|
| Nodes suchen | C-c r f |
|
||||||
|
|
||||||
|
|
||||||
|
** Links in org-roam
|
||||||
|
|
||||||
|
| Funktion | Shortcut |
|
||||||
|
|----------------------------------+----------|
|
||||||
|
| Neuen Link erstellen bzw. suchen | C-c r i |
|
||||||
|
| Link folgen | C-c C-o |
|
||||||
|
|
||||||
|
|
||||||
|
Links werden i.d.R. in einem Split-Fenster geöffnet!
|
||||||
|
|
||||||
|
|
||||||
|
* Latex
|
||||||
|
|
||||||
|
** Setupfile-Vorlage
|
||||||
|
#+SETUPFILE: /home/knedlik/.emacs.d/templates/org/latex-template.org
|
||||||
|
|
||||||
|
Einfach oben über der Überschrift einfügen! Dann wird die Latex-Vorlage für der Erstellung von PDF-Files gezogen.
|
||||||
|
|
||||||
|
|
||||||
|
** Seitenumbruch
|
||||||
|
#+LATEX: \newpage
|
||||||
|
|
||||||
|
An der Stelle im Dokument einfügen, an der man umbrechen möchte.
|
||||||
|
|||||||
4
init.el
4
init.el
@@ -13,8 +13,8 @@
|
|||||||
(require 'init-markdown)
|
(require 'init-markdown)
|
||||||
(require 'init-search)
|
(require 'init-search)
|
||||||
(require 'init-capture)
|
(require 'init-capture)
|
||||||
(require 'init-org-r)
|
(require 'init-org-roam)
|
||||||
|
(require 'init-system)
|
||||||
|
|
||||||
|
|
||||||
;; ;;; Package-System (optional, aber sinnvoll)
|
;; ;;; Package-System (optional, aber sinnvoll)
|
||||||
|
|||||||
@@ -19,6 +19,19 @@
|
|||||||
(find-file "~/.emacs.d/cheatsheet.org"))
|
(find-file "~/.emacs.d/cheatsheet.org"))
|
||||||
(global-set-key (kbd "C-c c") #'my/open-cheatsheet)
|
(global-set-key (kbd "C-c c") #'my/open-cheatsheet)
|
||||||
|
|
||||||
|
;; consult-ripgrep direkt an Ordner Org binden
|
||||||
|
(defun my/search-org ()
|
||||||
|
(interactive)
|
||||||
|
(consult-ripgrep (expand-file-name "~/org/")))
|
||||||
|
|
||||||
|
(global-set-key (kbd "C-c s") #'my/search-org)
|
||||||
|
;;(global-set-key (kbd "C-c s") #'consult-ripgrep)
|
||||||
|
(global-set-key (kbd "C-c f") #'consult-line)
|
||||||
|
(global-set-key (kbd "C-c b") #'consult-buffer)
|
||||||
|
(global-set-key (kbd "C-c g") #'consult-git-grep)
|
||||||
|
|
||||||
|
(global-set-key (kbd "C-c #") #'comment-dwim)
|
||||||
|
|
||||||
|
|
||||||
(provide 'init-keybindings)
|
(provide 'init-keybindings)
|
||||||
;;; init-keybindings.el ends here
|
;;; init-keybindings.el ends here
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
;; -*- lexical-binding: t; -*-
|
|
||||||
(require 'org-roam)
|
|
||||||
|
|
||||||
(setq org-roam-directory (file-truename "~/org"))
|
|
||||||
(setq org-roam-db-location
|
|
||||||
(expand-file-name "org-roam.db" user-emacs-directory))
|
|
||||||
|
|
||||||
(org-roam-db-autosync-mode)
|
|
||||||
|
|
||||||
(setq org-roam-capture-templates
|
|
||||||
'(("d" "default" plain
|
|
||||||
"%?"
|
|
||||||
:if-new (file+head
|
|
||||||
"docs/${slug}.org"
|
|
||||||
"#+title: ${title}\n#+category: Docs\n")
|
|
||||||
:unnarrowed t)
|
|
||||||
|
|
||||||
("n" "note" plain
|
|
||||||
"%?"
|
|
||||||
:if-new (file+head
|
|
||||||
"notes/${slug}.org"
|
|
||||||
"#+title: ${title}\n#+category: Notes\n")
|
|
||||||
:unnarrowed t)))
|
|
||||||
|
|
||||||
|
|
||||||
(provide 'init-org-r)
|
|
||||||
33
lisp/init-org-roam.el
Normal file
33
lisp/init-org-roam.el
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
;; -*- lexical-binding: t; -*-
|
||||||
|
(require 'org-roam)
|
||||||
|
|
||||||
|
(setq org-roam-directory (file-truename "~/org"))
|
||||||
|
(setq org-roam-dailies-directory "notes/")
|
||||||
|
(setq org-roam-db-location
|
||||||
|
(expand-file-name "org-roam.db" user-emacs-directory))
|
||||||
|
|
||||||
|
(org-roam-db-autosync-mode)
|
||||||
|
|
||||||
|
;; (setq org-roam-capture-templates
|
||||||
|
;; '(("d" "default" plain
|
||||||
|
;; "%?"
|
||||||
|
;; :if-new (file+head
|
||||||
|
;; "docs/${slug}.org"
|
||||||
|
;; "#+title: ${title}\n#+category: Docs\n")
|
||||||
|
;; :unnarrowed t)
|
||||||
|
|
||||||
|
;; ("n" "note" plain
|
||||||
|
;; "%?"
|
||||||
|
;; :if-new (file+head
|
||||||
|
;; "notes/${slug}.org"
|
||||||
|
;; "#+title: ${title}\n#+category: Notes\n")
|
||||||
|
;; :unnarrowed t)))
|
||||||
|
|
||||||
|
(setq org-roam-dailies-capture-templates
|
||||||
|
'(("d" "default" entry
|
||||||
|
"* %<%H:%M> %?\n"
|
||||||
|
:target
|
||||||
|
(file+head "%<%Y-%m-%d>.org"
|
||||||
|
"#+title: %<%Y-%m-%d>\n\n"))))
|
||||||
|
|
||||||
|
(provide 'init-org-roam)
|
||||||
@@ -4,6 +4,18 @@
|
|||||||
|
|
||||||
(add-hook 'org-mode-hook #'my/text-indentation-setup)
|
(add-hook 'org-mode-hook #'my/text-indentation-setup)
|
||||||
(add-hook 'org-mode-hook #'org-indent-mode)
|
(add-hook 'org-mode-hook #'org-indent-mode)
|
||||||
|
(add-hook 'org-mode-hook
|
||||||
|
(lambda ()
|
||||||
|
(local-set-key (kbd "RET") #'org-return)))
|
||||||
|
|
||||||
|
(setq org-agenda-files '("~/org"))
|
||||||
|
(setq org-complete-tags-always-offer-all-agenda-tags t)
|
||||||
|
|
||||||
|
(defun my/org-export-to-tmp-pdf ()
|
||||||
|
(interactive)
|
||||||
|
(let ((org-export-show-temporary-export-buffer nil))
|
||||||
|
(org-latex-export-to-pdf nil nil nil t nil "/tmp/tmp.tex")))
|
||||||
|
|
||||||
|
|
||||||
(provide 'init-org)
|
(provide 'init-org)
|
||||||
|
|
||||||
|
|||||||
@@ -22,10 +22,10 @@
|
|||||||
"rg --null --line-buffered --color=never --max-columns=300 --path-separator / --smart-case --no-heading --line-number .")
|
"rg --null --line-buffered --color=never --max-columns=300 --path-separator / --smart-case --no-heading --line-number .")
|
||||||
|
|
||||||
;; Nützliche Keybindings
|
;; Nützliche Keybindings
|
||||||
(global-set-key (kbd "C-c s") #'consult-ripgrep)
|
;; (global-set-key (kbd "C-c s") #'consult-ripgrep)
|
||||||
(global-set-key (kbd "C-c f") #'consult-line)
|
;; (global-set-key (kbd "C-c f") #'consult-line)
|
||||||
(global-set-key (kbd "C-c b") #'consult-buffer)
|
;; (global-set-key (kbd "C-c b") #'consult-buffer)
|
||||||
(global-set-key (kbd "C-c g") #'consult-git-grep)
|
;; (global-set-key (kbd "C-c g") #'consult-git-grep)
|
||||||
|
|
||||||
(provide 'init-search)
|
(provide 'init-search)
|
||||||
;;; init-search.el ends here
|
;;; init-search.el ends here
|
||||||
|
|||||||
9
lisp/init-system.el
Normal file
9
lisp/init-system.el
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
;;; init-system.el --- System-/OS-spezifische Konfiguration -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
(require 'subr-x)
|
||||||
|
|
||||||
|
(setq org-file-apps
|
||||||
|
'((auto-mode . emacs)
|
||||||
|
("\\.pdf\\'" . "firefox \"%s\"")))
|
||||||
|
|
||||||
|
(provide 'init-system)
|
||||||
@@ -98,3 +98,5 @@
|
|||||||
(save-buffer)))
|
(save-buffer)))
|
||||||
|
|
||||||
(run-with-idle-timer 2 t #'my/auto-save-if-modified)
|
(run-with-idle-timer 2 t #'my/auto-save-if-modified)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,16 @@
|
|||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:ID: %(my/org-new-id)
|
:ID: %(my/org-new-id)
|
||||||
:ART: doc
|
:DATUM: %<%Y-%m-%d>
|
||||||
|
:ART: %^{Art|allgemein|report|analyse|software}
|
||||||
:ZUORDNUNG: %^{Bereich||co|at|ku|sp|pw|ag|us|un}
|
:ZUORDNUNG: %^{Bereich||co|at|ku|sp|pw|ag|us|un}
|
||||||
:PROJEKT: %^{Projekt|none}
|
:PROJEKT: %^{Projekt|none}
|
||||||
|
:ANFORDERER: none
|
||||||
:END:
|
:END:
|
||||||
|
|
||||||
#+title: %(or my/org-capture-title"")
|
#+title: %(or my/org-capture-title"")
|
||||||
|
|
||||||
* %(or my/org-capture-title"")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
47
templates/org/latex-template.org
Normal file
47
templates/org/latex-template.org
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
#+LATEX_COMPILER: xelatex
|
||||||
|
#+OPTIONS: toc:nil num:nil title:nil author:nil date:nil
|
||||||
|
|
||||||
|
#+LATEX_CLASS: article
|
||||||
|
|
||||||
|
#+LATEX_HEADER: \usepackage[a4paper,margin=2cm]{geometry}
|
||||||
|
#+LATEX_HEADER: \usepackage{xcolor}
|
||||||
|
#+LATEX_HEADER: \usepackage{fontspec}
|
||||||
|
#+LATEX_HEADER: \setmainfont{DejaVu Serif}
|
||||||
|
#+LATEX_HEADER: \usepackage{datetime2}
|
||||||
|
#+LATEX_HEADER: \usepackage{fancyhdr}
|
||||||
|
#+LATEX_HEADER: \usepackage{lastpage}
|
||||||
|
#+LATEX_HEADER: \usepackage{titling}
|
||||||
|
|
||||||
|
#+LATEX_HEADER: \newcommand{\shortdate}{\ifnum\day<10 0\fi\number\day.\ifnum\month<10 0\fi\number\month.\number\year}
|
||||||
|
|
||||||
|
#+LATEX_HEADER: \pagestyle{fancy}
|
||||||
|
#+LATEX_HEADER: \fancyhf{}
|
||||||
|
#+LATEX_HEADER: \renewcommand{\headrulewidth}{0.4pt}
|
||||||
|
#+LATEX_HEADER: \renewcommand{\footrulewidth}{0.4pt}
|
||||||
|
|
||||||
|
#+LATEX_HEADER: \makeatletter
|
||||||
|
#+LATEX_HEADER: \lhead{\@title}
|
||||||
|
#+LATEX_HEADER: \makeatother
|
||||||
|
#+LATEX_HEADER: \rhead{\nouppercase{\leftmark}}
|
||||||
|
#+LATEX_HEADER: \lfoot{\textbf{\textcolor{blue}{GMN}} \textit{Controlling}}
|
||||||
|
#+LATEX_HEADER: \cfoot{\thepage\ /\ \pageref{LastPage}}
|
||||||
|
#+LATEX_HEADER: \rfoot{\shortdate}
|
||||||
|
|
||||||
|
#+LATEX_HEADER: \fancypagestyle{plain}{%
|
||||||
|
#+LATEX_HEADER: \fancyhf{}
|
||||||
|
#+LATEX_HEADER: \renewcommand{\headrulewidth}{0.4pt}
|
||||||
|
#+LATEX_HEADER: \renewcommand{\footrulewidth}{0.4pt}
|
||||||
|
#+LATEX_HEADER: \lhead{Kennzahlensystem}
|
||||||
|
#+LATEX_HEADER: \rhead{\nouppercase{\leftmark}}
|
||||||
|
#+LATEX_HEADER: \lfoot{\textbf{\textcolor{blue}{GMN}} \textit{Controlling}}
|
||||||
|
#+LATEX_HEADER: \cfoot{\thepage\ /\ \pageref{LastPage}}
|
||||||
|
#+LATEX_HEADER: \rfoot{\shortdate}
|
||||||
|
#+LATEX_HEADER: }
|
||||||
|
|
||||||
|
#+LATEX_HEADER: \pretitle{\begin{center}\Large\bfseries}
|
||||||
|
#+LATEX_HEADER: \posttitle{\par\end{center}\vspace{1em}}
|
||||||
|
|
||||||
|
#+LATEX_HEADER: \hypersetup{hidelinks}
|
||||||
|
|
||||||
|
|
||||||
|
#+EXPORT_FILE_NAME: /tmp/tmp
|
||||||
13
templates/org/report-template.org
Normal file
13
templates/org/report-template.org
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
:PROPERTIES:
|
||||||
|
:ID: %(my/org-new-id)
|
||||||
|
:ART: Report
|
||||||
|
: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"")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -21,3 +21,4 @@
|
|||||||
#+LATEX_HEADER: \lfoot{\textbf{\textcolor{blue}{GMN}} \textit{Controlling}}
|
#+LATEX_HEADER: \lfoot{\textbf{\textcolor{blue}{GMN}} \textit{Controlling}}
|
||||||
#+LATEX_HEADER: \cfoot{\thepage\ /\ \pageref{LastPage}}
|
#+LATEX_HEADER: \cfoot{\thepage\ /\ \pageref{LastPage}}
|
||||||
#+LATEX_HEADER: \rfoot{\shortdate}
|
#+LATEX_HEADER: \rfoot{\shortdate}
|
||||||
|
#+EXPORT_FILE_NAME: /tmp/tmp
|
||||||
|
|||||||
Reference in New Issue
Block a user