-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add various snippets for org-mode #260
Add various snippets for org-mode #260
Conversation
snippets/org-mode/readme.org
Outdated
cd orgTemplates | ||
rsync -av --exclude=".*" . ~/.emacs.d/snippets/org-mode/ | ||
#+END_SRC | ||
Then,tell emacs to reload all the snippets.For that do *M-x yas-reload-all* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file should be removed or updated at least?
snippets/org-mode/reveal_all
Outdated
# name: reveal_all | ||
# key: <rvl | ||
# -- | ||
#+OPTIONS: reveal_center:t reveal_control:t reveal_height:-1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't think we need to have all these options..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of these options are removed. And these options are available from org-mode export too. I kept them here just in case.
snippets/org-mode/rv_background
Outdated
# key: <rsb | ||
# -- | ||
|
||
:PROPERTIES: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation seems wrong here
snippets/org-mode/sourcecode
Outdated
@@ -0,0 +1,7 @@ | |||
# -*- mode: snippet -*- | |||
# name: sourcecode | |||
# key: <s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one already exists and it's from org-mode, so I think it's not needed
Some very nice snippets but maybe a bit too much, and the thing is that by default |
Thanks for the comments @AndreaCrotti, Surely TAB is bound to org-cycle. But most of the snippets start with |
snippets/org-mode/table
Outdated
# key: <ta | ||
# -- | ||
#+CAPTION: ${1: caption of the table} | ||
#+ATTR_HTML: :width 100% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attr html is not really always needed imho, I never used it at least, and caption could also be optional
Looks good, the only snippet I would not merge is the |
Thanks! |
Thanks @AndreaCrotti and happy to contribute more. |
This will add various snippets for org-mode like title, date, reveal and more.