]> git.eshelyaron.com Git - emacs.git/commitdiff
(command-line): Set the default tooltip-mode
authorGerd Moellmann <gerd@gnu.org>
Thu, 9 Nov 2000 23:47:28 +0000 (23:47 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 9 Nov 2000 23:47:28 +0000 (23:47 +0000)
to t for graphical displays which implement x-show-tip.

lisp/startup.el

index 1c0f9814cf17933fee93f9c4508e6aa7236befd5..8cc24039b12d3e365f90506da8e01ef0d6bdf1ae 100644 (file)
@@ -765,6 +765,12 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
     (setq-default blink-cursor t)
     (blink-cursor-mode 1))
 
+  (when (and (not noninteractive)
+            (display-graphic-p)
+            (fboundp 'x-show-tip))
+    (setq-default tooltip-mode t)
+    (tooltip-mode 1))
+
   ;; Register default TTY colors for the case the terminal hasn't a
   ;; terminal init file.
   (or (memq window-system '(x w32))