Windows 10linux
pomidor:https://github.com/TatriX/pomidorgit
alert :https://github.com/jwiegley/alertgithub
toaster:https://github.com/nels-o/toasterwindows
在Emacs里能够使用番茄工做法,这里用的是pomidor,由于这个能够记录一共用了多少个番茄钟。app
当25分钟到了以后能够用声音和弹出框进行提示,声音文件能够自定义,弹出框默认是在minibuffer里显示,固然也是能够用其余更醒目的方式的,例如toaster。ide
toaster下载后须要添加到操做系统的环境变量PATH里,在Path后面加上:spa
F:\home\toaster\toast\bin\Release
根据实际状况更改位置。操作系统
如下是配置:rest
;;; init-pomidor.el --- pomidor ;;; https://github.com/TatriX/pomidor ;;; Commentary: ;;; Code: (use-package pomidor :ensure t :defer t :init (global-set-key "\M-p" #'pomidor) :config (setq ;;pomidor-sound-tick nil ;; nil取消声音 ;;pomidor-sound-tack nil ;; nil取消声音 pomidor-sound-tick (expand-file-name (concat (getenv "HOME") "/myemacs/resource/tick.wav")) pomidor-sound-tack (expand-file-name (concat (getenv "HOME") "/myemacs/resource/tack.wav")) pomidor-sound-overwork (expand-file-name (concat (getenv "HOME") "/myemacs/resource/ring.wav")) pomidor-sound-break-over (expand-file-name (concat (getenv "HOME") "/myemacs/resource/rest.wav")) ) ;; log ;; https://github.com/TatriX/pomidor/issues/20 (defadvice pomidor-stop (before pomidor-save-log activate) "Log pomidor data to the ~/pomidor-log.csv file. Columns: date,work,overwork,break" (write-region (format "%s,%d,%d,%d\n" (format-time-string "%Y/%m/%d") (/ (time-to-seconds (pomidor-work-duration)) 60) (/ (time-to-seconds (or (pomidor-overwork-duration) 0)) 60) (/ (time-to-seconds (or (pomidor-break-duration) 0)) 60)) nil "~/pomidor-log.csv" 'append)) (cond ((eq system-type 'windows-nt) (setq alert-default-style 'toaster) ) ((eq system-type 'gnu/linux) (setq alert-default-style 'libnotify) )) ) (provide 'init-pomidor) ;;; init-pomidor.el ends here
toaster下载:https://files.cnblogs.com/files/ibgo/toaster-master.zipcode
-- END --