2

emacsでpythonをデバッグするためrealgudに使用できるようにインストールしました。trepan2私はすぐに深刻な問題に遭遇しました:comintバッファ内のいくつかの色はほとんど見えないほど明るいです: ライトブルーや白地に黄色さえあります. どうすれば変更できますか?

fontlock-modeバッファでオフにしてみましたが、色が残っています。Mx も試してみcustomize-facesましたが、リストされている何百もの顔のどれが によって使用されているかは明らかではありませんrealgud。(名前が実際に「Realgud」で始まる 6 つの名前がありますが、どれも関連していないようです。) リスト全体をスクロールしましたが、黄色または水色のものは見つかりませんでした。また、テーマを暗い背景のものに変更してみました。これにより、黄色が表示されますが、暗い色は消えます。

編集: ローリストの提案に従って、これが の結果ですC-u C-x =。私がこれを正しく理解していれば、黄色がハードコーディングされていることを意味します。

             position: 8445 of 9070 (93%), column: 39
            character: 0 (displayed as 0) (codepoint 48, #o60, #x30)
    preferred charset: ascii (ASCII (ISO646 IRV))
code point in charset: 0x30
               syntax: w    which means: word
             category: .:Base, a:ASCII, l:Latin, r:Roman
             to input: type "C-x 8 RET HEX-CODEPOINT" or "C-x 8 RET NAME"
          buffer code: #x30
            file code: #x30 (encoded by coding system utf-8-unix)
              display: by this font (glyph code)
    x:-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1 (#x30)

Character code properties: customize what to show
  name: DIGIT ZERO
  general-category: Nd (Number, Decimal Digit)
  decomposition: (48) ('0')

There is an overlay here:
 From 8437 to 8450
  face                 (foreground-color . "yellow")
  modification-hooks   (ansi-color-freeze-overlay)


There are text properties here:
  field                output
  fontified            t
  front-sticky         (field inhibit-line-move-field-capture)
  inhibit-line-move-field-capture t
  rear-nonsticky       t

[back]

正直なところ、私はrealgudとにかく興味を失いました。強化されたというアイデアは良さそうpdbに聞こえますが、それらをほとんど使用できないようにする複数の痛ましい欠陥があるようです。trepan2realgud

ありがとう。

4

1 に答える 1

1

カラー マッピングはansi-term.

これが私の.emacsにあるものですが、明るい(白い)背景を使用していることに注意してください。主な設定は ですがansi-term-color-vector、そのための色の定義は前もって来なければならないことに注意してください。

(defface term-color-darkgreen
  '((t :foreground "DarkGreen" :background "DarkGreen"))
  "Face used to render dark green color code."
  :group 'term)


(defface term-color-cadetblue
  '((t :foreground "CadetBlue" :background "CadetBAlue"))
  "Face used to render dark cadet blue color code."
  :group 'term)

(defface term-color-purple
  '((t :foreground "Purple" :background "Purple"))
  "Face used to render dark Purple color code."
  :group 'term)

(defface term-color-darkgoldenrod
  '((t :foreground "Darkgoldenrod" :background "Darkgoldenrod"))
  "Face used to render dark Darkgoldenrod color code."
  :group 'term)

(defface term-color-ivory4
  '((t :foreground "Ivory4" :background "Ivory4"))
  "Face used to render dark Ivory4 color code."
  :group 'term)


(setq ansi-term-color-vector
      [term
       term-color-black
       term-color-red
       term-color-darkgreen
       term-color-cadetblue
       term-color-blue
       term-color-purple
       term-color-darkgoldenrod
       term-color-ivory4])
于 2015-04-26T13:32:04.130 に答える