From: alxx <alxx@indigenious.ro>
To: Help-gnu-emacs@gnu.org
Subject: fit-frame every time i open a file
Date: Mon, 15 Oct 2007 06:07:54 -0700 (PDT) [thread overview]
Message-ID: <13212438.post@talk.nabble.com> (raw)
Hello,
I'm been using emacs (well, Aquamacs for the past year) but I'm still on a
beginner's level. I've went through some of the available tutorials and I'm
also a computer programmer, so I should at least pretend to understand emacs
better :)
Here's my question. I've been getting tired of manually calling fit-frame
everytime I open a file with long lines (I have a wide-screen iMac so soft
wrapping doesn't make much sense), and I would like to know if there's any
easy way to tell emacs to call fit-frame everytime it opens a file.
I tried to hook fit-frame to some of the hooks (specifically,
after-make-frame) but it didn't seem to do much (at least in Aquamacs).
Since I've noticed that Aquamacs sets the mark after each file opening, I
tried to hook fit-frame to activate-mark-hook and that did the trick, except
-- you guessed it -- my window is all over the screen everytime I select
anything.
Does anyone know what the correct hook would be to make fit-frame run each
time I open a file? Or what's the correct way to do this?
Thank you!
--
View this message in context: http://www.nabble.com/fit-frame-every-time-i-open-a-file-tf4627339.html#a13212438
Sent from the Emacs - Help mailing list archive at Nabble.com.
next reply other threads:[~2007-10-15 13:07 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-15 13:07 alxx [this message]
2007-10-15 15:45 ` fit-frame every time i open a file 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
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=13212438.post@talk.nabble.com \
--to=alxx@indigenious.ro \
--cc=Help-gnu-emacs@gnu.org \
/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.