unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* critique: my-first-function
@ 2016-06-12 22:39 James K. Lowden
  2016-06-13  1:04 ` Stefan Monnier
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: James K. Lowden @ 2016-06-12 22:39 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-06-15  4:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-12 22:39 critique: my-first-function James K. Lowden
2016-06-13  1:04 ` 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

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).