Compare commits
3 Commits
58da56006c
...
7dad64f80f
Author | SHA1 | Date | |
---|---|---|---|
7dad64f80f | |||
5f94f08c32 | |||
ec46d4dc77 |
8
emacs/.emacs.d/config/init-plantuml.el
Normal file
8
emacs/.emacs.d/config/init-plantuml.el
Normal 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)
|
@ -1,8 +1,11 @@
|
|||||||
;; -*- lexical-binding: t; -*-
|
;; -*- lexical-binding: t; -*-
|
||||||
(defun unix-time-to-string (epoch-seconds &optional format-string)
|
(defun unix-time-to-string (epoch-seconds &optional format-string)
|
||||||
"Converts an epoch timestamp into a human-readable string."
|
"Converts an epoch timestamp into a human-readable string."
|
||||||
(interactive "sUnix timestamp: ")
|
(interactive "nUnix timestamp: ")
|
||||||
(let ((format-string (or format-string "%FT%T%z")))
|
(let* ((format-string (or format-string "%FT%T%z"))
|
||||||
(format-time-string format-string epoch-seconds)))
|
(formatted (format-time-string format-string epoch-seconds)))
|
||||||
|
(if (called-interactively-p)
|
||||||
|
(message formatted)
|
||||||
|
formatted)))
|
||||||
|
|
||||||
(provide 'init-utils)
|
(provide 'init-utils)
|
||||||
|
@ -112,6 +112,7 @@
|
|||||||
(require 'init-elfeed)
|
(require 'init-elfeed)
|
||||||
(require 'init-1pass)
|
(require 'init-1pass)
|
||||||
(require 'init-wallabag)
|
(require 'init-wallabag)
|
||||||
|
(require 'init-plantuml)
|
||||||
(require 'init-lola)
|
(require 'init-lola)
|
||||||
(require 'handwriting)
|
(require 'handwriting)
|
||||||
(when (string-equal system-type "darwin")
|
(when (string-equal system-type "darwin")
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
|
tap "clojure/tools"
|
||||||
tap "homebrew/bundle"
|
tap "homebrew/bundle"
|
||||||
tap "homebrew/cask"
|
tap "homebrew/cask"
|
||||||
tap "homebrew/cask-versions"
|
tap "homebrew/cask-versions"
|
||||||
tap "homebrew/core"
|
tap "homebrew/core"
|
||||||
tap "railwaycat/emacsmacport"
|
tap "railwaycat/emacsmacport"
|
||||||
|
brew "clojure/tools/clojure"
|
||||||
brew "cmake"
|
brew "cmake"
|
||||||
brew "direnv"
|
brew "direnv"
|
||||||
brew "ffmpeg"
|
brew "ffmpeg"
|
||||||
@ -21,6 +23,7 @@ brew "node"
|
|||||||
brew "pandoc"
|
brew "pandoc"
|
||||||
brew "pass"
|
brew "pass"
|
||||||
brew "pinentry-mac"
|
brew "pinentry-mac"
|
||||||
|
brew "plantuml"
|
||||||
brew "pyenv"
|
brew "pyenv"
|
||||||
brew "python@3.9"
|
brew "python@3.9"
|
||||||
brew "restic"
|
brew "restic"
|
||||||
|
Loading…
Reference in New Issue
Block a user