summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-01-30 13:19:20 -0500
committerKyle Meyer <kyle@kyleam.com>2014-01-30 13:19:49 -0500
commitf4428b7fb0a134ac97dec965c97207318f2dbda9 (patch)
tree56440cfc02bb0fdffbfbda406eaa64399a993c5a
parent67af58dad3b9d4591cc06fcb27abd8f45c32c906 (diff)
downloademacs.d-f4428b7fb0a134ac97dec965c97207318f2dbda9.tar.gz
Widen after cloning an indirect buffer
-rw-r--r--lisp/init-framewin.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/init-framewin.el b/lisp/init-framewin.el
index cbcce94..29cc620 100644
--- a/lisp/init-framewin.el
+++ b/lisp/init-framewin.el
@@ -34,4 +34,9 @@ Assumes that the frame is only split into two."
(global-set-key (kbd "C-c s") 'km/swap-windows)
+(defadvice clone-indirect-buffer-other-window
+ (after clone-indirect-and-widen activate)
+ "Widen after cloning an indirect buffer."
+ (widen))
+
(provide 'init-framewin)