feat(emacs): add pomm

This commit is contained in:
Pavel Korytov 2021-11-05 22:17:11 +03:00
parent 785a6609f3
commit 67dabb3f4b
3 changed files with 41 additions and 9 deletions

View file

@ -182,6 +182,7 @@
pass pass
calendar calendar
dired dired
ivy
debug debug
guix guix
calc calc
@ -957,9 +958,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
(use-package emojify (use-package emojify
:straight t :straight t
:if (and (display-graphic-p) (not (or my/lowpower my/is-termux))) :if (and (display-graphic-p) (not (or my/lowpower my/is-termux))))
:disabled
:hook (after-init . global-emojify-mode))
(use-package ligature (use-package ligature
:straight (:host github :repo "mickeynp/ligature.el") :straight (:host github :repo "mickeynp/ligature.el")
@ -3860,7 +3859,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
:straight t :straight t
:commands (prodigy) :commands (prodigy)
:init :init
(my-leader-def "ap" 'prodigy) (my-leader-def "aP" 'prodigy)
:config :config
(when (not (boundp 'my/docker-directories)) (when (not (boundp 'my/docker-directories))
(load (concat user-emacs-directory "prodigy-config"))) (load (concat user-emacs-directory "prodigy-config")))
@ -3922,8 +3921,19 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
:init :init
(my-leader-def "ag" 'guix)) (my-leader-def "ag" 'guix))
(use-package pomm
:straight (:repo "SqrtMinusOne/pomm.el" :host github)
:commands (pomm)
:init
(my-leader-def "ap" #'pomm)
:config
(setq alert-default-style 'libnotify)
(add-hook 'pomm-on-tick-hook 'pomm-update-mode-line-string)
(add-hook 'pomm-on-status-changed-hook 'pomm-update-mode-line-string))
(use-package pomidor (use-package pomidor
:straight t :straight t
:disabled
:commands (pomidor) :commands (pomidor)
:init :init
(my-leader-def "aP" #'pomidor) (my-leader-def "aP" #'pomidor)

View file

@ -620,6 +620,7 @@ Basic evil configuration.
pass pass
calendar calendar
dired dired
ivy
debug debug
guix guix
calc calc
@ -1840,9 +1841,7 @@ References:
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package emojify (use-package emojify
:straight t :straight t
:if (and (display-graphic-p) (not (or my/lowpower my/is-termux))) :if (and (display-graphic-p) (not (or my/lowpower my/is-termux))))
:disabled
:hook (after-init . global-emojify-mode))
#+end_src #+end_src
*** Ligatures *** Ligatures
Ligature setup for the JetBrainsMono font. Ligature setup for the JetBrainsMono font.
@ -5792,7 +5791,7 @@ The actual service definitions are in the =~/.emacs.d/prodigy.org=, which tangle
:straight t :straight t
:commands (prodigy) :commands (prodigy)
:init :init
(my-leader-def "ap" 'prodigy) (my-leader-def "aP" 'prodigy)
:config :config
(when (not (boundp 'my/docker-directories)) (when (not (boundp 'my/docker-directories))
(load (concat user-emacs-directory "prodigy-config"))) (load (concat user-emacs-directory "prodigy-config")))
@ -5874,12 +5873,29 @@ An Emacs package to help managing GNU Guix.
(my-leader-def "ag" 'guix)) (my-leader-def "ag" 'guix))
#+end_src #+end_src
** Productivity ** Productivity
*** Pomidor *** pomm
My package for doing Pomodoro timer.
#+begin_src emacs-lisp
(use-package pomm
:straight (:repo "SqrtMinusOne/pomm.el" :host github)
:commands (pomm)
:init
(my-leader-def "ap" #'pomm)
:config
(setq alert-default-style 'libnotify)
(add-hook 'pomm-on-tick-hook 'pomm-update-mode-line-string)
(add-hook 'pomm-on-status-changed-hook 'pomm-update-mode-line-string))
#+end_src
*** OFF (OFF) Pomidor
A simple pomodoro technique timer. A simple pomodoro technique timer.
Disabled it in favour of my own package.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package pomidor (use-package pomidor
:straight t :straight t
:disabled
:commands (pomidor) :commands (pomidor)
:init :init
(my-leader-def "aP" #'pomidor) (my-leader-def "aP" #'pomidor)

6
bin/polybar/pomm.sh Executable file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
# [[file:../../Desktop.org::*pomm][pomm:1]]
if ps -e | grep emacs >> /dev/null; then
emacsclient --eval "(if (boundp 'pomm-current-mode-line-string) pomm-current-mode-line-string \"\") " | xargs echo -e
fi
# pomm:1 ends here