w32-vars.el 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. ;;; w32-vars.el --- MS-Windows specific user options
  2. ;; Copyright (C) 2002-2017 Free Software Foundation, Inc.
  3. ;; Author: Jason Rumney <jasonr@gnu.org>
  4. ;; Keywords: internal
  5. ;; Package: emacs
  6. ;; This file is part of GNU Emacs.
  7. ;; GNU Emacs is free software: you can redistribute it and/or modify
  8. ;; it under the terms of the GNU General Public License as published by
  9. ;; the Free Software Foundation, either version 3 of the License, or
  10. ;; (at your option) any later version.
  11. ;; GNU Emacs is distributed in the hope that it will be useful,
  12. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ;; GNU General Public License for more details.
  15. ;; You should have received a copy of the GNU General Public License
  16. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  17. ;;; Commentary:
  18. ;;; Code:
  19. ;; Custom group for w32 specific settings
  20. (defgroup w32 nil
  21. "MS-Windows specific features."
  22. :group 'environment
  23. :version "22.1"
  24. :prefix "w32")
  25. ;; Redefine the font selection to use the standard W32 dialog
  26. (defcustom w32-use-w32-font-dialog t
  27. "If non-nil, use the standard Windows font dialog for font selection.
  28. If nil, pop up a menu of a fixed set of fonts including fontsets, like
  29. X does. See `w32-fixed-font-alist' for the fonts to appear in the menu.
  30. Setting this variable directly does not have any effect;
  31. use either \\[customize] or set `mouse-appearance-menu-map' to nil
  32. after changing the value of this variable."
  33. :type 'boolean
  34. :set (lambda (symbol value)
  35. (set symbol value)
  36. (setq mouse-appearance-menu-map nil))
  37. :group 'w32)
  38. (defvar w32-list-proportional-fonts nil
  39. "Include proportional fonts in the default font dialog.")
  40. (make-obsolete-variable 'w32-list-proportional-fonts "no longer used." "23.1")
  41. (unless (eq system-type 'cygwin)
  42. (defcustom w32-allow-system-shell nil
  43. "Disable startup warning when using \"system\" shells."
  44. :type 'boolean
  45. :group 'w32))
  46. (unless (eq system-type 'cygwin)
  47. (defcustom w32-system-shells '("cmd" "cmd.exe" "command" "command.com"
  48. "4nt" "4nt.exe" "4dos" "4dos.exe"
  49. "tcc" "tcc.exe" "ndos" "ndos.exe")
  50. "List of strings recognized as Windows system shells."
  51. :type '(repeat string)
  52. :group 'w32))
  53. ;; Want "menu" custom type for this.
  54. (defcustom w32-fixed-font-alist
  55. '("Font menu"
  56. ("Misc"
  57. ;; For these, we specify the pixel height and width.
  58. ("fixed" "Fixedsys")
  59. ("")
  60. ("Terminal 5x4"
  61. "-*-Terminal-normal-r-*-*-*-45-*-*-c-40-*-oem")
  62. ("Terminal 6x8"
  63. "-*-Terminal-normal-r-*-*-*-60-*-*-c-80-*-oem")
  64. ("Terminal 9x5"
  65. "-*-Terminal-normal-r-*-*-*-90-*-*-c-50-*-oem")
  66. ("Terminal 9x7"
  67. "-*-Terminal-normal-r-*-*-*-90-*-*-c-70-*-oem")
  68. ("Terminal 9x8"
  69. "-*-Terminal-normal-r-*-*-*-90-*-*-c-80-*-oem")
  70. ("Terminal 12x12"
  71. "-*-Terminal-normal-r-*-*-*-120-*-*-c-120-*-oem")
  72. ("Terminal 14x10"
  73. "-*-Terminal-normal-r-*-*-*-135-*-*-c-100-*-oem")
  74. ("Terminal 6x6 Bold"
  75. "-*-Terminal-bold-r-*-*-*-60-*-*-c-60-*-oem")
  76. ("")
  77. ("Lucida Sans Typewriter.8"
  78. "-*-Lucida Sans Typewriter-normal-r-*-*-11-*-*-*-c-*-iso8859-1")
  79. ("Lucida Sans Typewriter.9"
  80. "-*-Lucida Sans Typewriter-normal-r-*-*-12-*-*-*-c-*-iso8859-1")
  81. ("Lucida Sans Typewriter.10"
  82. "-*-Lucida Sans Typewriter-normal-r-*-*-13-*-*-*-c-*-iso8859-1")
  83. ("Lucida Sans Typewriter.11"
  84. "-*-Lucida Sans Typewriter-normal-r-*-*-15-*-*-*-c-*-iso8859-1")
  85. ("Lucida Sans Typewriter.12"
  86. "-*-Lucida Sans Typewriter-normal-r-*-*-16-*-*-*-c-*-iso8859-1")
  87. ("Lucida Sans Typewriter.8 Bold"
  88. "-*-Lucida Sans Typewriter-semibold-r-*-*-11-*-*-*-c-*-iso8859-1")
  89. ("Lucida Sans Typewriter.9 Bold"
  90. "-*-Lucida Sans Typewriter-semibold-r-*-*-12-*-*-*-c-*-iso8859-1")
  91. ("Lucida Sans Typewriter.10 Bold"
  92. "-*-Lucida Sans Typewriter-semibold-r-*-*-13-*-*-*-c-*-iso8859-1")
  93. ("Lucida Sans Typewriter.11 Bold"
  94. "-*-Lucida Sans Typewriter-semibold-r-*-*-15-*-*-*-c-*-iso8859-1")
  95. ("Lucida Sans Typewriter.12 Bold"
  96. "-*-Lucida Sans Typewriter-semibold-r-*-*-16-*-*-*-c-*-iso8859-1"))
  97. ("Courier"
  98. ("Courier 10x8"
  99. "-*-Courier New-normal-r-*-*-*-97-*-*-c-80-iso8859-1")
  100. ("Courier 12x9"
  101. "-*-Courier New-normal-r-*-*-*-120-*-*-c-90-iso8859-1")
  102. ("Courier 15x12"
  103. "-*-Courier New-normal-r-*-*-*-150-*-*-c-120-iso8859-1")
  104. ;; For these, we specify the point height.
  105. ("")
  106. ("8" "-*-Courier New-normal-r-*-*-11-*-*-*-c-*-iso8859-1")
  107. ("9" "-*-Courier New-normal-r-*-*-12-*-*-*-c-*-iso8859-1")
  108. ("10" "-*-Courier New-normal-r-*-*-13-*-*-*-c-*-iso8859-1")
  109. ("11" "-*-Courier New-normal-r-*-*-15-*-*-*-c-*-iso8859-1")
  110. ("12" "-*-Courier New-normal-r-*-*-16-*-*-*-c-*-iso8859-1")
  111. ("8 bold" "-*-Courier New-bold-r-*-*-11-*-*-*-c-*-iso8859-1")
  112. ("9 bold" "-*-Courier New-bold-r-*-*-12-*-*-*-c-*-iso8859-1")
  113. ("10 bold" "-*-Courier New-bold-r-*-*-13-*-*-*-c-*-iso8859-1")
  114. ("11 bold" "-*-Courier New-bold-r-*-*-15-*-*-*-c-*-iso8859-1")
  115. ("12 bold" "-*-Courier New-bold-r-*-*-16-*-*-*-c-*-iso8859-1")
  116. ("8 italic" "-*-Courier New-normal-i-*-*-11-*-*-*-c-*-iso8859-1")
  117. ("9 italic" "-*-Courier New-normal-i-*-*-12-*-*-*-c-*-iso8859-1")
  118. ("10 italic" "-*-Courier New-normal-i-*-*-13-*-*-*-c-*-iso8859-1")
  119. ("11 italic" "-*-Courier New-normal-i-*-*-15-*-*-*-c-*-iso8859-1")
  120. ("12 italic" "-*-Courier New-normal-i-*-*-16-*-*-*-c-*-iso8859-1")
  121. ("8 bold italic" "-*-Courier New-bold-i-*-*-11-*-*-*-c-*-iso8859-1")
  122. ("9 bold italic" "-*-Courier New-bold-i-*-*-12-*-*-*-c-*-iso8859-1")
  123. ("10 bold italic" "-*-Courier New-bold-i-*-*-13-*-*-*-c-*-iso8859-1")
  124. ("11 bold italic" "-*-Courier New-bold-i-*-*-15-*-*-*-c-*-iso8859-1")
  125. ("12 bold italic" "-*-Courier New-bold-i-*-*-16-*-*-*-c-*-iso8859-1")
  126. ))
  127. "Fonts suitable for use in Emacs.
  128. Initially this is a list of some fixed width fonts that most people
  129. will have like Terminal and Courier. These fonts are used in the font
  130. menu if the variable `w32-use-w32-font-dialog' is nil."
  131. :type '(list
  132. (string :tag "Menu Title")
  133. (repeat :inline t
  134. (list :tag "Submenu"
  135. (string :tag "Title")
  136. (repeat :inline t
  137. (choice :tag ""
  138. (const :tag "Separator" (""))
  139. (list :tag "Font Entry"
  140. (string :tag "Menu text")
  141. (string :tag "Font")))))))
  142. :group 'w32)
  143. (make-obsolete-variable 'w32-enable-synthesized-fonts nil "24.4")
  144. (provide 'w32-vars)
  145. ;;; w32-vars.el ends here