Correct hyperbole config

This commit is contained in:
Andreas Zweili 2024-01-15 12:56:42 +01:00
parent 41afba8743
commit e1fec278a1
1 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
(use-package hyperbole
:config
(setq hbmap:dir-user "~/nextcloud/10_documents/99_archive/0000/hyperbole/")
;; define the local variable az-user-dir to a path and then check if the directory exists
;; if the directory exists then set the variable hbmap:dir-user to the path
(let ((az-user-dir (expand-file-name "~/nextcloud/10_documents/99_archive/0000/hyperbole/")))
(when (file-exists-p az-user-dir)
(setq hbmap:dir-user az-user-dir)))
(define-key hyperbole-mode-map (kbd "C-c /") nil)
(hyperbole-mode 1))