From: "Drew Adams" <drew.adams@oracle.com>
To: "Alex Deva" <alxx@indigenious.ro>
Cc: Peter Dyballa <Peter_Dyballa@Web.DE>, Help-gnu-emacs@gnu.org
Subject: RE: fit-frame every time i open a file
Date: Mon, 15 Oct 2007 11:41:10 -0700 [thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICCEJPEAAA.drew.adams@oracle.com> (raw)
In-Reply-To: <4C1E5B52-22E6-4423-B1DE-2CCFDC134CEE@indigenious.ro>
> Sorry Drew, but as I said, I'm more of a beginner.
No apology needed. My fault for not noticing that.
> I saved the two libraries you recommended, and then loaded both
> manually with load-file. So... what now? I can't call add-hook from
> inside emacs (or I don't know how). What am I supposed to do from
> this point on? How do I test the hook?
After you load the *.el files with `load-file', do this (mentioned in the
file Commentary):
M-: (add-hook 'after-make-frame-functions 'fit-frame)
If that doesn't fix the problem, then take a look at the value of
`after-make-frame-functions'. If it contains more than just `fit-frame', try
setting it to nil (empty) and then adding `fit-frame' back again:
M-: (setq after-make-frame-functions nil)
M-: (add-hook 'after-make-frame-functions 'fit-frame)
The result should then be this:
C-h v after-make-frame-functions ==> (fit-frame)
Note: If there were additional functions, besides `fit-frame', in
`after-make-frame-functions', then there might be a good reason for them to
be there. ;-)
The above procedure is just to try to see if `fit-frame' does the right
thing at least when there are no other `after-make-frame-functions' present.
If it does, then there is likely interference among those functions. In that
case, you can try (starting with an empty list) adding them all back, in
different orders (e.g. try `fit-frame' first or last), to see if that helps.
You get the idea.
But see my previous reply about long lines. It sounds like this might just
be unrealistic expectations on your part. `fit-frame' makes the frame as
wide as its longest line, but it respects maximum limits that you can set.
See the `fit-frame' doc string.
next prev parent reply other threads:[~2007-10-15 18:41 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-15 13:07 fit-frame every time i open a file alxx
2007-10-15 15:45 ` Drew Adams
2007-10-15 16:13 ` alxx
2007-10-15 17:02 ` Drew Adams
2007-10-15 17:44 ` Peter Dyballa
2007-10-15 18:15 ` Drew Adams
2007-10-15 18:23 ` Alex Deva
2007-10-15 18:41 ` Drew Adams [this message]
2007-10-15 20:12 ` Alex Deva
2007-10-15 20:54 ` Drew Adams
2007-10-16 7:15 ` Alex Deva
2007-10-16 14:18 ` Drew Adams
2007-10-16 8:44 ` Peter Dyballa
[not found] ` <mailman.2101.1192479183.18990.help-gnu-emacs@gnu.org>
2007-10-21 7:57 ` David Reitter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DNEMKBNJBGPAOPIJOOICCEJPEAAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
--cc=Help-gnu-emacs@gnu.org \
--cc=Peter_Dyballa@Web.DE \
--cc=alxx@indigenious.ro \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.