From 01d7cc30f570e94d37f07326541f5a0d9b8473ba Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 11 Feb 2020 15:31:08 +0100 Subject: emacs: fixed wrong requirement from gif-keycast MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This package claimed to support GNU Emacs 25 but it's using the `xdg` library, which is only available since GNU Emacs 26.1. Signed-off-by: Miquel Sabaté Solà --- .emacs.d/init.org | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/init.org b/.emacs.d/init.org index bf950f4..a5c2c04 100644 --- a/.emacs.d/init.org +++ b/.emacs.d/init.org @@ -2250,7 +2250,7 @@ usings tabs for indentation (C, C++ and Go). ** Web-related stuff. -Slim and SCSS. +Slim, SCSS and such shenanigans... #+BEGIN_SRC elisp (use-package slim-mode @@ -2345,6 +2345,8 @@ Stuff from Hashicorp like terraform and HCL. :ensure t) #+END_SRC +Yeah, I've been on the salty road... + #+BEGIN_SRC elisp (use-package salt-mode :ensure t) @@ -2430,32 +2432,30 @@ too many things into my leader and these shortcuts look sensible to me). ** Screencast Some utilities when recording my GNU Emacs adventures. First of all, =keycast= -shows the keys being pressed in the mode line (it requires GNU Emacs 25.3 -minimum): +shows the keys being pressed in the mode line (it requires GNU Emacs 25.1 +minimum). Moreover, we have =gif-screencast=, which allows you to record your +GNU Emacs activity and saves it into a gif (unless you have specified the +=XDG_VIDEOS_DIR=, it will use =~/Videos/emacs/.gif=). Sadly, though, +=keycast= requires GNU Emacs 25.1 or above, and =gif-keycast= requires GNU Emacs +26.1 or above: #+BEGIN_SRC elisp -(use-package keycast - :ensure t - :unless (version< emacs-version "25.3")) -#+END_SRC +(unless (version< emacs-version "25.1") + (use-package keycast + :ensure t)) -Second of all, we have =gif-screencast=, which allows you to record your GNU -Emacs activity and saves it into a gif (unless you have specified the -=XDG_VIDEOS_DIR=, it will use =~/Videos/emacs/.gif=): - -#+BEGIN_SRC elisp -(use-package gif-screencast - :unless (version< emacs-version "25.3") - :ensure t - :config - (with-eval-after-load 'gif-screencast - (define-key gif-screencast-mode-map (kbd "") 'gif-screencast-toggle-pause) - (define-key gif-screencast-mode-map (kbd "") 'gif-screencast-stop)) +(unless (version< emacs-version "26.1") + (use-package gif-screencast + :ensure t + :config + (with-eval-after-load 'gif-screencast + (define-key gif-screencast-mode-map (kbd "") 'gif-screencast-toggle-pause) + (define-key gif-screencast-mode-map (kbd "") 'gif-screencast-stop)) - (global-set-key (kbd "") 'mssola-screencast)) + (global-set-key (kbd "") 'mssola-screencast))) #+END_SRC -And last but not least, I use a wrapper to start a screencast: +Last but not least, I use a wrapper to start a screencast: #+BEGIN_SRC elisp (defun mssola-screencast () @@ -2463,8 +2463,8 @@ And last but not least, I use a wrapper to start a screencast: (interactive) - (if (version< emacs-version "25.3") - (message "Requires 25.3 or later.") + (if (version< emacs-version "26.1") + (message "Requires 26.1 or later.") (progn (keycast-mode) (gif-screencast)))) -- cgit v1.2.3