narrow-indirect

This commit is contained in:
Ivan Malison 2015-06-21 21:30:47 -04:00
parent 65d9aa9e26
commit 87eef0d1e0

View File

@ -469,6 +469,14 @@ The current directory is assumed to be the project's root otherwise."
(progn
(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)))
(use-package narrow-indirect
:ensure t
:init
(progn
(define-key ctl-x-4-map "nd" 'ni-narrow-to-defun-indirect-other-window)
(define-key ctl-x-4-map "nn" 'ni-narrow-to-region-indirect-other-window)
(define-key ctl-x-4-map "np" 'ni-narrow-to-page-indirect-other-window)))
(use-package dtrt-indent
:ensure t
:init (add-hook 'prog-mode-hook 'dtrt-indent-mode))