Results 1 to 5 of 5

Thread: Open Emacs in maximized window as default in Linux

  1. #1
    Join Date
    Oct 2010
    Posts
    163

    Open Emacs in maximized window as default in Linux

    I have recently installed the Emacs on my desktop PC. It installs perfectly. But every time I open this application it opens with a minimize window. You may know the default size of the minimized text editor. So I have to manually click the maximize button on every launch. Now I need to set it as a Maximized size. I don’t know how to do this. I there any way to set the Maximize option as default on Emac? Some application does include this option but I couldn’t find it in this text editor.

  2. #2
    Join Date
    Feb 2010
    Posts
    428

    Re: Open Emacs in maximized window as default in Linux

    Actually the default size of the minimize windows of any application in Linux is the as follows
    Width= (monitor_width)/2
    Height= (3/4)*(monitor_height)

    Man the below code in .emacs this will help you to toggle the default Window as Maximized
    Code:
    (defun toggle-fullscreen ()
      (interactive)
      (x-send-client-message nil 0 nil "_NET_WM_STATE" 32 '(2 "_NET_WM_STATE_MAXIMIZED_VERT" 0))
      (x-send-client-message nil 0 nil "_NET_WM_STATE" 32 '(2 "_NET_WM_STATE_MAXIMIZED_HORZ" 0)))
    (toggle-fullscreen)

  3. #3
    Join Date
    Feb 2010
    Posts
    524

    Re: Open Emacs in maximized window as default in Linux

    The GNU Emacs is the rich featured text editor with more editing commands (nearly 1000) than other text editors. If you are using the gnome/ubuntu then you will find the –geometry option. This option will allow us to set the size and locations of the Windows at definite maximums. If your display so not matches the maximums then these settings will not affect at all. To run the emacs in full screen use the following command-
    For full screen-----$ emacs –fs
    For full height-----$ emacs -fh

  4. #4
    Join Date
    Feb 2010
    Posts
    532

    Re: Open Emacs in maximized window as default in Linux

    There is a one package called Devils Pie for Linux and UNIX users to control their windows size or geometry. You can use this package for all kinds of graphical application. This will give you complete control over the X window System. You don’t have to learn any additional tricks, commands or scripts to control the geometry. It uses a lisp-like language to configure the geometry. For the Emacs put the following code in ~/.devilspie/config.ds
    Code:
    ( if 
      ( is ( application_name ) "emacs" )
      ( begin 
        ( geometry "831x1012+0+32" )
      )
    )
    The script file must end with .ds extension, otherwise the file will not recognize.

  5. #5
    Join Date
    Feb 2010
    Posts
    763

    Re: Open Emacs in maximized window as default in Linux

    Try to find out is there any X resource which is equivalent to the commands like –fh or –fullheight. Try the following code
    Code:
    emacs.fullheight: true
    emacs.fullscreen: true
    emacs.fullwidth: true
    Find out for desired effect. Otherwise if you are using Gnome then you can set the keyboard shortcuts to toggle the screen. For Ubuntu users they can experiment with the following code
    Code:
    (run-with-idle-timer 0.1 nil 'toggle-fullscreen)
    Code:
    -g widthxheight[{+-}xoffset{+-}yoffset]]’
    --geometry=widthxheight[{+-}xoffset{+-}yoffset]]’

Similar Threads

  1. How to restore Spybot's maximized window
    By Falgu in forum Networking & Security
    Replies: 5
    Last Post: 17-07-2012, 06:04 PM
  2. Excel 2010 Cannot Open Maximized.
    By Norika in forum Windows Software
    Replies: 3
    Last Post: 31-08-2011, 05:46 AM
  3. Open New Window maximized in Internet Explorer 8
    By Nicole Kidman in forum Technology & Internet
    Replies: 4
    Last Post: 06-02-2011, 11:37 AM
  4. Replies: 5
    Last Post: 03-08-2010, 02:44 PM
  5. Changing Default View In WORD 2007 "Open" Window?
    By TopHawkeye in forum Windows Software
    Replies: 4
    Last Post: 30-07-2010, 02:21 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,924,698.08719 seconds with 17 queries