Created
August 5, 2015 02:44
-
-
Save offby1/2424df91182a9d6acaf1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(when (eq window-system 'ns) | |
(global-set-key (kbd "M-`") 'other-frame) | |
(defun set-appropriate-font (frame) | |
(interactive "i") | |
(setq frame (or frame (selected-frame))) | |
(cl-flet ((points (pix) (+ 20 (round (- pix 1440) 200 )))) | |
(set-frame-font | |
(format "Inconsolata-%s" (points (display-pixel-height))) | |
nil | |
(list frame)))) | |
(global-set-key (kbd "<f3>") 'set-appropriate-font) | |
(set-appropriate-font (selected-frame)) | |
(add-to-list 'after-make-frame-functions 'set-appropriate-font) | |
(add-to-list 'after-make-frame-functions 'wob t)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment