Nyanyanyanya Move Nyancat related packages to the Org config

This commit is contained in:
Gergely Polonkai 2018-07-29 20:46:29 +02:00
parent 7ff80992b8
commit 8f4232063a
2 changed files with 37 additions and 23 deletions

View File

@ -699,6 +699,43 @@ Because we can.
* ~use-package~ packages
** Nyanyanyanyanya
*** Nyan-cat style position marker
#+BEGIN_SRC emacs-lisp
(use-package nyan-mode
:init
(setq-default nyan-animate-nyancat t
nyan-wavy-trail t)
:config
(nyan-mode t))
#+END_SRC
*** Nyan prompt in EShell
#+BEGIN_SRC emacs-lisp
(when (display-graphic-p)
(use-package nyan-prompt
:disabled t
:config
(add-hook 'eshell-load-hook 'nyan-prompt-enable)))
#+END_SRC
*** Zone out with Nyancat
Unfortunately, this works only in a graphical mode.
#+BEGIN_SRC emacs-lisp
(when (display-graphic-p)
(use-package zone-nyan
:after
zone
:config
(setq-default zone-nyan-hide-progress t)
(setq zone-programs (vconcat zone-programs [zone-nyan]))))
#+END_SRC
** Highlight the current line
#+BEGIN_SRC emacs-lisp

23
init.el
View File

@ -103,29 +103,6 @@
(setq-default save-place t)
(setq save-place-file (expand-file-name ".places" user-emacs-directory)))
;; Nyanyanyanyanya
(use-package nyan-mode
:init
(setq-default nyan-animate-nyancat t
nyan-wavy-trail t)
:config
(nyan-mode t))
(when (display-graphic-p)
(use-package nyan-prompt
:disabled t
:config
(add-hook 'eshell-load-hook 'nyan-prompt-enable)))
;; Zone!
(when (display-graphic-p)
(use-package zone-nyan
:after
zone
:config
(setq-default zone-nyan-hide-progress t)
(setq zone-programs (vconcat zone-programs [zone-nyan]))))
(defun gpolonkai/zone-enable ()
"Enable zoning out."
(interactive)