1
0
Fork 0

Add hydra for emacs-lisp

This commit is contained in:
Tom Willemse 2020-03-06 23:14:50 -08:00
parent 19ffa2888e
commit 4d272ffb4a

View file

@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; 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))