feat(wpcarro/emacs): Package zle.el

The end-goal is to package all of my Elisp libraries. Why?
- More granular builds/tests
- More explicitly defined dependencies
- Separate personal configuration from library code
- Ease distribution

Change-Id: I2507d129d3a0b3bf0cfe70b9790536a8b2093b96
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5969
Tested-by: BuildkiteCI
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
This commit is contained in:
William Carroll 2022-07-21 19:55:39 -07:00 committed by clbot
parent 3ecf0b9d69
commit ebbda2484a
3 changed files with 19 additions and 6 deletions

View file

@ -24,6 +24,10 @@ let
emacsWithPackages = (emacsPackagesFor emacs28).emacsWithPackages;
wpcarrosEmacs = emacsWithPackages (epkgs:
(with wpcarro.emacs.pkgs; [
zle
]) ++
(with epkgs.tvlPackages; [
tvl
]) ++

View file

@ -0,0 +1,10 @@
{ pkgs, ... }:
pkgs.callPackage
({ emacsPackages }:
emacsPackages.trivialBuild {
pname = "zle";
version = "1.0.0";
src = ./zle.el;
})
{ }

View file

@ -72,12 +72,11 @@
(defvar zle-kbds
(let ((map (make-sparse-keymap)))
(bind-keys :map map
("C-j" . zle-subshell)
("C-v" . zle-variable)
("C-M--" . zle-dash-dash)
("M-'" . zle-single-quote)
("M-\"" . zle-double-quote))
(define-key map (kbd "C-j") #'zle-subshell)
(define-key map (kbd "C-v") #'zle-variable)
(define-key map (kbd "C-M--") #'zle-dash-dash)
(define-key map (kbd "M-'") #'zle-single-quote)
(define-key map (kbd "M-\"") #'zle-double-quote)
map)
"Keybindings shaving milliseconds off of typing.")