Skip to content
/ cframe Public

Allows for customization of frame types, which includes height and width of new Emacs frames

License

Notifications You must be signed in to change notification settings

plandes/cframe

Repository files navigation

Customize size and positions of a frame.

MELPA badge MELPA stable badge Build Status

Emacs frames position and dimensions are "learned" from user provided frame configurations, then restores them later. This is for users that prefer to resize Emacs frames with a key binding rather than the mouse.

To use this library:

  1. Position the frame how you like it.
  2. Record the frame with M-x cframe-add-or-advance-setting.
  3. Restore previous settings on start up with cframe-restore.
  4. Cycle through configurations with cframe-add-or-advance-setting.

You can get a list of the configuration and which is currently used with cframe-list.

Recommended Configuration

Recommended ~/.emacs configuration to restore the frame on start up:

(require 'cframe)

;; frame size settings based on screen dimentions
(global-set-key "\C-x9" 'cframe-restore)

;; doesn't clobber anything in shell, emacs lisp buffers (maybe others?)
(global-set-key "\C-\\" 'cframe-add-or-advance-setting)

Changelog

An extensive changelog is available here.

License

Copyright © 2017 - 2023 Paul Landes

GNU Lesser General Public License, Version 2.0

About

Allows for customization of frame types, which includes height and width of new Emacs frames

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published