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

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

Re: applescript maximize emacs


From: Pascal J. Bourguignon
Subject: Re: applescript maximize emacs
Date: Mon, 11 May 2015 22:55:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Ramesh Thulasiram <ramesh10dulkar@gmail.com> writes:

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

No, don't do that.  Use emacs!
cf. full-frame from 
https://gitlab.com/com-informatimago/emacs/blob/master/pjb-emacs.el#L1224

-- 
__Pascal Bourguignon__                 http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk


reply via email to

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