diff --git a/custom/dwuser.el b/custom/dwuser.el new file mode 100644 index 0000000..52eb490 --- /dev/null +++ b/custom/dwuser.el @@ -0,0 +1,29 @@ +(defun dwuser () + (interactive) + (setq theuser (read-string "DW username: ")) + (insert (concat "\"[personal" theuser ""))) + +(defun dwcomm () + (interactive) + (setq theuser (read-string "DW comm name: ")) + (insert (concat "\"[community" theuser ""))) + +(defun ao3user () + (interactive) + (setq theuser (read-string "AO3 username: ")) + (insert (concat "\"[archiveofourown.org" theuser ""))) + +(defun ao3safe-dwuser () + (interactive) + (setq theuser (read-string "DW username: ")) + (insert (concat "" theuser ""))) + +(defun ao3safe-dwcomm () + (interactive) + (setq theuser (read-string "DW comm name: ")) + (insert (concat "" theuser ""))) + +(defun ao3safe-ao3user () + (interactive) + (setq theuser (read-string "AO3 username: ")) + (insert (concat "" theuser ""))) diff --git a/snippets/org-mode/ao3user b/snippets/org-mode/ao3user new file mode 100644 index 0000000..3fdfd81 --- /dev/null +++ b/snippets/org-mode/ao3user @@ -0,0 +1,4 @@ +# name: ao3-user +# key: ao3user +# -- +@@html:@@$0 \ No newline at end of file