【发布时间】:2014-08-06 16:53:23
【问题描述】:
我的.emacs 中有以下功能,它会在我工作了合适的时间后通知我。
问题是,我无法硬编码时间和味精的值,所以我每次都必须重新输入。
(defun timed-notification(time msg)
(interactive "sNotification when (e.g: 2 minutes, 60 seconds, 3 days): \nsMessage: ")
(run-at-time time
nil
(lambda (msg) (terminal-notifier-notify "Pomodoro" msg))
msg))
(setq column-number-mode t)
如何将时间设置为始终为“25 分钟”而消息设置为“休息一下,时间到了!”?
这是我的尝试:
(defun timed-notification()
;(interactive "sNotification when (e.g: 2 minutes, 60 seconds, 3 days): \nsMessage: ")
(run-at-time 25
nil
(lambda ("Time's up")
(terminal-notifier-notify "Take a break, time's up!" msg))
msg))
(setq column-number-mode t)
【问题讨论】: