From: "James K. Lowden" <jklowden@speakeasy.net>
To: help-gnu-emacs@gnu.org
Subject: critique: my-first-function
Date: Sun, 12 Jun 2016 18:39:01 -0400 [thread overview]
Message-ID: <20160612183901.e51dc7f75549ed99cfd47363@speakeasy.net> (raw)
Although I've been using emacs for years, today was the first time I
set out to write a substantial (to me) function from first principles.
Below is what I came up with. I wonder if anyone has a suggestion or
opinion on how it might have been done better, differently, or more in
the spirit of the emacs zeitgeist?
(defun open-tall-frames ()
"Open two tall frames."
(interactive)
(let ( (frame-parameters
'((width . 80)
(height . 60)
(minibuffer . t)
(window-system . x)))
(frame1 (make-frame frame-parameters))
(frame2 (make-frame frame-parameters))
)
(set-frame-position frame1 -1 0)
(set-frame-position frame2 (- (frame-pixel-width frame1)) 0)
))
--jkl
next reply other threads:[~2016-06-12 22:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-12 22:39 James K. Lowden [this message]
2016-06-13 1:04 ` critique: my-first-function Stefan Monnier
2016-06-13 1:08 ` Emanuel Berg
[not found] ` <mailman.1403.1465780144.1216.help-gnu-emacs@gnu.org>
2016-06-15 1:47 ` James K. Lowden
2016-06-15 4:43 ` Drew Adams
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160612183901.e51dc7f75549ed99cfd47363@speakeasy.net \
--to=jklowden@speakeasy.net \
--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.
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).