Compare commits

..

No commits in common. "2beaac573d6b90388874b3770a5c4d17f7f8701d" and "b644b412a0bba9193fbc1da320a497285bb95504" have entirely different histories.

View file

@ -2344,13 +2344,16 @@ testing in my [[file:~/org/snamellit/testfile.org::*User Journey Graph][org babe
**** Support Mermaid Diagrams in Babel Blocks **** Support Mermaid Diagrams in Babel Blocks
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
;; enable mermaid for org-babel ;; enable mermaid for org-babel
(use-package mermaid-mode (use-package ob-mermaid
:ensure t :ensure t
:demand t :demand t
:mode "\\.mmd\\'") :config
(message "configuring ob-mermaid")
(org-babel-do-load-languages
'org-babel-load-languages
(add-to-list 'org-babel-load-languages '(mermaid . t))))
#+END_SRC #+END_SRC
#+RESULTS: #+RESULTS:
@ -3226,39 +3229,12 @@ Configures the ~0x0~ package for easily sharing code snippets and files:
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
;; configure 0x0 ;; configure 0x0
(use-package 0x0 (use-package 0x0
:disabled
:ensure t :ensure t
:config (setq 0x0-use-curl t)) :config (setq 0x0-use-curl t))
(defun 0x0-upload-text ()
(interactive)
(let* ((contents
(if (use-region-p)
(buffer-substring-no-properties (region-beginning) (region-end))
(buffer-string)))
(temp-file (make-temp-file "0x0" nil ".txt" contents)))
(message "Sending %s to 0x0.st..." temp-file)
(let ((url (string-trim-right
(shell-command-to-string
(format "curl -s -F'file=@%s' -Fsecret= -Fexpires=24 https://0x0.st"
temp-file)))))
(message "Yanked ‘%s’ into kill ring." url)
(kill-new url)
(delete-file temp-file))))
(defun 0x0-upload-file (file-path)
(interactive "fSelect a file to upload: ")
(message "Sending %s to 0x0.st..." file-path)
(let ((url (string-trim-right
(shell-command-to-string
(format "curl -s -F'file=@%s' -Fsecret= -Fexpires=24 https://0x0.st"
(expand-file-name file-path))))))
(message "Yanked ‘%s’ into kill ring." url)
(kill-new url)))
#+END_SRC #+END_SRC
#+RESULTS: #+RESULTS:
: +0x0-upload-file : [nil 26279 35497 183387 nil elpaca-process-queues nil nil 963000 nil]
The commands this package offers: The commands this package offers: