-
-
Save tjg/aacf48cf4bfe692a4d6b to your computer and use it in GitHub Desktop.
Workaround for Emacs (MacOS) bug where you can't set :height too large
This file contains 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
;; Workaround for Emacs (MacOS) bug where you can't set :height too large. | |
;; | |
;; Bug is described here: http://emacswiki.org/emacs/SetFonts#toc14 | |
;; | |
;; This workaround is taken from http://www.emacswiki.org/emacs/GlobalTextScaleMode | |
;; If it interacts badly with some minor modes, that link offers an explanation. | |
;; | |
;; Also, the modeline will still be the smaller size. The minibuffer will also start out small, | |
;; but get bigger if you type into it. | |
(define-globalized-minor-mode | |
global-text-scale-mode | |
text-scale-mode | |
(lambda () (text-scale-mode 1))) | |
(defun global-text-scale-adjust (inc) (interactive) | |
(text-scale-set 1) | |
(kill-local-variable 'text-scale-mode-amount) | |
(setq-default text-scale-mode-amount (+ text-scale-mode-amount inc)) | |
(global-text-scale-mode 1)) | |
;; Example: you want Monaco 14, but that'd clip your frames' tops? | |
;; Try this: | |
(set-face-attribute 'default nil :family "Monaco" :height 120) | |
(global-text-scale-adjust 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment