gnu: Add emacs-switch-buffer-functions.

* gnu/packages/emacs-xyz.scm (emacs-switch-buffer-functions): New variable.
This commit is contained in:
Amin Bandali 2020-02-02 15:16:49 +01:00 committed by Nicolas Goaziou
parent 2b19087496
commit 2cb9b0453d
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -21238,6 +21238,29 @@ (define-public emacs-unkillable-scratch
matching a given regexp.")
(license license:gpl2+))))
(define-public emacs-switch-buffer-functions
(package
(name "emacs-switch-buffer-functions")
(version "0.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/10sr/switch-buffer-functions-el.git")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0pq53b8wrjbrxd5hnrcdi0z7mffp4bax55hn90k9ca3j76lhbn1k"))))
(build-system emacs-build-system)
(home-page "https://github.com/10sr/switch-buffer-functions-el")
(synopsis "Hooks run when switching current buffer")
(description "This package provides a hook variable
@code{switch-buffer-functions}. The hooks will be run when the current buffer
is changed after an interactive command, i.e., when @code{post-command-hook}
hooks are run. The hooked functions will be called with both the previous and
the current buffer.")
(license license:unlicense)))
(define-public emacs-dmenu
;; Use the latest commit, as there are no tagged releases.
(let ((commit "e8cc9b27c79d3ecc252267c082ab8e9c82eab264")