From 8efb705c899edd17564b4b56ffdb1eae3c6cbf6f Mon Sep 17 00:00:00 2001 From: rh17s15 Date: Tue, 11 Nov 2025 20:15:36 +0100 Subject: [PATCH] 2025-11-11T20:15:39 --- config.el | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++-- init.el | 6 ++-- packages.el | 1 + 3 files changed, 94 insertions(+), 5 deletions(-) diff --git a/config.el b/config.el index 57f1bc2..d403a2c 100644 --- a/config.el +++ b/config.el @@ -177,8 +177,9 @@ (after! org (setq org-startup-with-latex-preview t) - (setq font-lock-maximum-decoration t) - (font-lock-mode)) + (setq font-lock-maximum-decoration t)) +(add-hook 'org-mode-hook #'turn-on-font-lock) + (menu-bar--display-line-numbers-mode-relative) @@ -256,3 +257,90 @@ ) ) + + +;; ==================== +;; insert date and time + +(defvar current-date-time-format "%Y-%m-%dT%H:%M:%S" + "Format of date to insert with `insert-current-date-time' func +See help of `format-time-string' for possible replacements") + +(defvar current-time-format "%H:%M:%S" + "Format of date to insert with `insert-current-time' func. +Note the weekly scope of the command's precision.") + +(defun insert-current-date-time () + "insert the current date and time into current buffer. +Uses `current-date-time-format' for the formatting the date/time." + (interactive) + (insert (format-time-string current-date-time-format (current-time))) + ) + +(defun insert-current-time () + "insert the current time (1-week scope) into the current buffer." + (interactive) + (insert (format-time-string current-time-format (current-time))) + (insert "\n") + ) + +;;(map! "SPC i t" #'insert-current-date-time) +;; (global-set-key "SPC i t" 'insert-current-date-time) +;; (global-set-key "\C-c\C-t" 'insert-current-time) + +(map! :map evil-normal-state-map "SPC i t" #'insert-current-date-time) +;; for image splash +;; (setq fancy-splash-image (concat doom-private-dir "e.png")) + +;; https://x-e.ro _ ____ +;; : \ | \ . +;; | \ . | : |\ /\ +;; . | :|\__ | | | \ / \ +;; |\ | |! \ \ | | | |\ / / +;; \"-.______ | \: ||\ \ \ | | | | \ / / +;; \_ "-_| |\ || \ \/ | |___| ! |\____/ _/-. /\ +;; "-_ ____: |_\ || \/ ___\ __ _// | | ___ \---" / +;; \ \ | _____, /___\___\/ / / \_! | // _/ / / +;; ___\_ \__| | | __. _/____ / / / > // / \/ +;; //_________| / |/ |/ \__// / / /_/ \/ +;; | / | : | / /__/ +;; |/ |/ E V A N G E L I O N +;; + + +(defun evangelion-splash () + (let* ((banner '(" _ ____ " + " : \\ | \\ . " + " | \\ . | : |\\ /\\ " + " . | :|\\__ | | | \\ / \\ " + " |\\ | |! \\ \\ | | | |\\ / / " + " \\\"-.______ | \\: ||\\ \\ \\ | | | | \\ / / " + " \\_ \"-_| |\\ || \\ \\/ | |___| ! |\\____/ _/-. /\\ " + " \"-_ ____: |_\\ || \\/ ___\\ __ _// | | ___ \\---\" / " + " \\ \\ | _____, /___\\___\\/ / / \\_! | // _/ / / " + " ___\\_ \\__| | | __. _/____ / / / > // / \\/ " + " //_________| / |/ |/ \\__// / / /_/ \\/ " + " | / | : | / /__/ " + " |/ |/ " + " E M A C S ")) + (longest-line (apply #'max (mapcar #'length banner)))) + (put-text-property + (point) + (dolist (line banner (point)) + (insert (+doom-dashboard--center + +doom-dashboard--width + (concat line (make-string (max 0 (- longest-line (length line))) 50))) + "\n")) + 'face 'doom-dashboard-banner))) + +(setq +doom-dashboard-ascii-banner-fn #'evangelion-splash) + +;; .doom.d/config.el +;; (let ((alternatives '("nameoffirstfile.svg" +;; "nameofanotherfile.png" +;; "nameofathirdfile.svg"))) +;; (setq fancy-splash-image +;; (concat doom-private-dir "splash/" +;; (nth (random (length alternatives)) alternatives)))) + +(setq vterm-shell "/usr/bin/env zsh") diff --git a/init.el b/init.el index baf1067..65e7c19 100644 --- a/init.el +++ b/init.el @@ -104,7 +104,7 @@ magit ; a git porcelain for Emacs ;;make ; run make tasks from Emacs ;;pass ; password manager for nerds - ;;pdf ; pdf enhancements + pdf ; pdf enhancements ;;terraform ; infrastructure as code tmux ; an API for interacting with tmux tree-sitter ; syntax and parsing, sitting in a tree... @@ -156,7 +156,7 @@ ;;nim ; python + lisp at the speed of c nix ; I hereby declare "nix geht mehr!" ;;ocaml ; an objective camel - org ; organize your plain life in plain text + (org +pretty +present +journal) ; organize your plain life in plain text ;;php ; perl's insecure younger brother ;;plantuml ; diagrams for confusing people more ;;graphviz ; diagrams for confusing yourself even more @@ -186,7 +186,7 @@ ;;(wanderlust +gmail) :app - ;;calendar + calendar ;;emms ;;everywhere ; *leave* Emacs!? You must be joking ;;irc ; how neckbeards socialize diff --git a/packages.el b/packages.el index e2aeb9f..128ae8f 100644 --- a/packages.el +++ b/packages.el @@ -52,3 +52,4 @@ (package! ox-typst) (package! org-fragtog) (package! ox-reveal) +(package! pdf-tools)