Add hydra for emacs-lisp
This commit is contained in:
parent
19ffa2888e
commit
4d272ffb4a
1 changed files with 11 additions and 2 deletions
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2020.0229.130740
|
;; Version: 2020.0306.231405
|
||||||
;; Package-Requires: (oni-company oni-flycheck oni-paredit oni-fci oni-yasnippet rainbow-delimiters nameless erefactor flycheck-relint)
|
;; 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
|
;; 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
|
;; 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)
|
(setq-local comment-auto-fill-only-comments t)
|
||||||
(auto-fill-mode))
|
(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 'company-mode)
|
||||||
(add-hook 'emacs-lisp-mode-hook 'electric-quote-local-mode)
|
(add-hook 'emacs-lisp-mode-hook 'electric-quote-local-mode)
|
||||||
(add-hook 'emacs-lisp-mode-hook 'erefactor-lazy-highlight-turn-on)
|
(add-hook 'emacs-lisp-mode-hook 'erefactor-lazy-highlight-turn-on)
|
||||||
|
@ -72,6 +80,7 @@
|
||||||
(setq ielm-prompt "λ> ")
|
(setq ielm-prompt "λ> ")
|
||||||
|
|
||||||
(define-key emacs-lisp-mode-map (kbd "C-c r") erefactor-map)
|
(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
|
;;;###autoload
|
||||||
(add-to-list 'auto-mode-alist '("/Cask\\'" . emacs-lisp-mode))
|
(add-to-list 'auto-mode-alist '("/Cask\\'" . emacs-lisp-mode))
|
||||||
|
|
Loading…
Reference in a new issue