w32-vars.el 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. ;;; w32-vars.el --- MS-Windows specific user options
  2. ;; Copyright (C) 2002-2012 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. "Use the standard font dialog.
  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 font menu definition."
  30. :type 'boolean
  31. :group 'w32)
  32. (defvar w32-list-proportional-fonts nil
  33. "Include proportional fonts in the default font dialog.")
  34. (make-obsolete-variable 'w32-list-proportional-fonts "no longer used." "23.1")
  35. (defcustom w32-allow-system-shell nil
  36. "Disable startup warning when using \"system\" shells."
  37. :type 'boolean
  38. :group 'w32)
  39. (defcustom w32-system-shells '("cmd" "cmd.exe" "command" "command.com"
  40. "4nt" "4nt.exe" "4dos" "4dos.exe"
  41. "tcc" "tcc.exe" "ndos" "ndos.exe")
  42. "List of strings recognized as Windows system shells."
  43. :type '(repeat string)
  44. :group 'w32)
  45. ;; Want "menu" custom type for this.
  46. (defcustom w32-fixed-font-alist
  47. '("Font menu"
  48. ("Misc"
  49. ;; For these, we specify the pixel height and width.
  50. ("fixed" "Fixedsys")
  51. ("")
  52. ("Terminal 5x4"
  53. "-*-Terminal-normal-r-*-*-*-45-*-*-c-40-*-oem")
  54. ("Terminal 6x8"
  55. "-*-Terminal-normal-r-*-*-*-60-*-*-c-80-*-oem")
  56. ("Terminal 9x5"
  57. "-*-Terminal-normal-r-*-*-*-90-*-*-c-50-*-oem")
  58. ("Terminal 9x7"
  59. "-*-Terminal-normal-r-*-*-*-90-*-*-c-70-*-oem")
  60. ("Terminal 9x8"
  61. "-*-Terminal-normal-r-*-*-*-90-*-*-c-80-*-oem")
  62. ("Terminal 12x12"
  63. "-*-Terminal-normal-r-*-*-*-120-*-*-c-120-*-oem")
  64. ("Terminal 14x10"
  65. "-*-Terminal-normal-r-*-*-*-135-*-*-c-100-*-oem")
  66. ("Terminal 6x6 Bold"
  67. "-*-Terminal-bold-r-*-*-*-60-*-*-c-60-*-oem")
  68. ("")
  69. ("Lucida Sans Typewriter.8"
  70. "-*-Lucida Sans Typewriter-normal-r-*-*-11-*-*-*-c-*-iso8859-1")
  71. ("Lucida Sans Typewriter.9"
  72. "-*-Lucida Sans Typewriter-normal-r-*-*-12-*-*-*-c-*-iso8859-1")
  73. ("Lucida Sans Typewriter.10"
  74. "-*-Lucida Sans Typewriter-normal-r-*-*-13-*-*-*-c-*-iso8859-1")
  75. ("Lucida Sans Typewriter.11"
  76. "-*-Lucida Sans Typewriter-normal-r-*-*-15-*-*-*-c-*-iso8859-1")
  77. ("Lucida Sans Typewriter.12"
  78. "-*-Lucida Sans Typewriter-normal-r-*-*-16-*-*-*-c-*-iso8859-1")
  79. ("Lucida Sans Typewriter.8 Bold"
  80. "-*-Lucida Sans Typewriter-semibold-r-*-*-11-*-*-*-c-*-iso8859-1")
  81. ("Lucida Sans Typewriter.9 Bold"
  82. "-*-Lucida Sans Typewriter-semibold-r-*-*-12-*-*-*-c-*-iso8859-1")
  83. ("Lucida Sans Typewriter.10 Bold"
  84. "-*-Lucida Sans Typewriter-semibold-r-*-*-13-*-*-*-c-*-iso8859-1")
  85. ("Lucida Sans Typewriter.11 Bold"
  86. "-*-Lucida Sans Typewriter-semibold-r-*-*-15-*-*-*-c-*-iso8859-1")
  87. ("Lucida Sans Typewriter.12 Bold"
  88. "-*-Lucida Sans Typewriter-semibold-r-*-*-16-*-*-*-c-*-iso8859-1"))
  89. ("Courier"
  90. ("Courier 10x8"
  91. "-*-Courier-*normal-r-*-*-*-97-*-*-c-80-iso8859-1")
  92. ("Courier 12x9"
  93. "-*-Courier-*normal-r-*-*-*-120-*-*-c-90-iso8859-1")
  94. ("Courier 15x12"
  95. "-*-Courier-*normal-r-*-*-*-150-*-*-c-120-iso8859-1")
  96. ;; For these, we specify the point height.
  97. ("")
  98. ("8" "-*-Courier New-normal-r-*-*-11-*-*-*-c-*-iso8859-1")
  99. ("9" "-*-Courier New-normal-r-*-*-12-*-*-*-c-*-iso8859-1")
  100. ("10" "-*-Courier New-normal-r-*-*-13-*-*-*-c-*-iso8859-1")
  101. ("11" "-*-Courier New-normal-r-*-*-15-*-*-*-c-*-iso8859-1")
  102. ("12" "-*-Courier New-normal-r-*-*-16-*-*-*-c-*-iso8859-1")
  103. ("8 bold" "-*-Courier New-bold-r-*-*-11-*-*-*-c-*-iso8859-1")
  104. ("9 bold" "-*-Courier New-bold-r-*-*-12-*-*-*-c-*-iso8859-1")
  105. ("10 bold" "-*-Courier New-bold-r-*-*-13-*-*-*-c-*-iso8859-1")
  106. ("11 bold" "-*-Courier New-bold-r-*-*-15-*-*-*-c-*-iso8859-1")
  107. ("12 bold" "-*-Courier New-bold-r-*-*-16-*-*-*-c-*-iso8859-1")
  108. ("8 italic" "-*-Courier New-normal-i-*-*-11-*-*-*-c-*-iso8859-1")
  109. ("9 italic" "-*-Courier New-normal-i-*-*-12-*-*-*-c-*-iso8859-1")
  110. ("10 italic" "-*-Courier New-normal-i-*-*-13-*-*-*-c-*-iso8859-1")
  111. ("11 italic" "-*-Courier New-normal-i-*-*-15-*-*-*-c-*-iso8859-1")
  112. ("12 italic" "-*-Courier New-normal-i-*-*-16-*-*-*-c-*-iso8859-1")
  113. ("8 bold italic" "-*-Courier New-bold-i-*-*-11-*-*-*-c-*-iso8859-1")
  114. ("9 bold italic" "-*-Courier New-bold-i-*-*-12-*-*-*-c-*-iso8859-1")
  115. ("10 bold italic" "-*-Courier New-bold-i-*-*-13-*-*-*-c-*-iso8859-1")
  116. ("11 bold italic" "-*-Courier New-bold-i-*-*-15-*-*-*-c-*-iso8859-1")
  117. ("12 bold italic" "-*-Courier New-bold-i-*-*-16-*-*-*-c-*-iso8859-1")
  118. ))
  119. "Fonts suitable for use in Emacs.
  120. Initially this is a list of some fixed width fonts that most people
  121. will have like Terminal and Courier. These fonts are used in the font
  122. menu if the variable `w32-use-w32-font-dialog' is nil."
  123. :type '(list
  124. (string :tag "Menu Title")
  125. (repeat :inline t
  126. (list :tag "Submenu"
  127. (string :tag "Title")
  128. (repeat :inline t
  129. (choice :tag ""
  130. (const :tag "Separator" (""))
  131. (list :tag "Font Entry"
  132. (string :tag "Menu text")
  133. (string :tag "Font")))))))
  134. :group 'w32)
  135. (provide 'w32-vars)
  136. ;;; w32-vars.el ends here