Compare commits

...

3 Commits

4 changed files with 18 additions and 3 deletions

View File

@ -0,0 +1,8 @@
;; -*- lexical-binding: t; -*-
(use-package plantuml-mode
:mode (("\\.uml\\'" . plantuml-mode)
("\\.plantuml\\'" . plantuml-mode))
:custom
(plantuml-default-exec-mode 'executable))
(provide 'init-plantuml)

View File

@ -1,8 +1,11 @@
;; -*- lexical-binding: t; -*-
(defun unix-time-to-string (epoch-seconds &optional format-string)
"Converts an epoch timestamp into a human-readable string."
(interactive "sUnix timestamp: ")
(let ((format-string (or format-string "%FT%T%z")))
(format-time-string format-string epoch-seconds)))
(interactive "nUnix timestamp: ")
(let* ((format-string (or format-string "%FT%T%z"))
(formatted (format-time-string format-string epoch-seconds)))
(if (called-interactively-p)
(message formatted)
formatted)))
(provide 'init-utils)

View File

@ -112,6 +112,7 @@
(require 'init-elfeed)
(require 'init-1pass)
(require 'init-wallabag)
(require 'init-plantuml)
(require 'init-lola)
(require 'handwriting)
(when (string-equal system-type "darwin")

View File

@ -1,8 +1,10 @@
tap "clojure/tools"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "railwaycat/emacsmacport"
brew "clojure/tools/clojure"
brew "cmake"
brew "direnv"
brew "ffmpeg"
@ -21,6 +23,7 @@ brew "node"
brew "pandoc"
brew "pass"
brew "pinentry-mac"
brew "plantuml"
brew "pyenv"
brew "python@3.9"
brew "restic"