]> git.eshelyaron.com Git - emacs.git/commitdiff
(command-line): Set default eol-mnemonic-* strings to
authorEli Zaretskii <eliz@gnu.org>
Wed, 27 Jan 1999 10:12:43 +0000 (10:12 +0000)
committerEli Zaretskii <eliz@gnu.org>
Wed, 27 Jan 1999 10:12:43 +0000 (10:12 +0000)
display end-of-line format in mode line.

lisp/startup.el

index 3def4ed08769cad398811a2c7236a8a9bf08fb37..950cf702ffcae61213e5b28bb213633c2d3e68cc 100644 (file)
@@ -558,6 +558,18 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
   ;;! ;; Choose a good default value for split-window-keep-point.
   ;;! (setq split-window-keep-point (> baud-rate 2400))
 
+  ;; Set the default strings to display in mode line for
+  ;; end-of-line formats that aren't native to this platform.
+  (cond
+   ((memq system-type '(ms-dos windows-nt emx))
+    (setq eol-mnemonic-unix "(Unix)")
+    (setq eol-mnemonic-mac  "(Mac)"))
+   ;; Mac-specific settings should come here, once there's a
+   ;; system-type symbol specific to MacOS.
+   (t  ; this is for Unix/GNU/Linux systems
+    (setq eol-mnemonic-dos  "(DOS)")
+    (setq eol-mnemonic-mac  "(Mac)")))
+
   ;; Read window system's init file if using a window system.
   (condition-case error
       (if (and window-system (not noninteractive))