From b5912e0ac5f2b041c4f798f1596c846146927566 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 13 Jun 2014 21:46:02 -0400 Subject: Install narrow-indirect Needed to install 'subr+ to avoid void variable `filter-buffer-subtring-function'. --- lisp/init-editing.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lisp') diff --git a/lisp/init-editing.el b/lisp/init-editing.el index 4f2cf80..fad7a07 100644 --- a/lisp/init-editing.el +++ b/lisp/init-editing.el @@ -1,6 +1,8 @@ (require-package 'multiple-cursors) (require-package 'expand-region) (require-package 'wrap-region) +(require-package 'subr+) +(require-package 'narrow-indirect) (global-set-key (kbd "C-x \\") 'align-regexp) @@ -23,6 +25,10 @@ try-complete-lisp-symbol-partially try-complete-lisp-symbol)) +(define-key ctl-x-4-map "nd" 'ni-narrow-to-defun-other-window) +(define-key ctl-x-4-map "nn" 'ni-narrow-to-region-other-window) +(define-key ctl-x-4-map "np" 'ni-narrow-to-page-indirect-other-window) + ;; http://www.emacswiki.org/emacs/UnfillParagraph (defun unfill-paragraph () "Takes a multi-line paragraph and makes it into a single line of text." -- cgit v1.2.3