emacs: Function to toggle native/non-native fullscreen on OS X

This commit is contained in:
Vincent Ambo 2013-08-01 11:31:13 +02:00
parent 459f0433e6
commit 580f642d40

View file

@ -147,6 +147,11 @@ comment as a filename."
;; Don't use Apple's native fullscreen (FIXME: Change with Mavericks) ;; Don't use Apple's native fullscreen (FIXME: Change with Mavericks)
(setq ns-use-native-fullscreen nil) (setq ns-use-native-fullscreen nil)
(defun toggle-native-fullscreen ()
"Toggles between native and non-native OS X fullscreen"
(interactive)
(setq ns-use-native-fullscreen (not ns-use-native-fullscreen)))
;; ## Navigation and key bindings ## ;; ## Navigation and key bindings ##
;; Navigate windows with M-<arrows> ;; Navigate windows with M-<arrows>