Skip to content

MatthewBregg/auto-resize-emacs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

What is it?

Since at the moment scaling multimonitors at different dpis can be a bit troublesome, for now, sometimes one must scale per application.

This will let emacs switch between a high and low dpi mode, based on what monitor it sees it is on.

Works per frame also, so a frame on a low dpi monitor will not be scaled, while one on a high dpi monitor will.

Bugs

  1. Not everything seems to resize perfectly.

How to install

Place somewhere, and then

(add-to-list 'load-path "/path/to/extension")
(require 'auto-resize)

For example

(add-to-list 'load-path "~/.emacs.d/auto-resize")
(require 'auto-resize)

Custom Vars

The variables auto-resize–timer-value, and auto-resize–ppi-turning-point specify how often to check, and the ppi to check for.

Starting and stopping

M-x : auto-resize-start-auto-resize-timer to start, if not running, else do nothing. M-x : auto-resize-cancel-auto-resize-timer to stop, if running, else do nothing

About

Auto-resize emacs based on the (frame-monitor-attributes).

Resources

License

Stars

Watchers

Forks

Packages

No packages published