From ad8a9a3d94c3553d59e3d4ad2b99580d8d395c21 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 5 Apr 2015 16:26:32 -0400 Subject: Install lispy --- .gitignore | 1 + Cask | 1 + lisp/init-elisp.el | 16 +--------------- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index daf9916..14a1fad 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ bookmarks /.cask /.custom.el /server +/semanticdb diff --git a/Cask b/Cask index 2ff6279..4ff5df9 100644 --- a/Cask +++ b/Cask @@ -35,6 +35,7 @@ (depends-on "key-chord") (depends-on "less-css-mode") (depends-on "let-alist") +(depends-on "lispy") (depends-on "lua-mode") (depends-on "markdown-mode") (depends-on "mocker") diff --git a/lisp/init-elisp.el b/lisp/init-elisp.el index 8ec711d..a6cee16 100644 --- a/lisp/init-elisp.el +++ b/lisp/init-elisp.el @@ -1,18 +1,4 @@ -(autoload 'enable-paredit-mode "paredit" - "Turn on pseudo-structural editing of Lisp code." - t) - -(add-hook 'emacs-lisp-mode-hook 'enable-paredit-mode) - -(after 'paredit - (define-key paredit-mode-map (kbd "C-,") 'paredit-forward-slurp-sexp) - (define-key paredit-mode-map (kbd "C-.") 'paredit-forward-barf-sexp) - (define-key paredit-mode-map (kbd "C-M-,") 'paredit-backward-slurp-sexp) - (define-key paredit-mode-map (kbd "C-M-.") 'paredit-backward-barf-sexp) - - ;; Don't let `paredit-splice-sexp' override default 'M-s' map. - (define-key paredit-mode-map (kbd "M-s") nil) - (define-key paredit-mode-map (kbd "M-p") 'paredit-splice-sexp)) +(add-hook 'emacs-lisp-mode-hook 'lispy-mode) (provide 'init-elisp) -- cgit v1.2.3