summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/init-editing.el6
1 files changed, 6 insertions, 0 deletions
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."