0

特にlatexファイルを起動したときに使用したemacsスタートアップファイルで使用したcustom-set-facesがありましたが、.emacsファイルをマージおよび更新しているため、個別のスタートを起動しません-ラテックスファイルのアッププロセス。このカスタム面がラテックスモードがオンのときにのみ設定されるように設定したいと思います。カスタムフェイスなので、LaTeXモードフックを設定するのは賢明ではないと思いますが、これを行う方法があるはずです。基本的に、入力時にフォントとテキストサイズを変更するだけです。可能であれば、これをテキストモードでも有効にしたいと思います。下のカスタムフェイスを取り付けます。

(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.
 '(default ((t (:inherit nil :stipple nil :background "white" :foreground "black" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 98 :width normal :foundry "unknown" :family "DejaVu Sans")))))
4

1 に答える 1

9

custom-set-facesの代わりに、 set-face-attributeを使用して設定できますが、それでも「すべてのバッファー内」の面が変更されます。

(set-face-attribute 'default nil
 :inherit nil
 :stipple nil
 :background "white"
 :foreground "black"
 :inverse-video nil
 :box nil
 :strike-through nil
 :overline nil
 :underline nil
 :slant 'normal
 :weight 'normal
 :height 98
 :width 'normal
 :foundry "unknown"
 :family "DejaVu Sans")

正しい面を識別し、それらのみを設定する必要があります。デフォルトは設定しないでください。どの顔がポイントにあるかを識別するには、これを使用します

于 2011-11-07T14:13:12.767 に答える