diff --git a/emacs/.emacs.d/emacs.org b/emacs/.emacs.d/emacs.org index d76b4ca..2ae9cba 100644 --- a/emacs/.emacs.d/emacs.org +++ b/emacs/.emacs.d/emacs.org @@ -323,6 +323,22 @@ Typing out *yes* or *no* is stupid. (defalias 'yes-or-no-p 'y-or-n-p) #+END_SRC +Also on osx, don't ever display the gui dialog box. Taken from http://superuser.com/questions/125569/how-to-fix-emacs-popup-dialogs-on-mac-os-x + +#+BEGIN_SRC emacs-lisp + (when (and on-osx (window-system)) + (defadvice yes-or-no-p (around prevent-dialog activate) + "Prevent yes-or-no-p from activating a dialog" + (let ((use-dialog-box nil)) + ad-do-it)) + (defadvice y-or-n-p (around prevent-dialog-yorn activate) + "Prevent y-or-n-p from activating a dialog" + (let ((use-dialog-box nil)) + ad-do-it)) + ) + +#+END_SRC + *** global key bindings Global key bindings.