Commit Graph

1191 Commits

Author SHA1 Message Date
Daniel - 46d9973146
Move last Org Mode utility function from `db-utils' to `db-org' 2020-06-27 08:56:53 +02:00
Daniel - 0583c08cda
Move Org Mode utilities to `db-org'
`db-utils', the original place, is used for general purpose utility functions.
2020-06-26 23:21:37 +02:00
Daniel - ee4f543a8c
Require building all elisp files when testing the code
Compilation is part of the testing.
2020-06-26 23:08:29 +02:00
Daniel - 5009eb39f9
Move eshell popup function to `db-eshell'
That's where it belongs.
2020-06-26 23:08:00 +02:00
Daniel - 32b424de24
Add missing require for `timeline-tools' 2020-06-26 23:02:09 +02:00
Daniel - 501060c05a
Silence byte-compiler in `db-eshell' 2020-06-26 22:59:46 +02:00
Daniel - 60808bee7d
Fix requirements for `db-emms' 2020-06-26 22:50:01 +02:00
Daniel - f163e925b8
Silence byte-compiler in custom mail handling code 2020-06-26 22:49:44 +02:00
Daniel - 7dbe2445ac
Remove obsolete cache playlist functionality
It has been replaced by a git-annex powered backend long ago.
2020-06-26 22:29:44 +02:00
Daniel - 8bb2d69fb3
Add missing requires for `db-music' 2020-06-26 22:28:15 +02:00
Daniel - 755fb23e2b
Replace `org-get-tags-at' by 'org-get-tags' 2020-06-26 22:17:25 +02:00
Daniel - 7c8b28c9bc
Move most `defcustom' declarations to `db-customize' 2020-06-26 22:07:39 +02:00
Daniel - b2709c0187
Add missing require for `db-org' 2020-06-26 22:07:14 +02:00
Daniel - 1cad9cc186
Remove obsolete `db/cmp-date-property' function 2020-06-26 22:00:18 +02:00
Daniel - 336ee9d7c4
Incorporate some suggestions from the byte compiler 2020-06-26 21:59:25 +02:00
Daniel - 7085e3ff65
Add Makefile for static analysis and automatic testing
Inspired by https://nullprogram.com/blog/2020/01/22/ and fancy to use make :)
Yay make!
2020-06-26 20:17:21 +02:00
Daniel - a5393b597f
Extend Org Mode capture templates to include various forms of tasks
Org's capture template now distinguish between simple tasks, complex
tasks (i.e., those that need a separate headline because other subtasks may
follow later) and tickets (complex tasks that have a ticket number and a
reference).  Those things are necessary for work and may be helpful also
elsewhere.
2020-06-22 18:03:07 +02:00
Daniel - c0f7ed37bc
Introduct org capture template for complex tickets
From time to time, a new item introduces a more complex task that requires a
separate headline.  The new capture template is meant for this use case: it will
ask for a ticket number (the complex tasks I currently have to deal with always
come with a ticket number), a headline description, a reference (link to
redmine ticket or something), and a first task (usually a link to the first
email from the ticket).  It might be that the template is too specific, but
let's try it out first and adapt it if necessary.
2020-06-21 17:05:55 +02:00
Daniel - 72bc471f98
Remove org capture template for keeping bookmarks
I am not using that one.
2020-06-21 16:59:19 +02:00
Daniel - aff6b2257f
Use `unbind-key' to unbind keys
It's more directly than the previousely used `(bind-key … nil)'.
2020-06-20 12:05:23 +02:00
Daniel - 1af68a6b00
Unbind default key binding for closing Emacs
Every so often, I accidentally close Emacs by confusing C-x and C-c.  To prevent
this, unbind the default key binding C-x C-c for closing Emacs.  Instead, we can
directly call `save-buffers-kill-emacs', what is what I am usually doing.

And, seriously, why should anyone close Emacs in the first place?
2020-06-20 12:01:19 +02:00
Daniel - 153c6e0aed
Mark task as not stuck while attending last meeting
If the only item below a task is a meeting that is currently attended, and thus
marked with the ATTN keyword, then the task as stuck.  Indeed, during the
meeting, new items may be added to the task at hand, so that after the meeting
is finished, the task will still be not stuck.  Because of this,
`org-stuck-projects' has been updated to not classify tasks as stuck if an item
with ATTN keyword is attached to it.
2020-06-20 11:12:11 +02:00
Daniel - 7daf582df5
Query password when executing SQL queries against Oracle databases
I don't like to store my passwords in plain in my files.  Next step should be to
cache the password, but maybe this is already achieved by using a dedicated
session?
2020-06-15 21:18:20 +02:00
Daniel - 0c61bf999d
Remove emms-streams from helm-emms
emms-streams has been rewritten completely and does not seem to work anymore.
2020-06-15 21:17:35 +02:00
Daniel - a6776f1fe4
Do not try to use dbus when showing notifications under windows 2020-06-09 19:38:32 +02:00
Daniel - 4dac319ff7
Do not show waiting-for's in the agenda any longer
They don't have to be visible all the time, and can easily be queried by other
agenda commands.
2020-06-09 19:38:28 +02:00
Daniel - 97814ff988
Cache refile targets 2020-05-25 20:21:15 +02:00
Daniel - a404f9a8c2
Add missing `save-restriction' to template copy function 2020-05-24 16:46:24 +02:00
Daniel - fba18ca527
Add helper function to insert templates of periodic tasks
A periodic task is a task tagged with :PERIODIC:, and whose first child is an
item called "Template".  Following the template are the instances of the
periodic tasks, which constitute the actual things to do and which can be
scheduled independently of each other.  Whenever such an instance is due, the
template of the periodic task is supposed to be copied to the instance as a
first step.  This copying can be done manually, but of course doing it
automatically is easier.  The new function added in this commit represents a
first try to add such an automatism.
2020-05-23 16:25:13 +02:00
Daniel - 8cb39ec9e2
Statically choose face for Org Mode links
Checking whether the file exists or not and choosing the face accordingly may be
slow on Windows, where file operations seem to be expensive.
2020-05-15 11:20:48 +02:00
Daniel - 1be7f0e171
Add buffer overview to main helm shortcut menu
Often, I want to open some file and try to first open the corresponding buffer
in the hope there's some open buffer for it already.  When no such buffer
exists, I have to close the list of buffers, reopen the helm shortcut menu, and
navigate to the corresponding bookmark.  This is cumbersome and somehow
duplicate work, since the bookmark and the file most often are named similarly.

With a buffer overview in the helm shortcut menu I can now search for the file
directly and if it's already open, directly select the corresponding buffer.
If it has not been opened, though, I can navigate to the corresponding bookmark
with at most one additional keystroke (C-o) and open it there.  Nice!
2020-05-15 11:20:44 +02:00
Daniel Borchmann 2051347e72
Pin Org Mode version to stable 2020-05-12 20:01:35 +02:00
Daniel - 43a441e2cb
Remove obsolete function declarations 2020-05-10 14:27:38 +02:00
Daniel - 8f81f49074
Add two variables settings from LOLSMacs
https://github.com/grettke/lolsmacs/blob/master/lolsmacs.el
2020-04-17 19:16:23 +02:00
Daniel - 004ac490ef
Reintroduce helper functions to quickly switch between themes 2020-04-17 18:58:18 +02:00
Daniel - 7a78446a92
Make capitalization a bit more consistent 2020-04-17 18:50:01 +02:00
Daniel - a729085946
Use pandoc as default processor for markdown files 2020-04-17 16:36:20 +02:00
Daniel - 50028af0b4
Update dash 2020-03-22 10:57:42 +01:00
Daniel - 113045a648
Always highlight variables in cperl-mode 2020-02-20 21:26:59 +01:00
Daniel - ffeead8d72
Extend configuration of cperl-mode
Enable automatic display of help messages, and disable most of the other
features.
2020-02-20 21:21:47 +01:00
Daniel - 15f3a2d145
Turn on abbrev-mode by default only text buffers
We don't need that for programming, and it interferes with certain mode
configurations, e.g., cperl-mode.
2020-02-20 21:08:53 +01:00
Daniel - bec4bc13a2
Add new PERIODIC tag for recurring tasks
As described in [1], we are sometimes representing recurring tasks as lists of
single tasks plus a recurring task to create new instances once in a while.  All
of this is grouped under a common headline, and those headlines should be marked
with PERIODIC to inhibit automatic clock-in.

[1]: https://karl-voit.at/2017/01/15/org-clone-subtree-with-time-shift/
2020-01-31 10:41:08 +01:00
Daniel - 292920de52
Extend README to use /plink: on Windows instead of /ssh: 2020-01-31 10:00:25 +01:00
Daniel - cdee268d84
Log note when closing tasks 2020-01-31 07:34:28 +01:00
Daniel - 112800e931
Add missing tag triggers 2020-01-30 15:43:18 +01:00
Daniel - ebe853406c
Not handle NO_EXPORT tag automatically anymore 2020-01-30 15:40:31 +01:00
Daniel - 09ac6b08c4
Take notes again when rescheduling tasks
Tasks are rescheduled quite often, and it should be clear later on why this has
happened.
2020-01-30 15:36:51 +01:00
Daniel - 4dbc4b14c6
Split large setq init block for Org Mode into smaller parts
This makes it easier to evaluate assignments individually.
2020-01-30 15:32:38 +01:00
Daniel - bea691cc9b
Move timeline minor mode activation to mode definition 2020-01-26 21:08:55 +01:00
Daniel - 8d9bdc39de
Transform timeline even when extracting it from the buffer
This reenables automatic gap filling in case it has been configure with
`timeline-tools-filter-functions', but somehow breaks undo of killing in the
timeline buffer.  The problem seems to be that undoing a kill only restores the
killed line, but not the original line entries of the lines right before and
after the lined that had been killed.  In this way, the timeline of the buffer
has overlapping entries, resulting in odd behavior.

The problem is not quite understood yet, but it seems to be that undo does not
notice the changes to the surrounding lines (maybe because they have not been
done by text editing functions).
2020-01-26 21:01:13 +01:00