Skip to content

Commit

Permalink
Switch to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
casch-at committed Jan 7, 2024
1 parent 0c64928 commit 17326d5
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 26 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
pull_request:
push:
paths-ignore:
- CHANGELOG
- CONTRIBUTORS
- LICENSE
- README.org
- org-journal.svg

jobs:
build:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
emacs_version:
- 25.1
- 26.1
- 27.1
- 28.1
- 29.1
- release-snapshot
experimental: [false]
include:
- emacs_version: snapshot
experimental: true
steps:
- uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}

- uses: actions/checkout@v4

- name: Run tests
run: make all
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions README.org
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[[https://travis-ci.org/bastibe/org-journal][file:https://travis-ci.org/bastibe/org-journal.svg?branch=master]] [[https://elpa.nongnu.org/nongnu/org-journal.html][https://elpa.nongnu.org/nongnu/org-journal.svg]] [[http://melpa.org/#/org-journal][file:http://melpa.org/packages/org-journal-badge.svg]] [[http://stable.melpa.org/#/org-journal][file:http://stable.melpa.org/packages/org-journal-badge.svg]] [[contributors][file:https://img.shields.io/github/contributors/bastibe/org-journal.svg]] [[license][file:https://img.shields.io/github/license/bastibe/org-journal.svg]]
[[https://github.com/bastibe/org-journal/actions/workflows/test.yml][file:https://github.com/bastibe/org-journal.svg?branch=master]] [[https://elpa.nongnu.org/nongnu/org-journal.html][https://elpa.nongnu.org/nongnu/org-journal.svg]] [[http://melpa.org/#/org-journal][file:http://melpa.org/packages/org-journal-badge.svg]] [[http://stable.melpa.org/#/org-journal][file:http://stable.melpa.org/packages/org-journal-badge.svg]] [[contributors][file:https://img.shields.io/github/contributors/bastibe/org-journal.svg]] [[license][file:https://img.shields.io/github/license/bastibe/org-journal.svg]]

#+CAPTION: The org-journal logo
[[./org-journal.svg]]
Expand Down Expand Up @@ -306,11 +306,11 @@ empty string =""=. Any [[http://orgmode.org/manual/Matching-tags-and-properties.
todo states are allowed. By default this is ~TODO=”TODO”~. Which will
match TODO items.

The old carryover items in the previous day's journal are processed by the function assigned to =org-journal-handle-old-carryover= variable.
The old carryover items in the previous day's journal are processed by the function assigned to =org-journal-handle-old-carryover= variable.
Default is to remove all of them. You can change this behavior by
assigning a custom fuction to the variable.
Your function has to take one argument, which is a list of old carryover entries. The list is in form of ((START_POINT (END_POINT . "TEXT")) ... (START_POINT (END_POINT . "TEXT"))); and in ascending order of START_POINT.

For example, you can choose putting a tag on the old carryover entries intead of removing them:

#+begin_src elisp
Expand All @@ -319,7 +319,7 @@ For example, you can choose putting a tag on the old carryover entries intead of
(let ((matcher (cdr (org-make-tags-matcher org-journal-carryover-items))))
(dolist (entry (reverse old_carryover))
(save-restriction
(narrow-to-region (car entry) (cadr entry))
(narrow-to-region (car entry) (cadr entry))
(goto-char (point-min))
(org-scan-tags '(lambda ()
(org-set-tags ":carried:"))
Expand Down

0 comments on commit 17326d5

Please sign in to comment.