diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2020-02-11 15:31:08 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2020-02-11 16:18:26 +0100 |
| commit | 01d7cc30f570e94d37f07326541f5a0d9b8473ba (patch) | |
| tree | 0eae2c2e640f9c552e3b90ad636c209b43f0ba29 | |
| parent | 8fd88f72f3c880d5bd2e77af43d0590dc09b20cf (diff) | |
| download | dotfiles-01d7cc30f570e94d37f07326541f5a0d9b8473ba.tar.gz dotfiles-01d7cc30f570e94d37f07326541f5a0d9b8473ba.zip | |
emacs: fixed wrong requirement from gif-keycast
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à <msabate@suse.com>
| -rw-r--r-- | .emacs.d/init.org | 46 |
1 files changed, 23 insertions, 23 deletions
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/<name>.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/<name>.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 "<f8>") 'gif-screencast-toggle-pause) - (define-key gif-screencast-mode-map (kbd "<f9>") '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 "<f8>") 'gif-screencast-toggle-pause) + (define-key gif-screencast-mode-map (kbd "<f9>") 'gif-screencast-stop)) - (global-set-key (kbd "<f7>") 'mssola-screencast)) + (global-set-key (kbd "<f7>") '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)))) |
