Quellcode durchsuchen

No more stupid gui dialog boxes. Freaking annoying that.

cray
Mitch Tishmack vor 11 Jahren
Ursprung
Commit
02d48dcee0
1 geänderte Dateien mit 16 neuen und 0 gelöschten Zeilen
  1. +16
    -0
      emacs/.emacs.d/emacs.org

+ 16
- 0
emacs/.emacs.d/emacs.org Datei anzeigen

@@ -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.


Laden…
Abbrechen
Speichern