From 4d272ffb4abced360622418c576023fc421694e1 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 6 Mar 2020 23:14:50 -0800 Subject: [PATCH] Add hydra for emacs-lisp --- oni-elisp/oni-elisp.el | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/oni-elisp/oni-elisp.el b/oni-elisp/oni-elisp.el index 8f6da22..6260479 100644 --- a/oni-elisp/oni-elisp.el +++ b/oni-elisp/oni-elisp.el @@ -4,8 +4,8 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2020.0229.130740 -;; Package-Requires: (oni-company oni-flycheck oni-paredit oni-fci oni-yasnippet rainbow-delimiters nameless erefactor flycheck-relint) +;; Version: 2020.0306.231405 +;; Package-Requires: (oni-company oni-flycheck oni-paredit oni-fci oni-yasnippet oni-hydra rainbow-delimiters nameless erefactor flycheck-relint) ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -56,6 +56,14 @@ (setq-local comment-auto-fill-only-comments t) (auto-fill-mode)) +(defhydra oni-elisp-hydra (:color teal :hint nil) + " +^Eval^ +^^---------- +_eb_: Buffer +" + ("eb" eval-buffer)) + (add-hook 'emacs-lisp-mode-hook 'company-mode) (add-hook 'emacs-lisp-mode-hook 'electric-quote-local-mode) (add-hook 'emacs-lisp-mode-hook 'erefactor-lazy-highlight-turn-on) @@ -72,6 +80,7 @@ (setq ielm-prompt "λ> ") (define-key emacs-lisp-mode-map (kbd "C-c r") erefactor-map) +(define-key emacs-lisp-mode-map (kbd "C-c SPC") 'oni-elisp-hydra/body) ;;;###autoload (add-to-list 'auto-mode-alist '("/Cask\\'" . emacs-lisp-mode))