From e1827eb7f5017974bf7000f130c2fbfec6882ee7 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 18 Feb 2019 23:49:10 -0800 Subject: [PATCH] =?UTF-8?q?Add=20=E2=80=98erefactor=E2=80=99=20dependency?= =?UTF-8?q?=20for=20Elisp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oni-elisp.el | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/oni-elisp.el b/oni-elisp.el index d3b0313..9f055ed 100644 --- a/oni-elisp.el +++ b/oni-elisp.el @@ -4,8 +4,8 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 20190213225638 -;; Package-Requires: (oni-company oni-flycheck paredit rainbow-delimiters nameless fill-column-indicator) +;; Version: 20190218234734 +;; Package-Requires: (oni-company oni-flycheck paredit rainbow-delimiters nameless fill-column-indicator erefactor) ;; 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 @@ -26,12 +26,17 @@ ;;; Code: -(add-hook 'emacs-lisp-mode-hook 'paredit-mode) -(add-hook 'emacs-lisp-mode-hook 'rainbow-delimiters-mode) +(require 'erefactor) + (add-hook 'emacs-lisp-mode-hook 'company-mode) +(add-hook 'emacs-lisp-mode-hook 'erefactor-lazy-highlight-turn-on) +(add-hook 'emacs-lisp-mode-hook 'fci-mode) (add-hook 'emacs-lisp-mode-hook 'flycheck-mode) (add-hook 'emacs-lisp-mode-hook 'nameless-mode) -(add-hook 'emacs-lisp-mode-hook 'fci-mode) +(add-hook 'emacs-lisp-mode-hook 'paredit-mode) +(add-hook 'emacs-lisp-mode-hook 'rainbow-delimiters-mode) + +(define-key emacs-lisp-mode-map (kbd "C-c C-v") erefactor-map) ;;;###autoload(with-eval-after-load 'elisp-mode (require 'oni-elisp))