{"id":22901321,"url":"https://github.com/mooerslab/snippet-org-mode","last_synced_at":"2026-03-15T16:39:10.553Z","repository":{"id":165234187,"uuid":"420518295","full_name":"MooersLab/snippet-org-mode","owner":"MooersLab","description":"Blaine's yasnippet snippets for org-mode.","archived":false,"fork":false,"pushed_at":"2024-05-16T12:59:18.000Z","size":78,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T05:42:04.998Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"YASnippet","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MooersLab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-23T20:40:00.000Z","updated_at":"2025-02-16T14:19:09.000Z","dependencies_parsed_at":"2023-05-20T13:46:25.110Z","dependency_job_id":null,"html_url":"https://github.com/MooersLab/snippet-org-mode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MooersLab%2Fsnippet-org-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MooersLab%2Fsnippet-org-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MooersLab%2Fsnippet-org-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MooersLab%2Fsnippet-org-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MooersLab","download_url":"https://codeload.github.com/MooersLab/snippet-org-mode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253857346,"owners_count":21974715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T01:32:54.108Z","updated_at":"2026-03-15T16:39:05.495Z","avatar_url":"https://github.com/MooersLab.png","language":"YASnippet","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Version](https://img.shields.io/static/v1?label=snippet-org-mode\u0026message=0.2\u0026color=brightcolor)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n\n# A library of yasnippet snippets for Org-mode\n\nThis is a library of yasnippet snippets for Org-mode.\nIt is designed to be used in Emacs.\nOrg-mode is a feature rich markup language that supports easy polyglot literate programming and that can incorporate blocks written in LaTeX.\nThis latter feature vastly extends the universe of possible typesetting compared to various markdown variants.\nThe long-term goal of this snippet library is to facilitate literate programming in Org-mode.\n\nInstall the library where you store your user-generated snippets for the yasnippet package. \nThis is usually in `~/.emacs.d/snippets/org-mode`. \nUse the `File/Save copy in Drive` pulldown menu item option. \n\nThe snippet tab trigger (or key in yasnippet parlance) is often not the same as the filename.\nI mapped `C-o` to the function `yas-expand` to insert the snippet after entering the key.\nAdd the following line to your Emacs initialization file.\n\n```elisp\n(global-set-key \"\\C-o\" 'yas-expand)\n```\n\nFor my yasnippet configuration see the yasnippet section of my Emacs [config file](https://github.com/MooersLab/configorg/blob/main/config.org).\n\nThese snippets can be used in conjunction with those in the *snippets-snippets* package, which you can install via MELPA even though they are stored in the alpha subfolder.\nBoth sets of snippets will appear in the table displayed in a separate buffer when you enter `M-x yas-describe-tables`.\nThere is a separate table for each active mode and separate subtables for each group.\nBy clicking on the name of a snippet in this table, you get access to its code that you can edit.\n\nBelow, the snippets are grouped via their filename.\nSome prominent groups and subgroups are explained below.\n\n## latex-env-* snippets\n\nThe snippets with the `latex-env' prefix are snippets for creating LaTeX environments inside of Org. \nOrg will send these to the LaTeX compiler upon export to PDF.\n\nThe `mintin*` snippets are preset with the corresponding language parameter for the `\\mintinline{}{}` command. \nThis command is not an environment, but I included this group of snippets to save space in the yasnippet pulldown menu. \nObviously, the *pygments* Python package has to be installed on your system to use these.\n\n### latex-env-code-* snippets\n\nThe `latex-envcode*` snippets are a series of alternate configurations for the custom-mode code env, which encloses code in the minted env. \nThe code env enables adding a caption to the minted code block.  \nIt also adds an index key and label. \nYou have to define the code env by adding `\\newenvironment{code}{\\captionsetup{type=listing}}{}` to the preamble of your LaTeX file. \nThe numbers in the snippet name corresponds to alternate configurations of the minted environment.\n\n### latex-env-eqcaptioned gives equations with captions\n\nThe `eqcaptioned` snippet encloses an equation in an `eqc` environment to enable the addition of a caption.\nThe `eqc` environment is a float whereas an equation is not.\nOnly floats can have captions.\nThe snippet also adds an index key and a label.\n\n## newsnip\n\nThis is my customized template snippet for writing new snippets.\nThe template invoked in the yasnippet pulldown menu is not as complete and thereby not as useful to me.\n\n## org-* snippets\n\nThese snippets are written in org markdown.\n\n### org-codeblock-* snippets\n\nThese snippets provide templates for org-mode code blocks.\nThe header parameters required to obtain in-line output can vary with the programming language.\nConfiguring the header can be time-consuming because the information can take time to dig up and to test.\nFor example, it took me two hours to figure out how to get Emacs lisp to send output to the `:RESULTS:` drawer. \n\n\n### org-property-* snippets\n\nThese snippets are property block snippets.\nFor example, the `org-property-category` snippet is useful for labeling sections so that they show up in customized agenda views.\nI use these to label the TODO items of a specific project. \nA customized agenda view can then include these TODO items.\n\nThe `org-property-habit` snippet is useful for repeating TODO items.\n\n## protocol-* snippets\n\nThese snippets print out the steps for doing multi-step tasks.\n\n## pymolpy-* snippets\n\nSee this [repo](https://github.com/MooersLab/orgpymolpysnips) for PyMOL snippets written in Python for use in org-mode.\nThese snippets are also stored in `~/.emacs.d/snippets/org-mode` so they are accessible for literate programming with PyMOL in org documents.\n\n## Update history\n|Version      | Changes                                                                                                                                    | Date                 |\n|:-----------:|:------------------------------------------------------------------------------------------------------------------------------------------:|:--------------------:|\n| Version 0.2 |  Added badges, funding, and update table. Made numerous edits.                                                                             | 2024 May 16          |\n\n\n## Funding\n- NIH: R01 CA242845, R01 AI088011\n- NIH: P30 CA225520 (PI: R. Mannel); P20GM103640 and P30GM145423 (PI: A. West)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmooerslab%2Fsnippet-org-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmooerslab%2Fsnippet-org-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmooerslab%2Fsnippet-org-mode/lists"}