2026-05-29T10:17:10

This commit is contained in:
2026-05-29 10:16:49 +02:00
parent eeade43df7
commit 65e5eb7b14
8 changed files with 74 additions and 7 deletions
+41 -6
View File
@@ -15,6 +15,7 @@
;; better line numbers
(global-display-line-numbers-mode)
(setq display-line-numbers 'relative)
;; y or n instead of yes or no
@@ -27,11 +28,14 @@
;; enable dracula theme
;; (use-package dracula-theme :ensure t :config (load-theme 'dracula) :hook after-init)
;; mark dracula as safe, so it doesnt have to be in custom.el
(setq custom-safe-themes
'("0223215a464167d93b9cfef9b1cdf9b0768ab660f33b3068b647f7b12aa453a0"
"0223215a464167d93b9cfef9b1cdf9b0768ab660f33b3068b647f7b12aa453a0"
default))
(use-package dracula-theme :ensure t :config (load-theme 'dracula))
;; (setq custom-safe-themes
;; '("0223215a464167d93b9cfef9b1cdf9b0768ab660f33b3068b647f7b12aa453a0"
;; "0223215a464167d93b9cfef9b1cdf9b0768ab660f33b3068b647f7b12aa453a0"
;; default))
;; (use-package dracula-theme :ensure t :config (load-theme 'dracula))
;; (use-package gruber-darker-theme :ensure t :config (load-theme 'gruber-darker))
;; (load-theme 'modus-vivendi-tinted)
(load-theme 'modus-operandi-tinted)
;; fixes line number scaling:
(set-face-attribute 'line-number nil :inherit 'default)
@@ -453,6 +457,8 @@
(org-cite-global-bibliography '("~/Bachelor/Literatur/Bibliothek/Bibliothek.bib"))
(citar-bibliography '("~/Bachelor/Literatur/Bibliothek/Bibliothek.bib")))
(define-key LaTeX-mode-map (kbd "C-c c") 'citar-insert-citation)
;; make invisible characters visible
(setq glyphless-char-display-control '((format-control . empty-box) (variation-selectors . thin-space) (no-font . hex-code)))
@@ -537,7 +543,14 @@
;; (global-set-key (kbd "C-c ;") 'toggle-csv-mode)
(define-key csv-mode-map (kbd "C-c ;") 'toggle-csv-mode)
(global-set-key (kbd "C-x S-u") 'undo-redo)
;; (global-set-key (kbd "C-x S-u") 'undo-redo)
;; doesn't work for some reason:
;; https://stackoverflow.com/questions/24177014/how-to-create-a-case-sensitive-keybinding-in-emacs
;; https://stackoverflow.com/questions/38180797/why-the-key-binding-m-s-t-fails-while-c-s-t-works
;; https://emacs.stackexchange.com/questions/83254/clarification-on-how-emacs-binds-capital-letters
(global-set-key (kbd "C-x U") 'undo-redo)
(use-package ob-cypher
:ensure t
@@ -626,6 +639,28 @@
;; (require 'ox-reveal)
;; (setq Org-Reveal-title-slide nil)
(setq dired-dwim-target t)
;; recovery utf8 function:
;; \344 ä
;; \366 ö
;; \374 ü
;; \337 ß
(prefer-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
;; backwards compatibility as default-buffer-file-coding-system
;; is deprecated in 23.2.
(if (boundp 'buffer-file-coding-system)
(setq-default buffer-file-coding-system 'utf-8)
(setq default-buffer-file-coding-system 'utf-8)
)
;; Treat clipboard input as UTF-8 string first; compound text next, etc.
(setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING))
;; flycheck told me to do this:
+6
View File
@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: newacronym982576511041
# key: nac
# --
\newacronym{${1}}{${1:$(upcase yas-text)}}{${2}}
+1 -1
View File
@@ -4,4 +4,4 @@
# uuid: c
# condition: (not (save-restriction (widen) (texmathp)))
# --
\cite{$1} $0
\cite{$1} $0
+6
View File
@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: newacronym
# key: nac
# --
\newacronym{${1}}{${1:$(upcase yas-text)}}{${2}}
+5
View File
@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: newacronym
# key: nac
# --
\newacronym{${1}}{${1:(capitalize yas-text)}}{${2}}
+5
View File
@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: note
# key: note
# --
\note{$1}$2
+5
View File
@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: note
# key: note
# --
\note{$1}$1
+5
View File
@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: texttt
# key: ttt
# --
\texttt{$1}$2