4 ms·
Unless you patch the Cocoa display logic, the fullscreen function won't work for those using Cocoa Emacs. You can still get 90% there using maxframe.el[0].
by mikedouglas 17y ago
Unless you patch the Cocoa display logic, the fullscreen function won't work for those using Cocoa Emacs. You can still get 90% there using maxframe.el[0].
;; psuedo-fullscreen
(require 'maxframe)
(setq mf-max-width 1440)
(defun toggle-maxframe ()
(interactive)
(if (eq (mf-max-columns (mf-max-display-pixel-width)) (frame-width))
(restore-frame)
(maximize-frame)))
(global-set-key (kbd "<s-return>") 'toggle-maxframe)
[0]: http://github.com/jmjeong/my-dot-emacs/blob/master/maxframe.el http://github.com/jmjeong/my-dot-emacs/blob/master/maxframe....
- asenchi 17y agoThis will also work without the dependencies: (defun maximize-frame () (interactive) (set-frame-size (selected-frame) (display-pixel-width) (display-pixel-height)) (set-frame-position (selected-frame) 0 0)) EDIT: Should've read the help :)