summaryrefslogtreecommitdiff
path: root/lisp/startup.el
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2000-11-09 23:47:28 +0000
committerGerd Moellmann <gerd@gnu.org>2000-11-09 23:47:28 +0000
commite03c0d0c250628052b55c736d397aca79a86c46f (patch)
treecdbe0fef456e5ad1613ae1d0b61e6993e492820f /lisp/startup.el
parent9421effdc9876c484d74ab3fc3cef863c8c41bd1 (diff)
downloademacs-e03c0d0c250628052b55c736d397aca79a86c46f.tar.gz
(command-line): Set the default tooltip-mode
to t for graphical displays which implement x-show-tip.
Diffstat (limited to 'lisp/startup.el')
-rw-r--r--lisp/startup.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 1c0f9814cf1..8cc24039b12 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -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))