.mprc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. #
  2. # Minimum Profit config file Sample
  3. #
  4. # mp reads first /etc/mprc and then $HOME/.mprc on Unix, and
  5. # "HKEY_CURRENT_USER\Software\Minimum Profit\Home"/.mprc on MS Windows
  6. #
  7. ###################################################
  8. #
  9. # basic configuration variables
  10. #
  11. ###################################################
  12. # tab size (default 8)
  13. tab_size: 8
  14. # column where word wrap occurs (default 0, no word wrapping)
  15. word_wrap: 0
  16. # case sensitive comparisons (default 1)
  17. case_sensitive_search: 1
  18. # use automatic indentation (default 0)
  19. auto_indent: 0
  20. # save spaces to tab boundaries as tabs (default 1)
  21. # (This directive is disabled and does nothing)
  22. save_tabs: 1
  23. # mark column # 80 (default 0)
  24. col_80: 0
  25. # save LF as CR/LF, for MSDOS / Windows style texts (default 0)
  26. cr_lf: 0
  27. # preread lines
  28. # this is the number of lines that are read below the first
  29. # visible line, to take into account line-running comments
  30. # for correct syntax coloring. If your system is fast and
  31. # the comments in your source are very lines long, increase
  32. # this value. If your system is slow or you don't use languages
  33. # which comments spread several lines (as Perl or Shell),
  34. # you can set it to 0
  35. preread_lines: 60
  36. # path to mp_templates file
  37. template_file: ~/.mp_templates
  38. # language
  39. # The two letter standard or the english name of the language can
  40. # be used. Supported by now: english, spanish, german, italian and dutch.
  41. # If you don't set it here, the LANG and LC_ALL environment
  42. # variables (and the internal language info on win32) will
  43. # be consulted. Defaults to english.
  44. lang: en
  45. # regular expression usage flag
  46. # If use_regex is set to 1, search and replace operations
  47. # use regular expressions instead of plain text searching.
  48. # The default is 1.
  49. use_regex: 1
  50. # use monochrome color set (default 0)
  51. monochrome: 0
  52. ########################################################
  53. #
  54. # curses specific (unix / linux / beos) variables
  55. #
  56. ########################################################
  57. # Use mouse positioning (default 0)
  58. mouse: 0
  59. # use hardware cursor (default 0)
  60. hardware_cursor: 0
  61. # use transparency in terminals that support it (default 1)
  62. #transparent: 1
  63. #BK Bruce B suggests 0 for mp's colors rather than rxvt colors...
  64. transparent: 0
  65. # use poor man boxes (+, - and | for frames, default 0)
  66. poor_man_boxes: 0
  67. ########################################################
  68. #
  69. # win32 specific variables
  70. #
  71. ########################################################
  72. # font face
  73. win32_font_face: Lucida Console
  74. # font size
  75. win32_font_size: 12
  76. # path to help file to be used when using context sensitive help
  77. win32_help_file: C:\bin\lcc\bin\win32.hlp
  78. ########################################################
  79. #
  80. # gtk specific variables
  81. #
  82. ########################################################
  83. # font face
  84. # good ones are lucidatypewriter, courier or any
  85. # monospaced truetype font as Courier New or Lucida Console
  86. # (if your X11 configuration supports truetypes)
  87. gtk_font_face: lucidatypewriter
  88. # font size
  89. gtk_font_size: 14
  90. # font weight (medium or bold)
  91. gtk_font_weight: medium
  92. # Set this to 1 if you want to use also italic fonts
  93. # in source code comments and such
  94. # (take into account that not all X11 fonts can be set to italic)
  95. gtk_use_italics: 0
  96. # window size and position
  97. # these values can be overriden by using -geometry
  98. # these are the default values; set any to -1
  99. # to let the window manager guess (usually wrong)
  100. # the window geometry
  101. gtk_width: 640
  102. gtk_height: 400
  103. gtk_xpos: 1
  104. gtk_ypos: 1
  105. ########################################################
  106. #
  107. # key bindings
  108. #
  109. ########################################################
  110. # format is:
  111. # bind <key name> <function name>
  112. # for a complete list of key and function names, see the
  113. # 'help on keys' option from the Options menu
  114. # some examples
  115. bind cursor-up move-up
  116. bind cursor-down move-down
  117. #BK bind f3 open
  118. #BK bind ctrl-x exit
  119. # default keys can be overwritten
  120. #bind ctrl-x cut
  121. # or even completely disabled, using <none>
  122. #bind ctrl-x <none>
  123. # if you want to start your very own keymap
  124. # from scratch, you can insert the following
  125. # command BEFORE your key definitions:
  126. #bind <all> <none>
  127. #BK and Bruce B modifications for Puppy...
  128. #move to end of document was done by both ctrl-w and ctrl-end...
  129. bind ctrl-w <none>
  130. #f4 was close...
  131. bind f4 <none>
  132. bind ctrl-w close
  133. #f5 was new...
  134. bind f5 <none>
  135. bind ctrl-n new
  136. #f3 was open...
  137. bind f3 <none>
  138. bind ctrl-o open
  139. #f10 was exit...
  140. bind f10 <none>
  141. bind ctrl-q exit
  142. #f2 was save...
  143. bind f2 <none>
  144. bind ctrl-s save
  145. #ctrl-t was cut...
  146. bind ctrl-t <none>
  147. bind ctrl-x cut
  148. #f9 conflicts with fvwm95...
  149. bind f9 <none>
  150. bind f8 mark
  151. bind ctrl-f8 unmark
  152. #ctrl-p was paste...
  153. bind ctrl-p <none>
  154. bind ctrl-v paste
  155. ########################################################
  156. #
  157. # GUI colors (gtk and win32)
  158. #
  159. ########################################################
  160. # format is:
  161. #
  162. # gui_color <syntax name> <ink rgb> <paper rgb> [<options>]
  163. #
  164. # where options can be: italic, underline, reverse
  165. #
  166. # <syntax name> is a syntax highlight group, and can be
  167. # any of:
  168. #
  169. # normal - normal (non-highlighted) text
  170. # selected - selected block
  171. # comment - source code comments
  172. # string - strings and number literals
  173. # token - programming language token
  174. # var - programming language variable, or second set of tokens
  175. # cursor - cursor color
  176. # caps - any text in all caps
  177. # local - any word contained in the current tag file
  178. #
  179. # <ink rgb> and <paper rgb> are a 6 digit hex number, where
  180. # ff0000 is pure red, 00ff00 is pure green and 0000ff pure blue.
  181. # They can also be 'default' (without quotes), to use the
  182. # same color as the 'normal' color definition,
  183. # or any of the following color aliases:
  184. # black red green yellow blue magenta cyan white
  185. # these are the defaults
  186. gui_color normal black white
  187. gui_color selected ff0000 white reverse
  188. gui_color comment 00aaaa default italic
  189. gui_color string blue default
  190. gui_color token 00aa00 default
  191. gui_color var ff6666 default
  192. gui_color cursor default default reverse
  193. gui_color caps dddd00 default
  194. gui_color local 8888ff default underline
  195. # white over black theme
  196. #gui_color normal cccccc black
  197. #gui_color selected ff0000 white reverse
  198. #gui_color comment 00eeaa default italic
  199. #gui_color string 5555ff default
  200. #gui_color token 00aa00 default
  201. #gui_color var ff6666 default
  202. #gui_color cursor default default reverse
  203. #gui_color caps ffff00 default
  204. #gui_color local 8888ff default underline
  205. # theme taken from 'Zenburn' theme from Cream for Vim
  206. # (nice low-contrast ground colors)
  207. #gui_color normal dbdbcc 3e3e3e
  208. #gui_color selected ffff66 8c9b70
  209. #gui_color comment 71d3b4 default italic
  210. #gui_color string cc9393 default
  211. #gui_color token efef8f default
  212. #gui_color var e3ceab default
  213. #gui_color cursor default default reverse
  214. #gui_color caps ffcfaf default
  215. #gui_color local 7f9f7f default underline
  216. ########################################################
  217. #
  218. # text colors (curses)
  219. #
  220. ########################################################
  221. # format is:
  222. #
  223. # text_color <syntax name> <ink color> <paper color> [<options>]
  224. #
  225. # where options can be: underline, reverse, bright
  226. #
  227. # <syntax name> is a syntax highlight group, and can be
  228. # any of the following content colors (the same
  229. # as in the 'gui_color' directive):
  230. #
  231. # normal - normal (non-highlighted) text
  232. # selected - selected block
  233. # comment - source code comments
  234. # string - strings and number literals
  235. # token - programming language token
  236. # var - programming language variable, or second set of tokens
  237. # cursor - cursor color
  238. # caps - any text in all caps
  239. # local - any word contained in the current tag file
  240. #
  241. # plus the following interface colors:
  242. #
  243. # title - the title and status bars
  244. # menu_element - any element of the menu, except the separators
  245. # menu_selection - the currently selected item in the menu
  246. # frame1 - the top and left sides of the frames, plus the separators
  247. # frame2 - the bottom and right sides of the frames
  248. # scrollbar - color of the scrollbar
  249. # scrollbar_thumb - color of the scrollbar thumb
  250. #
  251. # <ink color> and <paper color> can be any of the following
  252. # color names:
  253. # black red green yellow blue magenta cyan white
  254. # They can also be 'default' (without quotes), to use the
  255. # same color definition as the 'normal' color definition.
  256. # If the 'normal' ink or paper is set to 'default',
  257. # the default terminal color (can be transparent for X terminals)
  258. # is used.
  259. # these are the defaults
  260. text_color normal default default
  261. text_color selected red white reverse
  262. text_color comment green default
  263. text_color string blue default bright
  264. text_color token green default bright
  265. text_color var red default
  266. text_color cursor default default reverse
  267. text_color caps yellow default bright
  268. text_color local cyan default underline
  269. text_color title blue white reverse bright
  270. text_color menu_element blue white reverse bright
  271. text_color menu_selection white black
  272. text_color frame1 blue blue reverse bright
  273. text_color frame2 blue black reverse bright
  274. text_color scrollbar default default
  275. text_color scrollbar_thumb blue white reverse bright
  276. ########################################################
  277. #
  278. # menu options
  279. #
  280. ########################################################
  281. # syntax:
  282. # menu <menu_bar_name> or
  283. # menu_item <function>
  284. # <menu_bar_name> is simple text, and <function> is
  285. # a Minimum Profit function (see above and the
  286. # Options/Help on Keys menu), or - for a separator
  287. menu &File
  288. menu_item new
  289. menu_item open
  290. menu_item reopen
  291. menu_item save
  292. menu_item save-as
  293. menu_item close
  294. menu_item -
  295. menu_item sync
  296. menu_item -
  297. menu_item exit
  298. menu &Edit
  299. menu_item cut
  300. menu_item copy
  301. menu_item paste
  302. menu_item delete-line
  303. menu_item -
  304. menu_item mark
  305. menu_item unmark
  306. menu_item -
  307. menu_item edit-templates-file
  308. menu_item edit-config-file
  309. menu_item -
  310. menu_item exec-command
  311. menu_item exec-function
  312. menu &Search
  313. menu_item seek
  314. menu_item seek-next
  315. menu_item replace
  316. menu_item replace-all
  317. menu_item toggle-case
  318. menu_item toggle-regex
  319. menu_item -
  320. menu_item find-tag
  321. menu_item completion
  322. menu_item -
  323. menu_item grep
  324. menu &Go to
  325. menu_item next
  326. menu_item move-bof
  327. menu_item move-eof
  328. menu_item move-bol
  329. menu_item move-eol
  330. menu_item goto
  331. menu_item move-word-right
  332. menu_item move-word-left
  333. menu_item -
  334. menu_item document-list
  335. menu &Options
  336. menu_item toggle-save-tabs
  337. menu_item toggle-cr-lf
  338. menu_item toggle-auto-indent
  339. menu_item toggle-column-80
  340. menu_item -
  341. menu_item record-macro
  342. menu_item play-macro
  343. menu_item -
  344. menu_item set-tab-size
  345. menu_item set-word-wrap
  346. menu_item -
  347. menu_item key-help
  348. menu_item -
  349. menu_item about
  350. #######################################
  351. #
  352. # Including other configuration files
  353. #
  354. #######################################
  355. source /etc/mprc.colors
  356. #######################################
  357. #
  358. # other directives
  359. #
  360. #######################################
  361. # ctags command line
  362. # this is the command that will be executed if a tag is requested
  363. # an a ./tags file is not found.
  364. ctags_cmd: ctags *
  365. # another useful value
  366. #ctags_cmd: ctags -R
  367. # status line format string
  368. # The information in the status line can be formatted using
  369. # a printf()-like string. Any text will be shown verbatim
  370. # except the following directives:
  371. #
  372. # %m Writes '*' if current text is modified, nothing otherwise
  373. # %x Writes current X (column) position
  374. # %y Writes current Y (line) position
  375. # %l Writes total number of lines in current text
  376. # %R Writes 'R' if in 'recording macro' mode, nothing otherwise
  377. # %s Writes current syntax highlight mode
  378. #
  379. # default setting is below
  380. status_format: %m %x,%y [%l] %R %s