2

I use Emacs native Win 32, but run it in DOS Prompt using emacs -nw. I love it. But, I can not easily read the blue color for a face foreground. And now I like to mapped all blue color, to be lightblue.

Is there some sort of alias like this?

Thanks.

4

4 に答える 4

2

私が行ったようにミニバッファープロンプトを修正するだけの場合(ターミナルのCygwin emacsではデフォルトで黒地にダークブルー)、これを使用してミニバッファープロンプトの面を編集してみてください。

  1. Mxリスト-顔-表示
  2. 「minibuffer-prompt」を選択してEnterキーを押します
  3. フォアグラウンドプロパティに移動し、[選択]領域にカーソルを置いてEnterキーを押します
  4. 「緑」まで下にスクロールして、Enterキーを押します
  5. [今後のセッションのために保存]に移動し、Enterキーを押します(これにより、.emacsファイルに書き込まれます)

これはそれが私のものに追加したものです:

(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(minibuffer-prompt ((t (:foreground "green"))))
于 2012-07-26T21:11:20.123 に答える
2

I think you should start with a Color theme package and choose a color theme you like.

Later you can adjust certain colors by doing M-x customize-face. The command M-x list-colors-display will help you to pick a right color.

EDIT: Do you run Emacs on text terminal? Then you may try to use tty-color-define. Unfortunately I cannot test it because I don't have Emacs on the terminal.

(defun my-define-red()
  (interactive)
  (tty-color-define "red" 1 (list 32000 12000 12000)))
于 2011-02-16T06:55:07.230 に答える
0
  1. M-x list-faces-display.
  2. Select the face you want to customize (the ones using blue color are displayed in blue and so forth). (To select, press .)
  3. Goto "foreground" property and change blue to something else, say cyan.
  4. If no foreground selected, choose cyan or something else.
于 2012-01-02T23:33:59.323 に答える
0

If you add this to your .emacs, all default faces will adapt to the dark background:

(custom-set-variables '(frame-background-mode 'dark))
于 2015-06-04T06:31:09.667 に答える