<commit_before>;;; lang/org/+capture.el

;; Sets up two `org-capture' workflows that I like:
;;
;; 1. The traditional way: invoking `org-capture' directly (or through a
;;    command, like :org).
;;
;; 2. Through a org-capture popup frame that is invoked from outside Emacs (the
;;    script is below). This lets me open an org-capture box anywhere I can call
;;    org-capture.sh, like, say, from qutebrowser or vimperator.
;;
;;    #!/usr/bin/env bash
;;    emacsclient -c \
;;        -F "((name . \"org-capture\") (height . 25) (width . 70))" \
;;        --eval "(org-capture nil \"${1:-n}\")"
;;
;;    Place this in, say, org-capture.sh somewhere in your $PATH.

(add-hook '+org-init-hook '+org|init-capture t)

(defun +org|init-capture ()<commit_msg>lang/org: update doc comments<commit_after>;;; lang/org/+capture.el

;; Sets up two `org-capture' workflows that I like:
;;
;; 1. The traditional way: invoking `org-capture' directly (or through a
;;    command, like :org).
;;
;; 2. Through a org-capture popup frame that is invoked from outside Emacs (the
;;    script is in ~/.emacs.d/bin). This lets me open an org-capture box
;;    anywhere I can call org-capture, like, say, from qutebrowser, vimperator,
;;    dmenu or a global keybinding.

(add-hook '+org-init-hook '+org|init-capture t)

(defun +org|init-capture ()
{'fraction_non_alphanumeric': 0.1588855421686747, 'fraction_numerical': 0.00677710843373494, 'mean_word_length': 3.4006622516556293, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5872873', 'n_tokens_mistral': 453, 'n_tokens_neox': 435, 'n_words': 158}