* Adding more columns to width of frame
@ 2008-07-08 23:59 Judith
2008-07-09 5:36 ` Drew Adams
2008-07-09 8:45 ` Peter Dyballa
0 siblings, 2 replies; 3+ messages in thread
From: Judith @ 2008-07-08 23:59 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
I have been searching for the right commands to resize the width of
the frames. I am using Emacs v21.3.1 under x86_64-linux.
I load ESS because I like running R within emacs, but I would like
to resize the display that appears in the R buffer. I handle data
frames with many columns and although I am able to resize the window,
the display is istill restricted to the same width, which seems to be
approximately 80 characters. What confuses me is the fact that this
restriction doesn't apply to the buffer containing the R script. I am
guessing that I need to make changes somewhere else andnot to .emacs?
I tried the following command in .emacs without success.
(setq initial-frame-alist '(width .150))
Any help will be very appreciated.
Thank you,
Judith
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Adding more columns to width of frame
2008-07-08 23:59 Adding more columns to width of frame Judith
@ 2008-07-09 5:36 ` Drew Adams
2008-07-09 8:45 ` Peter Dyballa
1 sibling, 0 replies; 3+ messages in thread
From: Drew Adams @ 2008-07-09 5:36 UTC (permalink / raw)
To: 'Judith', help-gnu-emacs
> I have been searching for the right commands to resize the width of
> the frames. I am using Emacs v21.3.1 under x86_64-linux.
>
> I load ESS because I like running R within emacs, but I would like
> to resize the display that appears in the R buffer. I handle data
> frames with many columns and although I am able to resize the window,
> the display is istill restricted to the same width, which seems to be
> approximately 80 characters. What confuses me is the fact that this
> restriction doesn't apply to the buffer containing the R script. I am
> guessing that I need to make changes somewhere else andnot to .emacs?
>
> I tried the following command in .emacs without success.
> (setq initial-frame-alist '(width .150))
To set the width of the current frame:
(set-frame-width nil 150)
Or make it a command:
(defun my-set-frame-width (width)
"..."
(interactive "nWidth: ")
(set-frame-width nil width))
Or use commands `enlarge-frame-horizontally' and `shrink-frame-horizontally':
http://www.emacswiki.org/cgi-bin/wiki/frame-cmds.el
Or use command `fit-frame' to fit a one-window frame to its buffer:
http://www.emacswiki.org/cgi-bin/wiki/fit-frame.el
If you want to always set the same frame to a given width:
(set-frame-width my-frame 150)
If you only know the buffer name, not the frame name, display the buffer, select
its window, and then set the selected frame's width:
(select-window (get-buffer-window my-buffer 'visible))
(set-frame-width (selected-frame) 150)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Adding more columns to width of frame
2008-07-08 23:59 Adding more columns to width of frame Judith
2008-07-09 5:36 ` Drew Adams
@ 2008-07-09 8:45 ` Peter Dyballa
1 sibling, 0 replies; 3+ messages in thread
From: Peter Dyballa @ 2008-07-09 8:45 UTC (permalink / raw)
To: Judith; +Cc: help-gnu-emacs
Am 09.07.2008 um 01:59 schrieb Judith:
> (setq initial-frame-alist '(width .150))
(setq initial-frame-alist '(width . 150))
would be better. There is also default-frame-alist, which works for
all other frames.
An upgrade to GNU Emacs 22.2 might be worth a consideration. Could be
both Emacsen can coexist in your Linux.
--
Greetings
Pete
Only useless documentation transcends the first two laws.
– Arnold's Third Law of Documentation
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-07-09 8:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-08 23:59 Adding more columns to width of frame Judith
2008-07-09 5:36 ` Drew Adams
2008-07-09 8:45 ` Peter Dyballa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).