From 8f4232063a12544c9c0612243159927ba9d4ef90 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sun, 29 Jul 2018 20:46:29 +0200 Subject: [PATCH] Nyanyanyanya Move Nyancat related packages to the Org config --- configuration.org | 37 +++++++++++++++++++++++++++++++++++++ init.el | 23 ----------------------- 2 files changed, 37 insertions(+), 23 deletions(-) diff --git a/configuration.org b/configuration.org index 540a830..ff69403 100644 --- a/configuration.org +++ b/configuration.org @@ -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 diff --git a/init.el b/init.el index d303e04..08ae4d7 100644 --- a/init.el +++ b/init.el @@ -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)