diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index a79a1a7b..1d85202c 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -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))