help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

applescript maximize emacs


From: Ramesh Thulasiram
Subject: applescript maximize emacs
Date: Mon, 11 May 2015 13:44:55 -0700 (PDT)
User-agent: G2/1.0

I'm using emacs on my mac, and I have to always maximize it when i open it. so 
I added the following to my .emacs file adding a shortcut for maximizing, but 
it doesn't seem to work. does anyone one know what is the problem here?


(defun mac-maximize ()
  (interactive)
  (do-applescript "try
    click button 2 of window 1
end try"))
(global-set-key (kbd "C-c r x") 'mac-maximize)


Thanks,
ramesh


reply via email to

[Prev in Thread] Current Thread [Next in Thread]