Skip to content

Instantly share code, notes, and snippets.

@Losiel
Last active March 11, 2025 09:01
Show Gist options
  • Save Losiel/691a329c446ebc34f8be22dceed9448a to your computer and use it in GitHub Desktop.
Save Losiel/691a329c446ebc34f8be22dceed9448a to your computer and use it in GitHub Desktop.
Org document to test most Emacs themes... or to see most of org-mode features in action

Org-mode document to see a theme in action

Out of the box

Headings!!

Headings!!

Headings!!

Headings!!
Headings!!
Headings!!Headings!!Headings!!

Code

If you don’t see these code-blocks with proper syntax highlighting, check this out. Also, some verbatim.

These examples should cover most of font-lock colors.

;; So much syntax
;;;###autoload
(defun babel-is-scuffed ()
  "Docstring stolen from URL `http://xahlee.info/emacs/emacs/inline_doc.tml'.

Also see \\[erase-buffer]"
  [1 2 -3])

(erase-buffer)
// So much syntax
#include <stdio.h>

struct useless_struct {
  int hello;
};

useless_label:
int main() {
  printf("Hello, world!");
  return -1 + 1;
}
-- So much syntax
::useless_label::
if true then
   local useless_variable<const> = -1 * 1
   print(useless_variable, "Hello, world!", {1, 2, 3})

   local function useless_function()
   end
   useless_function()

   goto useless_label
end

Links

This band is cool!

Lists

  • A list
  • is used to list things
  • not to separate sentences

Another list

Pears
Favorite fruit!
Apples
Cheap pears knockoff
Bananas
Meh…
Plums
2nd fav fruit prob
Strawberry
They are delicious when bathed in chocolate
Tangerines
Better than oranges really

More lists

  1. I
  2. HATE
  3. ITEMS
  4. WITH
  5. MULTIPLE
  6. WORDS

Even more

  1. This is just the same as before
  2. Still, pretty cool, right?

They never end

  • This syntax is pretty cool too
  • I love the versatility of org-mode

Checkboxes

Use C-c C-c to toggle a checkbox

  • [ ] Uninstalled Emacs?
  • [-] Are we cool yet? [1/2]
    • [X] Using org-mode?
    • [ ] Not procrastinating?
  • [-] The same as before [50%]
    • [X] Using org-mode?
    • [ ] Not procrastinating?

Todos!

Kill the president

Some dare call me an anarchist… But I’m actually a fascist

CLOSED: [2024-03-01 vie] Complete this item at a specific time…

[#A] Kill my grandma

[#B] Resurrect my grandma

Jerk off

  • State “DONE” from “TODO” [2024-03-10 dom]
  • State “DONE” from “TODO” [2024-03-10 dom]
  • State “DONE” from “TODO” [2024-03-10 dom]
  • State “DONE” from “TODO” [2024-03-10 dom]
  • State “DONE” from “TODO” [2024-03-10 dom]
  • State “DONE” from “TODO” [2024-03-10 dom]
  • State “DONE” from “TODO” [2024-03-10 dom]
  • State “DONE” from “TODO” [2024-03-10 dom]
  • State “DONE” from “TODO” [2024-03-10 dom]

Timestamps

My birthday!

<2024-03-10 dom +1y>

But…

I wish it was on [2024-03-09 sáb]…

Okay? Let’s go to Buenos Aires!

<2024-03-12 mar>–<2024-03-19 mar>

My birthday but… with a cooler syntax B)

<%%(diary-aniversary 3 10 2008)>

Poetry (quotes, verses and centering text)

To be or not to be, wait… is that a question? —Jorge Luis Borges

I
hate\ MONDAYS!!

Drawers

WHY WOULD ANYONE USE DRAWERS???

Footnotes

This is a footnote[fn:: Oh. really?!], this is another footnote[fn:sillyname: You must be kidding me man…] and this is the same footnote as before[fn:sillyname]… So cool!

Tables (and formulas)

There’s sooo many things you can do.

  • C-c } (org-table-toggle-coordinate-overlays) to show the table coordinates
  • C-u C-c * to recalculate the table values
ABCDE
123410
422210
563115
98331351474
199339358511

You should see the :=1 highlighted:

:=1

Macros

{{{n}}}. Yup! {{{n}}}. Macros are a thing in org-mode {{{n}}}. {{{n}}} in particular acts as a counter

Tags

Labels

<<Heh…>> Heh…

Require manual intervention (also they are boring!)

Clock

  • Time since using org-mode

The dispatcher

Do C-c C-e or M-x org-export-dispatch and yeah. Pretty cool, right?…

Column-view mode

Do C-c C-x C-c (org-columns) on the heading above. Then q on it, or M-x org-columns-quit on it

Heading 1

Heading 2 (An imposter…)

Other ideas

Try org’s folding
Just press TAB!
Use the region
(Select literally anything)
Try doing citations
Do not try it (I will not elaborate on this.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment