Commit Graph

1288 Commits (5e4125cba31545d30f328b131b839044cf4d6b56)

Author SHA1 Message Date
Daniel Borchmann 3f2993654d
Set some imenu variables 2020-09-11 17:10:02 +02:00
Daniel Borchmann 4e63da5d67
Increase imenu depth in Org Mode buffers 2020-09-11 17:03:45 +02:00
Daniel Borchmann beca0bf7c5
Inhibit implicit frame resizing
This is not important when using a tiled window manager, but may inhibit frame
resizing when starting elsewhere, like on windows.
2020-09-11 16:49:57 +02:00
Daniel Borchmann 5961491f77
Replace custom imenu support use-package with builtin one
2020-09-11 16:47:28 +02:00
Daniel Borchmann 3d2332ac4e
Add brief message when loading custom themes 2020-09-07 18:36:31 +02:00
Daniel Borchmann c9e84a7e28
Offer simple completion when creating external bookmarks
In dired, offer all marked files, or the currently selected file if there are
none.  Otherwise, just use the list of recently opened files as completing.

This is meant as a very simple replacement for dired+'s dired bookmarks.
2020-09-07 18:10:44 +02:00
Daniel Borchmann a20b5faa42
Explicitly set w32-browser keybindings
This is for when dired+ is not available (which is current the case, because
dired+ does not seem to be available from melpa and the previously used version
was too old).
2020-09-07 17:00:59 +02:00
Daniel Borchmann 8ba10fda9c
Show closed and clocked states in agenda by default
State changes are usually not that relevant for me.
2020-09-07 16:59:41 +02:00
Daniel Borchmann 61260a4651
Use ID properties for links, creating it if necessary
and elsewhere.
2020-09-06 16:06:46 +02:00
Daniel Borchmann 1e16d183c5
Add new TOPIC tag
This should allow to distinguish proper tasks (“projects” in the PARA parlance)
from areas of responsibility.  It currently mimics the semantics of the NOP tag,
but may be updated later on.
2020-09-06 10:55:03 +02:00
Daniel Borchmann b1010403e4
Update Org Mode tag list 2020-09-06 10:45:25 +02:00
Daniel Borchmann 327b44e3a0
Emit message when server is not started 2020-09-02 15:04:54 +02:00
Daniel Borchmann e08b6bc31d
Comment on our check for whether the server is already running
In a nutshell: it might be redundant, but we keep it nevertheless.
2020-09-02 11:53:07 +02:00
Daniel Borchmann 621c51f347
Remember why to require helm-for-files in Helm shortcut function 2020-09-02 11:28:42 +02:00
Daniel Borchmann 121f5ee16b
Add missing require for helm recentf source 2020-09-02 11:27:00 +02:00
Daniel Borchmann 1708ed3ec4
Make the server log interactions with clients 2020-09-02 11:23:00 +02:00
Daniel Borchmann b51c311210
Make server start more robust
The present configuration is supposed to start the server if it's not already
running.  Previously we checked this using `server-running-p', but this is not
really realiable.  Instead, we now checking the `server-process' variable

Furthermore, if it turns out during startup that the currently configured server
file is already present, we warn the user about this and don't do anything
else.  We let the user to fix it manually because it's (i) easy for the
user (easier than doing it automatically) and (ii) only done once, namly during
startup (the burden on the user is thus tenable).

The current implementation may not be accurate, though, as my understanding of
the implementation around Emacs' server functionality is only at the beginning.
2020-09-02 11:22:56 +02:00
Daniel Borchmann 03f23b11fb
Copy complete template for periodic tasks
Previously, we only copied the last element in the subtree, assuming that this
encompasses all of the content of the subtree.  However, this is not true, and
thus we have to do something more elaborate.  Now, starting from the end of the
subtree, we go up all elements in the subtree until we reach either the headline
or a drawer.  Everything in between is copied as template to the current
2020-09-01 16:23:28 +02:00
Daniel Borchmann b9fe0924f2
Add recently used files to main helm shortcuts function 2020-08-31 08:23:26 +02:00
Daniel Borchmann 47c6818a93
Remove some notes
Emacs notes included in this repository are not really useful for me.  I will
try to incorporate them into a personal note collection based on the
Zettelkasten principle, or something like that.
2020-08-29 18:27:56 +02:00
Daniel Borchmann cb081e22b5
Revert "Remove obsolete note taking capture template"
We may need this for fleeting notes.  See

This reverts commit 20176badc7.
2020-08-29 12:19:16 +02:00
Daniel Borchmann 23c2a225ae
Fix obsolete key binding for org-roam 2020-08-29 11:52:20 +02:00
Daniel Borchmann 20176badc7
Remove obsolete note taking capture template 2020-08-29 11:50:46 +02:00
Daniel Borchmann 23fc3133c4
Try to fix a problem with org-roam and it's auto-rename feature
The old title is sometimes not retrieved correctly and nil is passed instead.
This leads to errors and links not being updated.
2020-08-29 11:50:03 +02:00
Daniel Borchmann 1c044cc086
Add stub configuration for org-roam
Just trying it out.  More configuration may follow.
2020-08-28 20:12:29 +02:00
Daniel Borchmann 4c7c18b34e
Remove some unused package definitions 2020-08-27 19:39:28 +02:00
Daniel Borchmann 186aef5252
Fix typo in use-package definition for shell scripts 2020-08-27 19:39:18 +02:00
Daniel Borchmann 628bfde98c
Ensure that expand-region is available 2020-08-27 19:35:51 +02:00
Daniel Borchmann ae77ece055
Do not disable package initialization on startup
This is some relic from former configurations, and might have been wrong quite
some time now.  However, in Emacs 27+, package initialization is done before
loading user-init-file, and thus we don't have to do it by hand.  Before that,
package initialization was done after reading user-init-file, but before calling
after-init-hook, and since we needed to load some packages in the init file, we
had to initialize package.el ourselves.
2020-08-27 15:22:00 +02:00
Daniel Borchmann 1ba91b3271
Introduce dedicated variable for main Org Mode file
The shortcut in the frequently-used menu now points there, and not anymore to
the dedicated home and work files.  If only a single main Org Mode file is used,
this variable should be sufficient.
2020-08-27 12:16:54 +02:00
Daniel Borchmann 77ca64de3b
Add shortcuts for main Org Mode files
Usually, only one of them is used.  Maybe one day I have to replace the two
files (or, more precisely, the custom variables pointing to them) by a single
one.  But then, having two files, and also two shortcuts, also remindes me of
whether I am at home or at work, and that's quite significant, isn't it?
2020-08-27 12:07:18 +02:00
Daniel Borchmann 2791b837d2
Do not track the dired history in git 2020-08-27 11:53:18 +02:00
Daniel Borchmann 9cf79c3733
Move custom helm key bindings to the use-package configuration
This is where they belong.
2020-08-27 11:52:25 +02:00
Daniel Borchmann 5d6110982b
Add dired-recent to keep a cache of recently opened directories
Inspired by (and mostly copied from)
2020-08-27 11:46:06 +02:00
Daniel Borchmann 1187577348
Manipulate explicit-bash-args only after loading shell package
It's not there available early, duh!
2020-08-26 19:45:34 +02:00
Daniel Borchmann 9f42b95958
Try to enable readline editing in shell-mode
See for more
2020-08-26 17:27:51 +02:00
Daniel Borchmann 88e0a5021d
Add custom function for keyboard-quit
This version should also quit the minibuffer even if not selected.  Found at
2020-08-26 10:30:25 +02:00
Daniel Borchmann 221f8f7fc3
Move custom helm bindings to top-level db/run-init
Configuring custom key bindings via use-package's :map keyword does seem to
install autoloads for the bound functions into the main helm package.  I.e.,
when binding `db/play-radio-stations' to # in `helm-command-map' via :map,
use-package seems to install an autoload for `db/play-radio-stations' that
requires `helm', instead of the correct `db-music' package.  Additionally,
defining key bindings somewhere in the init file is hard to manage, and they are
thus now collected with other key bindings in `db/run-init'.
2020-08-25 14:23:06 +02:00
Daniel Borchmann f1ef558a23
Explicitly require helm instead of enabling helm-mode
`helm-mode' should actually not be activated, since we are still using ivy for
`completing-read' and friends.  That being said, when we want to enable
`helm-mode' in the future, we should also not call `ivy-mode' anymore.
2020-08-23 20:28:04 +02:00
Daniel Borchmann 2ed50ed61f
Add comment for new early-init.el file
So I know what's this is about next time.
2020-08-15 16:54:00 +02:00
Daniel Borchmann ed7266bd65
Move package initialization to early-init.el
This is done in preparation for using Emacs 27.1, which sources this file
automatically before package activation.
2020-08-15 16:50:40 +02:00
Daniel Borchmann 845d5d137c
Add function to generate playlists from git-annex metadata
This had been done manually from the shell until now.
2020-08-15 15:02:06 +02:00
Daniel Borchmann 4e0bb27304
Set projectile's default completion to helm 2020-08-15 11:35:04 +02:00
Daniel Borchmann 14014c25ec
Let magit choose its completing backend
When we switch defaults, it should also apply to magit.
2020-08-13 16:22:21 +02:00
Daniel Borchmann 83f8496ca6
Set default key binding for helm 2020-08-13 16:16:51 +02:00
Daniel Borchmann 8ae7d9d7f8
Eagerly load helm
Autoloading helm does not work well with custom keybindings.  Binding our
default "C-c h" to either `helm-command-map' or `helm-command-prefix' gives
errors, as both are not commands.  In the previous configuration, the prefix
"C-c h" was initially undefined and only defined when helm was loaded.  This led
to irritating behavior.

All this can be fixed by eagerly loading helm.  This may slow down startup, in
particular on Windows, but it should be worth it.
2020-08-13 16:14:54 +02:00
Daniel Borchmann abc06188b7
Remove `helm-emms'
It was actually only used for playing EMMS streams, but since the implementation
has been rewritten in EMMS, helm-emms does not work anymore.  Replaced the radio
playing functionality by a custom function, obsoleting helm-emms.
2020-08-12 21:59:09 +02:00
Daniel Borchmann 839420a0ee
Ignore runtime files from transient package 2020-08-12 21:58:23 +02:00
Daniel Borchmann 772ee43c2c
Add custom function to play radio stations 2020-08-12 21:57:48 +02:00
Daniel Borchmann 12543a352b
Remove obsolete diminish package 2020-08-11 17:38:23 +02:00