Commit Graph

95 Commits

Author SHA1 Message Date
Daniel - 38f7fd7c88
Move some more custom org mode link handlers to `db-org'
This is where they belong, nowhere else.
2020-01-19 17:21:14 +01:00
Daniel - c566908deb
Let the org mode RFC link handler cache its documents
RFC documents do not change over time.  The custom org mode link handler
`db/org-rfc-open' now makes use of this by downloading RFC documents to
`db/rfc-cache-path' (if defined) and opening the files locally.  If
`db/rfc-cache-path' is not defined, the RFC is opened in an external browser as
before.

This allows to keep a selection of used RFC documents locally on the filesystem
for future reference, without the need to retrieve them again from the IETF.

Since this is all org mode related, the handler now also resides in `db-org'
instead of `db-utils'.
2020-01-19 17:17:47 +01:00
Daniel - 31bde05efa
Add missing word in comment
Sorry, but need to have it there …
2020-01-18 10:25:40 +01:00
Daniel - 66eb5e3da4
Fix missing handling of optional NTP format string 2020-01-18 10:24:49 +01:00
Daniel - 010f3cec86
Reimplement NTP conversion using Calc
The previous implementation made use of `encode-time', which is not
guaranteed to work with times before the unix epoch.  Indeed, on at least one
Windows machine, the corresponding function `db/ntp-to-time' could not handle
such dates.  However, Calc can handle those independently of `encode-time',
and `db/ntp-to-time' has now been reimplemented in terms of the corresponding
Calc functions.

All (both) tests still pass.
2020-01-18 10:17:54 +01:00
Daniel - 158a232cfe
Move some personal customization variables to dedicated package 2020-01-11 12:35:53 +01:00
Daniel - f4b55ad777
Add tests for NTP time conversion 2020-01-11 10:13:30 +01:00
Daniel - df2464ce5b
Check input of NTP conversion function 2020-01-09 21:35:23 +01:00
Daniel - 57107c0c75
Prettify docstring 2020-01-09 21:35:12 +01:00
Daniel - 52de03a8c0
Note simple test case for NTP conversion function 2020-01-09 21:34:55 +01:00
Daniel - 97e3b4da13
Fix computation of seconds in NTP conversion function 2020-01-09 21:34:38 +01:00
Daniel - c16500344c
Globally require `dash' 2020-01-09 21:02:23 +01:00
Daniel - b92d5e7819
Allow spaces in NTP time strings 2020-01-09 21:02:18 +01:00
Daniel - f44ed54318
Fix handling of dates before Unix epoch in NTP conversion 2020-01-09 20:58:01 +01:00
Daniel - d6690d27f9
Fix docstring of `db/ntp-to-time' 2020-01-09 20:57:13 +01:00
Daniel - a710238694
Use correct number of seconds between 1900-01-01 and the epoch 2020-01-09 20:56:50 +01:00
Daniel - bbfea51fca
Fix check in `db/export-diary' for empty files
This is a result of changing the types of the special org files.  Now a typed
language would be great …
2020-01-05 12:36:56 +01:00
Daniel - 4621ed98f0
Require `gnutls' when setting `gnutls-trustfiles' 2019-12-20 08:45:44 +01:00
Daniel - 485b7b84d3
[Utils] Using `dired-open-file' doesn't work for bookmarks
Pity!
2019-12-13 15:28:46 +01:00
Daniel - 6f375c301f
[Util] Add helper to add bookmarks to be opened by `dired-open-file' 2019-12-13 15:05:44 +01:00
Daniel - bbad4b7fd4
[Helm] Move code for ‘db/helm-shortcuts’ to different file
This keeps ‘db-utils’ require-clean.
2019-08-31 11:39:04 +02:00
Daniel - 43ece81b2d
[Utils] Improve definitions of custom helm sources
Instead of giving a list, we now create the sources directly.  This gives us the
possibility to configure certain aspects of the sources like matching behavior
and highlighting.  Now we are much closer to the standard behavior of helm than
before.
2019-08-30 19:47:25 +02:00
Daniel - 777494635e
[Org] Make function to mark default task non-anonymous 2019-08-22 20:38:00 +02:00
Daniel - 57198f1e1a
[Utils] Fix directory name for ‘db/dired-from-shell-command’
Sometimes the string "Output of ‘…’" seems to be interpreted as directory name,
and then dired complains about it not being existent.  It is not completely
understood yet when this will happen, and an easy workaround seems to be to
stick to a fixed string that works.  This is what’s used now.
2019-06-08 13:27:14 +02:00
Daniel - 0e3ad47943
[Utils] Command to display dired buffer of custom file list 2019-06-08 13:05:17 +02:00
Daniel - f2115f5587
[Org] A custom link type for RFCs 2019-05-31 21:38:05 +02:00
Daniel - 63b2e34be4
[Org] Add link types for Outlook and OneNote 2019-05-31 21:28:44 +02:00
Daniel - 5b5bf87976
[Utils] Small helper function to open CSV files as Org mode tables 2019-05-05 15:54:16 +02:00
Daniel - a83608e686
[Misc] Enable ‘lispy’ only when available
To ensure that Emacs is still largely responsive without it.
2019-03-02 11:14:37 +01:00
Daniel - e2522bdbd0
[Utils] Add missing require 2019-03-02 11:10:34 +01:00
Daniel - 4fb6e3e5c1
[Hydra] Move hydras to separate package
This allows ‘db-utils’ to not be dependent on ‘hydra’
2019-03-02 11:06:55 +01:00
Daniel - 378b608c2b
[Utils] Make ‘db-utils’ loadable without requiring ‘dash’ 2019-03-02 11:02:47 +01:00
Daniel - b17958c104
[Utils] Silencing some byte compiler warnings 2019-03-02 11:02:41 +01:00
Daniel - 6d5976a00a
[Utils] Make main custom variables for ‘db/helm-shortcuts’ Helm-agnostic 2019-03-02 10:55:13 +01:00
Daniel - 26dad5a0d5
[Utils] Extend `db/ascii-to-hex' to `db/text-to-hex' 2019-02-16 14:06:25 +01:00
Daniel - 844b7358f8
[Utils] Extend `db/hex-to-ascii' 2019-02-16 14:06:22 +01:00
Daniel - 809622d982
[Utils] Small helper to add eww bookmarks 2019-02-09 11:45:45 +01:00
Daniel - 2a4302c883
[Utils] Move S/MIME lookup function to init.el 2019-01-27 12:10:44 +01:00
Daniel - 1cc212f955
[Utils] Simplify ‘db/bookmark-add-with-handler’ 2019-01-27 09:25:03 +01:00
Daniel - be7625830c
[Utils] Sort bookmarks after adding a new one 2019-01-27 09:24:01 +01:00
Daniel - db1225da36
[Utils] Clean up main helm shortcut menu
‘db/helm-frequently-visited-locations’ can now (and could always) be implemented
using bookmarks.
2019-01-25 20:41:42 +01:00
Daniel - c77cd7e889
[Utils] Add simple way to add external bookmarks 2019-01-25 20:39:01 +01:00
Daniel - f75609e987
[Utils] Remove unnecessary command in XML pretty printer 2018-11-21 14:31:37 +01:00
Daniel - 600285f9e5
[Utils] Improve XML pretty printer 2018-11-21 14:29:49 +01:00
Daniel - a08432b23b
[Utils] Simpler pretty printer for XML 2018-11-21 10:38:05 +01:00
Daniel - f6c7a408db
[Misc] Remove db-emacsclient.el and distribute functions to other files 2018-11-18 15:37:58 +01:00
Daniel - d1df3ad3bb
[Utils] Move top-level helper functions from init.el to db-utils.el 2018-11-10 08:33:47 +01:00
Daniel - e0bba9da6b
[Utils] Move general purpose hydras to db-utils 2018-11-03 20:55:13 +01:00
Daniel - abe02fe511
[TeX] Move function for adding additional symbols to input method to db-utils 2018-11-03 19:11:48 +01:00
Daniel - 54f8492a33
[Org] Restructuring configuration
- Moving some package declarations to init.el
- Moving calendar export function to ‘db-utils’
2018-11-02 20:24:16 +01:00