unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Setting Emacs geometry (MacOS / NS)
@ 2009-04-08 16:36 Alberto Simões
  2009-04-08 16:46 ` Peter Dyballa
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Alberto Simões @ 2009-04-08 16:36 UTC (permalink / raw)
  To: help-gnu-emacs

Hello.

ANybody knows how to set a default emacs geometry under MacOS?
Everytime I open it I have to rescale for half of its original width :)

Cheers
Alberto

-- 
Alberto Simões




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

* Re: Setting Emacs geometry (MacOS / NS)
  2009-04-08 16:36 Setting Emacs geometry (MacOS / NS) Alberto Simões
@ 2009-04-08 16:46 ` Peter Dyballa
  2009-04-08 18:48 ` Nurullah Akkaya
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2009-04-08 16:46 UTC (permalink / raw)
  To: Alberto Simões; +Cc: help-gnu-emacs


Am 08.04.2009 um 18:36 schrieb Alberto Simões:

> ANybody knows how to set a default emacs geometry under MacOS?

Initial- and default-frame-alist. Although not 100 %, I think. There  
seems to be some influence from X resources ...

--
Greetings

   Pete

November, n.:
         The eleventh twelfth of a weariness.
                 – Ambrose Bierce, "The Devil's Dictionary"







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

* Re: Setting Emacs geometry (MacOS / NS)
  2009-04-08 16:36 Setting Emacs geometry (MacOS / NS) Alberto Simões
  2009-04-08 16:46 ` Peter Dyballa
@ 2009-04-08 18:48 ` Nurullah Akkaya
  2009-04-08 19:42 ` Leo
       [not found] ` <mailman.4912.1239209225.31690.help-gnu-emacs@gnu.org>
  3 siblings, 0 replies; 6+ messages in thread
From: Nurullah Akkaya @ 2009-04-08 18:48 UTC (permalink / raw)
  Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 675 bytes --]

2009/4/8 Alberto Simões <hashashin@gmail.com>

> Hello.
>
> ANybody knows how to set a default emacs geometry under MacOS?
> Everytime I open it I have to rescale for half of its original width :)
>
> Cheers
> Alberto
>
> --
> Alberto Simões
>
>
>
You can use the following function. Thats how i set my default size on OS X.

(defun na-resize-frame-big ()
  "Set size"
  (interactive)
  (set-frame-width (selected-frame) 178)
  (set-frame-height (selected-frame) 50 )
  (set-frame-position (selected-frame) 0 1))

Set you width and height accordingly. And call it from your .emacs

(na-resize-frame-big)

-- 
Nurullah Akkaya
http://nakkaya.com

[-- Attachment #2: Type: text/html, Size: 1080 bytes --]

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

* Re: Setting Emacs geometry (MacOS / NS)
  2009-04-08 16:36 Setting Emacs geometry (MacOS / NS) Alberto Simões
  2009-04-08 16:46 ` Peter Dyballa
  2009-04-08 18:48 ` Nurullah Akkaya
@ 2009-04-08 19:42 ` Leo
  2009-04-09 14:37   ` Unicode setup under Mac OS X (Was: Re: Setting Emacs geometry (MacOS / NS)) William Xu
       [not found] ` <mailman.4912.1239209225.31690.help-gnu-emacs@gnu.org>
  3 siblings, 1 reply; 6+ messages in thread
From: Leo @ 2009-04-08 19:42 UTC (permalink / raw)
  To: Alberto Simões; +Cc: help-gnu-emacs

On 2009-04-08 17:36 +0100, Alberto Simões wrote:
> Hello.
>
> ANybody knows how to set a default emacs geometry under MacOS?
> Everytime I open it I have to rescale for half of its original width :)
>
> Cheers
> Alberto

I asked myself this question when I got my first macbook 7 days ago.
Unfortunately there seems to be no way to set geometry outside Emacs,
unlike either Windows or gnU/LiNUX.

At the moment I'm using:

(modify-all-frames-parameters
 '((width . 120)
   (height . 42)))

Tweak the values to suit your needs. The frame will start with default
size and then expand to the size specified above.

BTW, mac has the best support for unicode; even the Terminal.app can
display any unicode characters. If anybody has any idea on how to set up
Emacs to match Terminal.app's unicode support, please let me know.

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .: I use Emacs :.

               www.git-scm.com
    git - the one true version control system




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

* Unicode setup under Mac OS X (Was: Re: Setting Emacs geometry (MacOS / NS))
  2009-04-08 19:42 ` Leo
@ 2009-04-09 14:37   ` William Xu
  0 siblings, 0 replies; 6+ messages in thread
From: William Xu @ 2009-04-09 14:37 UTC (permalink / raw)
  To: help-gnu-emacs

Leo <sdl.web@gmail.com> writes:

> BTW, mac has the best support for unicode; even the Terminal.app can
> display any unicode characters. If anybody has any idea on how to set up
> Emacs to match Terminal.app's unicode support, please let me know.

Do you mean how to setup fontset fonts for different charsets? 

I use the following to setup CJK fonts: 

   (setq xwl-default-font "Monaco-14"
         xwl-chinese-font "Hei"
         xwl-japanese-font "Hiragino_Kaku_Gothic_ProN"))

    (let ((charset-font `((japanese-jisx0208   . ,xwl-japanese-font)
                          (chinese-gb2312      . ,xwl-chinese-font)
                          (chinese-gbk         . ,xwl-chinese-font)
                          (gb18030             . ,xwl-chinese-font)
                          ;; (big5             . "Hei")
                          (japanese-jisx0208   . ,xwl-japanese-font)
                          ;; (japanese-jisx0212 . ,xwl-japanese-font)
                          )))
      (set-default-font xwl-default-font)
      (mapc (lambda (charset-font)
              (set-fontset-font (frame-parameter nil 'font)
                                (car charset-font)
                                (font-spec :family (cdr charset-font) :size 14)))
            charset-font))

-- 
William

http://xwl.appspot.com





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

* Re: Setting Emacs geometry (MacOS / NS)
       [not found] ` <mailman.4912.1239209225.31690.help-gnu-emacs@gnu.org>
@ 2009-04-14  7:29   ` Torben Knudsen
  0 siblings, 0 replies; 6+ messages in thread
From: Torben Knudsen @ 2009-04-14  7:29 UTC (permalink / raw)
  To: help-gnu-emacs

Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> Am 08.04.2009 um 18:36 schrieb Alberto Simões:
>
>> ANybody knows how to set a default emacs geometry under MacOS?
>
> Initial- and default-frame-alist. Although not 100 %, I think. There
> seems to be some influence from X resources ...

I couldn't make .Xresources work for this so I have the following in
my .emacs

;; Sizing emacs via .Xresources did not work perfectly for me.  
;; Therefore the below is included
(setq default-frame-alist '((top . 0) (left . 1440) (width . 80) (height . 66)))
(setq initial-frame-alist '((top . 0) (left . 1440) (width . 80) (height . 66)))

-- 
Associate Prof. Ph.D Torben Knudsen	Mobile	: (+45) 2787 9826
Section of Automation and Control,	Direct	: 6 8694
Department of Electronic Systems,	Email	: tk@es.aau.dk   
Aalborg University 
Fredrik Bajersvej 7 
DK-9220 Aalborg Ø
Denmark 


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

end of thread, other threads:[~2009-04-14  7:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-08 16:36 Setting Emacs geometry (MacOS / NS) Alberto Simões
2009-04-08 16:46 ` Peter Dyballa
2009-04-08 18:48 ` Nurullah Akkaya
2009-04-08 19:42 ` Leo
2009-04-09 14:37   ` Unicode setup under Mac OS X (Was: Re: Setting Emacs geometry (MacOS / NS)) William Xu
     [not found] ` <mailman.4912.1239209225.31690.help-gnu-emacs@gnu.org>
2009-04-14  7:29   ` Setting Emacs geometry (MacOS / NS) Torben Knudsen

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