Commit Graph

144 Commits

Author SHA1 Message Date
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
31bde05efa
Add missing word in comment
Sorry, but need to have it there …
2020-01-18 10:25:40 +01:00
66eb5e3da4
Fix missing handling of optional NTP format string 2020-01-18 10:24:49 +01:00
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
158a232cfe
Move some personal customization variables to dedicated package 2020-01-11 12:35:53 +01:00
f4b55ad777
Add tests for NTP time conversion 2020-01-11 10:13:30 +01:00
df2464ce5b
Check input of NTP conversion function 2020-01-09 21:35:23 +01:00
57107c0c75
Prettify docstring 2020-01-09 21:35:12 +01:00
52de03a8c0
Note simple test case for NTP conversion function 2020-01-09 21:34:55 +01:00
97e3b4da13
Fix computation of seconds in NTP conversion function 2020-01-09 21:34:38 +01:00
c16500344c
Globally require `dash' 2020-01-09 21:02:23 +01:00
b92d5e7819
Allow spaces in NTP time strings 2020-01-09 21:02:18 +01:00
f44ed54318
Fix handling of dates before Unix epoch in NTP conversion 2020-01-09 20:58:01 +01:00
d6690d27f9
Fix docstring of `db/ntp-to-time' 2020-01-09 20:57:13 +01:00
a710238694
Use correct number of seconds between 1900-01-01 and the epoch 2020-01-09 20:56:50 +01:00
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
4621ed98f0
Require gnutls' when setting gnutls-trustfiles' 2019-12-20 08:45:44 +01:00
485b7b84d3
[Utils] Using `dired-open-file' doesn't work for bookmarks
Pity!
2019-12-13 15:28:46 +01:00
6f375c301f
[Util] Add helper to add bookmarks to be opened by `dired-open-file' 2019-12-13 15:05:44 +01:00
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
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
777494635e
[Org] Make function to mark default task non-anonymous 2019-08-22 20:38:00 +02:00
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
0e3ad47943
[Utils] Command to display dired buffer of custom file list 2019-06-08 13:05:17 +02:00
f2115f5587
[Org] A custom link type for RFCs 2019-05-31 21:38:05 +02:00
63b2e34be4
[Org] Add link types for Outlook and OneNote 2019-05-31 21:28:44 +02:00
5b5bf87976
[Utils] Small helper function to open CSV files as Org mode tables 2019-05-05 15:54:16 +02:00
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
e2522bdbd0
[Utils] Add missing require 2019-03-02 11:10:34 +01:00
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
378b608c2b
[Utils] Make ‘db-utils’ loadable without requiring ‘dash’ 2019-03-02 11:02:47 +01:00
b17958c104
[Utils] Silencing some byte compiler warnings 2019-03-02 11:02:41 +01:00
6d5976a00a
[Utils] Make main custom variables for ‘db/helm-shortcuts’ Helm-agnostic 2019-03-02 10:55:13 +01:00
26dad5a0d5
[Utils] Extend db/ascii-to-hex' to db/text-to-hex' 2019-02-16 14:06:25 +01:00
844b7358f8
[Utils] Extend `db/hex-to-ascii' 2019-02-16 14:06:22 +01:00
809622d982
[Utils] Small helper to add eww bookmarks 2019-02-09 11:45:45 +01:00
2a4302c883
[Utils] Move S/MIME lookup function to init.el 2019-01-27 12:10:44 +01:00
1cc212f955
[Utils] Simplify ‘db/bookmark-add-with-handler’ 2019-01-27 09:25:03 +01:00
be7625830c
[Utils] Sort bookmarks after adding a new one 2019-01-27 09:24:01 +01:00
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
c77cd7e889
[Utils] Add simple way to add external bookmarks 2019-01-25 20:39:01 +01:00
f75609e987
[Utils] Remove unnecessary command in XML pretty printer 2018-11-21 14:31:37 +01:00
600285f9e5
[Utils] Improve XML pretty printer 2018-11-21 14:29:49 +01:00
a08432b23b
[Utils] Simpler pretty printer for XML 2018-11-21 10:38:05 +01:00
f6c7a408db
[Misc] Remove db-emacsclient.el and distribute functions to other files 2018-11-18 15:37:58 +01:00
d1df3ad3bb
[Utils] Move top-level helper functions from init.el to db-utils.el 2018-11-10 08:33:47 +01:00
e0bba9da6b
[Utils] Move general purpose hydras to db-utils 2018-11-03 20:55:13 +01:00
abe02fe511
[TeX] Move function for adding additional symbols to input method to db-utils 2018-11-03 19:11:48 +01:00
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
54a3cef8f3
[Util] Quote current directory when switching to it in eshell 2018-10-18 17:38:54 +02:00
48ce381845
[Utils] Remove obsolete org utility function 2018-08-27 21:28:39 +02:00
7864384e73
[Utils] Require ‘helm-eww’ before using it 2018-07-20 16:24:34 +02:00
cf4a07d8d6
[Utils] Use ‘helm-eww’ when available to list eww-bookmarks 2018-07-14 12:07:01 +02:00
d635236e48
[Utils] Use ‘cygstart’ to open documents in custom helm interface 2018-07-11 19:17:45 +02:00
3a556afca6
[Dired] Inline custom function from ‘db-utils’ into init.el 2018-01-27 16:41:20 +01:00
3787cef333
Merge branch 'db/org-merger'
Conflicts:
	site-lisp/db-org.el
	site-lisp/db-utils.el
2018-01-21 16:19:04 +01:00
18dd29d7e2
[Misc] Remove some more byte compiler warnings 2018-01-16 18:20:24 +01:00
fa0fb98291
[Org] Cosmetics 2018-01-13 18:29:56 +01:00
f1ae359a35
[Utils] Move org-mode utils to ‘db-org.el’
and do some minor beautifications.
2018-01-13 14:25:05 +01:00
62ae309381
[Misc] Enable lispy in ‘eval-expression’ and the like only if loaded beforehand 2018-01-13 14:19:12 +01:00
17b5d9fecb
[Misc] Add lexical binding to all files 2017-12-03 09:19:05 +01:00
eb67f79be6
[Themes] Add dark and light theme 2017-12-02 13:11:02 +01:00
4bae941b44
[Utils] Only show important document with prefix arg 2017-11-25 20:45:59 +01:00
3a51420a7c
[Utils] Minor simplification 2017-11-20 20:20:47 +01:00
04ab68b09d
[Utils] Dual converter for ascii to hex 2017-11-20 19:52:39 +01:00
a1c29009ac
[Utils] Swapping lines for better readability 2017-11-18 15:14:09 +01:00
5377524830
[Utils] Make hex converter and ntp converter interactive
Not quite sure whether this is the right way to do it, though.
2017-11-18 11:25:55 +01:00
888c505f88
[Utils] Add function to convert NTP packets to human-readable time 2017-11-18 11:11:48 +01:00
f85b40e2bb
[Utils] Minor cleanup 2017-11-18 11:11:37 +01:00
654abfe842
[Utils] Add little helper to convert hex to ascii 2017-11-16 19:32:56 +01:00
1f6a142a29
[Utils] Minor cleanup 2017-11-14 16:41:40 +01:00
139862d66d
[Misc] Introduce variable ‘on-windows’
to increase readability
2017-11-11 09:06:41 +01:00
48c2acde0e
[Helm] Allow specifying separate handler for helm shortcuts 2017-10-30 20:03:42 +01:00
cd8e7ccd74
[Helm] Unify naming of sources 2017-10-27 21:57:27 +02:00
0803cd9abb
[Helm] Expand ‘db/important-documents-path’ before removing it 2017-10-27 21:57:02 +02:00
9b8c2ca7a7
[Helm] Add missing require 2017-10-27 21:54:20 +02:00
e048a01f83
[Helm] Give path for important documents sensible default 2017-10-27 21:48:46 +02:00
ac10e90871
[Helm] Make personal shortcut more customizable 2017-10-27 21:46:50 +02:00
df224c099e
[Helm] Allow to call ‘find-file’ in helm shortcut 2017-10-27 20:53:37 +02:00
26e44b1d55
[Helm] Speed up recursive directory traversal in helm shortcut
By copying and adapting the code of ‘directory-files-recursively’
2017-10-27 20:47:34 +02:00
5403911bc0
[Helm] Adapt heading of section for important files in shortcut 2017-10-27 19:56:21 +02:00
ca6d10fdd5
[Helm] Don’t show hidden files in shortcuts
Dump solution, but still …
2017-10-27 19:54:33 +02:00
9098d675b4
[Helm] Remove accidentally duplicated code
How could this happen?  Maybe I’m too tired already …
2017-10-27 19:44:36 +02:00
874e66d9d4
[Helm] Add bookmark management to helm shortcuts 2017-10-27 19:42:50 +02:00
c2401e33eb
[Helm] Add listing of important files
Path to important files can be customized.
2017-10-27 19:39:45 +02:00
e49a3e3236
[Misc] Moving path specifications to custom.el 2017-10-17 22:09:53 +02:00
e9870a7ce7
[Helm] Require ‘helm-files’ instead of ‘helm-x-files’ 2017-10-05 18:27:49 +02:00
027b652bfd
[Helm] Fix custom program shortcut 2017-09-22 18:57:14 +02:00
2f959b5a4a
[Org] Adapting path 2017-08-05 17:35:46 +02:00
8c41362312
[Dired] Update ‘dired-jump-to-top’
Since we are excluding ‘.’ and ‘..’ now, jumping to the first line needs to be
updated.
2017-07-23 12:02:57 +02:00
f7bb731b2f
[Helm] Fixing missing require for ‘db/helm-shortcuts’
Not quite sure whether it is necessary, but it seems to help.  A proper
understanding would be more reassuring, though.
2017-07-22 19:16:22 +02:00
dcabf1f8d9
[Misc] Snapshot 2017-07-21 15:02:22 +02:00
63d5ae7ce8
[Helm] Minor fix for ‘db/helm-shortcuts’
Don’t know why it makes a difference, but apparently it does.
2017-07-16 22:42:57 +02:00
2ecb388724
Initial commit 2017-07-16 18:07:00 +02:00