aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2005-04-12 23:06:44 +0000
committerLuc Teirlinck2005-04-12 23:06:44 +0000
commit3e4c23e3533ec96077e380f2693c7892bb443fcb (patch)
treeb4235911c69cca18baaa48940e746af70c9b5695
parent9001354f958f1a7d000d23198a5fd3404521bdb7 (diff)
downloademacs-3e4c23e3533ec96077e380f2693c7892bb443fcb.tar.gz
emacs-3e4c23e3533ec96077e380f2693c7892bb443fcb.zip
(command-line): Enable Xterm Mouse mode by default.
-rw-r--r--lisp/startup.el12
1 files changed, 11 insertions, 1 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index fddb8e9904b..e27f86b422b 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -746,6 +746,9 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
746 (custom-reevaluate-setting 'blink-cursor-mode) 746 (custom-reevaluate-setting 'blink-cursor-mode)
747 (custom-reevaluate-setting 'normal-erase-is-backspace) 747 (custom-reevaluate-setting 'normal-erase-is-backspace)
748 748
749 ;; If you change the code below, you need to also change the
750 ;; corresponding code in the tooltip-mode defcustom. The two need
751 ;; to be equivalent under all conditions, or Custom will get confused.
749 (unless (or noninteractive 752 (unless (or noninteractive
750 emacs-basic-display 753 emacs-basic-display
751 (not (display-graphic-p)) 754 (not (display-graphic-p))
@@ -963,6 +966,10 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
963 966
964 ;; Load library for our terminal type. 967 ;; Load library for our terminal type.
965 ;; User init file can set term-file-prefix to nil to prevent this. 968 ;; User init file can set term-file-prefix to nil to prevent this.
969
970 ;; If you change the code below, you need to also change the
971 ;; corresponding code in the xterm-mouse-mode defcustom. The two need
972 ;; to be equivalent under all conditions, or Custom will get confused.
966 (unless (or noninteractive 973 (unless (or noninteractive
967 window-system 974 window-system
968 (null term-file-prefix)) 975 (null term-file-prefix))
@@ -974,7 +981,10 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
974 (setq term 981 (setq term
975 (if (setq hyphend (string-match "[-_][^-_]+$" term)) 982 (if (setq hyphend (string-match "[-_][^-_]+$" term))
976 (substring term 0 hyphend) 983 (substring term 0 hyphend)
977 nil))))) 984 nil)))
985 (and term
986 (string-match "^\\(xterm\\|rxvt\\|dtterm\\|eterm\\)" term)
987 (xterm-mouse-mode 1))))
978 988
979 ;; Update the out-of-memory error message based on user's key bindings 989 ;; Update the out-of-memory error message based on user's key bindings
980 ;; for save-some-buffers. 990 ;; for save-some-buffers.