GithubHelp home page GithubHelp logo

amundhov / org-diary Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skx/org-diary

0.0 0.0 0.0 13 KB

Easily maintain a simple work-log / journal with the use of org-mode

Emacs Lisp 100.00%

org-diary's Introduction

org-diary

This package allows you to maintain a simple diary, or work-log, using the power of org-mode.

The package implements a derived mode of org-mode, so you can may use all the standard org-mode facilities you're used to.

This package was built after previously hosting a lot of emacs lisp inline within a Diary.org file, as visible in this demonstration repository:

Overview

This is designed for people who wish to maintain a single-file journal, be it for a work-log, or private entries. The journal will contain a new entry for every day based upon a standard template.

Every time you create a new entry the same template will be appended to the foot of your document, and there is some minimal facilities for jumping to today's entry and running customizations.

In short there is:

  • The ability to insert a new per-day templated entry.
    • We assume you have some standard activities/actions you wish to complete every day.
  • The ability to jump to today's entry.
    • Which is nothing more than a heading with today's date.

When exported any subsections that are empty are automatically removed.

Installation / Usage

Save the file org-diary.el to a directory upon your load-path, then require it:

(require 'org-diary)

After that visiting a file named Diary.org will automatically load the mode.

You'll need to create a template-entry which will be inserted whenever you run M-x org-diary-new-entry, see the example below for details. Within the file anything between the two markers * DD/MM/YYYY and * END will be taken to be the template.

You can see that in the example below.

Example

There is an example Diary.org file contained within this repository which demonstrates how things can be used.

Customizations

If you prefer to use a different date-format for your entries change the value of org-diary-date-format.

There are hooks available at various points:

  • org-diary-mode-hook
    • Called when entering the mode.
  • org-diary-after-new-entry-hook
    • Called after a new entry is inserted.
  • org-diary-after-today-hook
    • Called after you jump to today's entry.

Perhaps you might wish to add a tag with the current week-number when entering a new entry? You could do that like so:

;; Add a new tag to all entries, after creating them.
(add-hook 'org-diary-after-new-entry-hook
          (lambda()
            (org-set-tags (format-time-string "%Y_week_%V"))))

Bugs?

Please report them as issues.

org-diary's People

Contributors

skx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.