aboutsummaryrefslogtreecommitdiffstats
path: root/config/doom/config.org
diff options
context:
space:
mode:
Diffstat (limited to 'config/doom/config.org')
-rw-r--r--config/doom/config.org27
1 files changed, 27 insertions, 0 deletions
diff --git a/config/doom/config.org b/config/doom/config.org
index 577f1f9..322ae98 100644
--- a/config/doom/config.org
+++ b/config/doom/config.org
@@ -126,6 +126,24 @@ Shamelessly copied from https://tecosaur.github.io/emacs-config/#dictionary
current-prefix-arg))
(lexic-search identifier nil nil t))
#+end_src
+** Shavian transliterate
+#+begin_src emacs-lisp
+(defun on/shavian-transliterate (start end)
+ "Convert text from START to END to Shavian in new buffer."
+ (interactive "r")
+ (let ((buffer (get-buffer-create "*shavian translit*")))
+ (with-current-buffer buffer
+ (erase-buffer))
+ (call-process-region
+ start end
+ (expand-file-name ".virtualenvs/shavian/bin/python" "~/")
+ nil buffer nil
+ (expand-file-name "dev/readlex/latin2shaw.py" "~/"))
+ (with-current-buffer buffer
+ (text-mode)
+ (display-buffer buffer))))
+
+#+end_src
* Orgmode
#+begin_src emacs-lisp
(after! org
@@ -139,6 +157,15 @@ Shamelessly copied from https://tecosaur.github.io/emacs-config/#dictionary
`("e" "Event" entry (file ,(expand-file-name
"caldav.org" org-directory))
"* %?\n%^T\n%i\n%a"))
+ (add-to-list 'org-capture-templates
+ `("m" "NBG-TM Contact" entry
+ (file+headline ,(expand-file-name "toastmasters/NBG-membership.org" org-directory) "Guest")
+ "* INTRS [[notmuch-search:%:fromaddress][%:fromname]]
+:PROPERTIES:
+:EMAIL: %:fromaddress
+:END:
+Invited: %^t
+"))
(setq org-roam-capture-templates '(("d" "default" plain "%i\n%?"
:target (file+head "%<%Y%m%d%H%M%S>-${slug}.org"