progfolio / doct

DOCT: Declarative Org Capture Templates for Emacs
GNU General Public License v3.0
380 stars 8 forks source link

Add doct-defmacro functionality #26

Closed aaguilarss closed 3 years ago

aaguilarss commented 3 years ago

Hi!

What?

Added a defun analog for capture templates called 'doct-defcapture' and the simple machinery needed to implement it's functionality.

Why?

Defining capture templates with 'doct-defcapture' closely resembles defining functions or classes with macros like 'defun' or 'defclass'. This makes for more readable code and added functionality documented inside the README.org file.

Hope you have a great day!

progfolio commented 3 years ago

Thanks for the pull request. I'll take a look at it tonight and let you know what I think.

Thanks again, Nick

progfolio commented 3 years ago

Please base this off of your "development" branch, too.

aaguilarss commented 3 years ago

Hello,

Thank you so much for reviewing the request. I hope you have a great night.