aboutsummaryrefslogtreecommitdiff
path: root/+zk.el
diff options
context:
space:
mode:
authorZofia Szweda <sophies@disroot.org>2026-09-17 20:06:07 +0200
committerZofia Szweda <sophies@disroot.org>2026-09-17 20:07:35 +0200
commitcbf846b3b78fc304b87bf71664024a90abfce5e0 (patch)
treeb93649222d44f38e2a2ab41630b0a001fe7cfff4 /+zk.el
parente9e7242c898563bfa57ba32fc50d5dff45309983 (diff)
emacs: modularize emacs config
Diffstat (limited to '+zk.el')
-rw-r--r--+zk.el19
1 files changed, 19 insertions, 0 deletions
diff --git a/+zk.el b/+zk.el
new file mode 100644
index 0000000..29bdbd7
--- /dev/null
+++ b/+zk.el
@@ -0,0 +1,19 @@
+;;; $DOOMDIR/+zk.el -*- lexical-binding: t; -*-
+(use-package! zk4e
+ :commands (zk4e-list zk4e-edit zk4e-new zk4e-tag-list zk4e-index zk4e-select-notebook
+ zk4e-goto-error)
+ :custom
+ (zk4e-notebook-directories '(("notes" . "~/notes/")))
+ :config
+ (zk4e-select-notebook "notes")
+ (add-hook 'zk4e-edit-hook #'zk4e-maybe-name-buffer))
+
+(map! :leader
+ (:prefix ("n z" . "zk")
+ :desc "Edit note" "e" #'zk4e-edit
+ :desc "New note" "n" #'zk4e-new
+ :desc "List notes" "l" #'zk4e-list
+ :desc "Index" "i" #'zk4e-index
+ :desc "Tags" "t" #'zk4e-tag-list
+ :desc "Switch notebook" "s" #'zk4e-select-notebook
+ :desc "Error log" "!" #'zk4e-goto-error))