chiark / gitweb /
dot/emacs, el/dot-emacs.el: Fix `split-window-horizontally'.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 13 May 2010 13:45:18 +0000 (14:45 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 13 May 2010 13:45:44 +0000 (14:45 +0100)
commit3ba0b7778354b6be6c7889b48a86874c48ae9ac9
treec07efd57d1a45a577c4db68d20eec0fe9853a852
parentb8e1fad6b2b0f576cf7c3875ee3d352bbab88940
dot/emacs, el/dot-emacs.el: Fix `split-window-horizontally'.

The standard version takes the space used for fringes and scroll bars
out of the space you request for the left window.  (But, oddly, if you
give a negative width, for the right window, then you get what you asked
for.)  This is annoying, so fix it.

Actually fixing (or even advising) `split-window-horizontally' is too
risky to compatibility, so I've invented a new function
`mdw-split-window-horizontally' which does the job right, and rebound
C-x 3 to use the new version.
dot/emacs
el/dot-emacs.el