2025-11-11T20:15:39
This commit is contained in:
92
config.el
92
config.el
@@ -177,8 +177,9 @@
|
|||||||
|
|
||||||
(after! org
|
(after! org
|
||||||
(setq org-startup-with-latex-preview t)
|
(setq org-startup-with-latex-preview t)
|
||||||
(setq font-lock-maximum-decoration t)
|
(setq font-lock-maximum-decoration t))
|
||||||
(font-lock-mode))
|
(add-hook 'org-mode-hook #'turn-on-font-lock)
|
||||||
|
|
||||||
|
|
||||||
(menu-bar--display-line-numbers-mode-relative)
|
(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")
|
||||||
|
|||||||
6
init.el
6
init.el
@@ -104,7 +104,7 @@
|
|||||||
magit ; a git porcelain for Emacs
|
magit ; a git porcelain for Emacs
|
||||||
;;make ; run make tasks from Emacs
|
;;make ; run make tasks from Emacs
|
||||||
;;pass ; password manager for nerds
|
;;pass ; password manager for nerds
|
||||||
;;pdf ; pdf enhancements
|
pdf ; pdf enhancements
|
||||||
;;terraform ; infrastructure as code
|
;;terraform ; infrastructure as code
|
||||||
tmux ; an API for interacting with tmux
|
tmux ; an API for interacting with tmux
|
||||||
tree-sitter ; syntax and parsing, sitting in a tree...
|
tree-sitter ; syntax and parsing, sitting in a tree...
|
||||||
@@ -156,7 +156,7 @@
|
|||||||
;;nim ; python + lisp at the speed of c
|
;;nim ; python + lisp at the speed of c
|
||||||
nix ; I hereby declare "nix geht mehr!"
|
nix ; I hereby declare "nix geht mehr!"
|
||||||
;;ocaml ; an objective camel
|
;;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
|
;;php ; perl's insecure younger brother
|
||||||
;;plantuml ; diagrams for confusing people more
|
;;plantuml ; diagrams for confusing people more
|
||||||
;;graphviz ; diagrams for confusing yourself even more
|
;;graphviz ; diagrams for confusing yourself even more
|
||||||
@@ -186,7 +186,7 @@
|
|||||||
;;(wanderlust +gmail)
|
;;(wanderlust +gmail)
|
||||||
|
|
||||||
:app
|
:app
|
||||||
;;calendar
|
calendar
|
||||||
;;emms
|
;;emms
|
||||||
;;everywhere ; *leave* Emacs!? You must be joking
|
;;everywhere ; *leave* Emacs!? You must be joking
|
||||||
;;irc ; how neckbeards socialize
|
;;irc ; how neckbeards socialize
|
||||||
|
|||||||
@@ -52,3 +52,4 @@
|
|||||||
(package! ox-typst)
|
(package! ox-typst)
|
||||||
(package! org-fragtog)
|
(package! org-fragtog)
|
||||||
(package! ox-reveal)
|
(package! ox-reveal)
|
||||||
|
(package! pdf-tools)
|
||||||
|
|||||||
Reference in New Issue
Block a user