1

私はemacs 24でERCを使用しており、私の.emacs. erc-global-notify関数は http://www.emacswiki.org/emacs/ErcPageMe から適応されます。残念ながら、erc ウィンドウを備えた emacs が最小化されている場合、dbus から通知を受け取ることができませんでした。それの何が問題なのですか?

(require 'erc-match)
(erc-match-mode t)
(setq erc-keywords '("c++" "python" "emacs" "i")
      erc-pals '("ij"  "yy" "xx"))

(require 'notifications)
(defun erc-global-notify (match-type nick message)
  "Notify when someone sends a message that matches a regexp in `erc-keywords'."
  (when (and (eq match-type 'keyword)
             ;; I don't want to see anything from the erc server
             (null (string-match "^[sS]erver" nick))
             ;; or bots
             (null (string-match "\\(bot\\|serv\\)!" nick)))
    (notifications-notify
     :title nick
     :body message
     :urgency 'normal)))

(add-hook 'erc-text-matched-hook 'erc-global-notify)
4

0 に答える 0