;;; eaf-settings.el --- eaf settings  -*- lexical-binding: t -*-

;;; Commentary:
;; https://www.emacswiki.org/emacs/EmacsApplicationFramework
;; https://github.com/manateelazycat/emacs-application-framework

;;; Code:
(use-package eaf
  ;;:after (org)  ;; eaf requires eaf-interleave requires org
  ;;:defer 2
  :commands (eaf-create-minmap
             eaf-file-browser-qrcode
             eaf-file-sender-qrcode
             eaf-file-sender-qrcode-in-dired
             eaf-open
             eaf-open-airshare
             eaf-open-browser
             eaf-open-browser-with-history
             eaf-open-camera
             ;;eaf-open-demo
             eaf-open-in-file-manager
             eaf-open-jupyter
             eaf-open-mail-as-html
             eaf-open-mindmap
             eaf-open-music-player
             eaf-open-netease-cloud-music
             eaf-open-office
             eaf-open-rss-reader
             eaf-open-system-monitor
             eaf-open-terminal)
  ;;  :unless (string= (system-name) "hasp138dw")
  ;;:when (if (require 'dbus) (dbus-ping :session "org.freedesktop.Notifications"))
  :if my-dbusp  ;; EAF use DBus' session bus, it must run by a general user (DO NOT USE as root).
  :config
  (require 'eaf-mail)                ;; core extensions
  (require 'eaf-org)                 ;; core extensions
  (require 'eaf-camera)
  (require 'eaf-netease-cloud-music)
  (require 'eaf-browser)
  (require 'eaf-airshare)
  ;;(require 'eaf-vue-demo)
  (require 'eaf-image-viewer)
  (require 'eaf-pdf-viewer)
  (require 'eaf-file-manager)
  (require 'eaf-org-previewer)
  (require 'eaf-file-sender)
  (require 'eaf-music-player)
  (require 'eaf-rss-reader)
  (require 'eaf-video-player)
  (require 'eaf-file-browser)
  (require 'eaf-jupyter)
  (require 'eaf-system-monitor)
  (require 'eaf-terminal)
  ;;(require 'eaf-demo)
  (require 'eaf-mindmap)
  (require 'eaf-markdown-previewer)
  (eaf-setq eaf-browser-enable-adblocker "true")
  (setq eaf-find-alternate-file-in-dired t)
  (setq eaf-config-location (concat user-cache-directory "eaf/")))

(provide 'eaf-settings)
;;; eaf-settings.el ends here
