2011-07-19 3 views

答えて

2

を生成する必要があります。あなたの.emacsに以下を追加すれば、あなたはうまくいくでしょう。

(require 'simple) 
(defun eval-expression-print-format (value) 
    "Format VALUE as a result of evaluated expression. 
Return a formatted string which is displayed in the echo area 
in addition to the value printed by prin1 in functions which 
display the result of expression evaluation." 
    (if (and (integerp value) 
      (or (not (memq this-command '(eval-last-sexp eval-print-last-sexp))) 
       (eq this-command last-command) 
       (if (boundp 'edebug-active) edebug-active))) 
     (let ((char-string 
      (if (or (if (boundp 'edebug-active) edebug-active) 
        (memq this-command '(eval-last-sexp eval-print-last-sexp))) 
       (prin1-char value)))) 
     (format " (#x%x)" value value)))) 
+0

ありがとうございます! emacsディストリビューションを構成する関数の置換えを書くのが標準的な方法ですか? – sigjuice

+0

@sigjuice標準?いいえ。人々が望むカスタマイズのほとんどは、可変/フックの変更、またはいくつかのアドバイスを使用した最悪の場合によって満足されます。あなたが望むものを得るための唯一の方法は、Emacs(そしてGPL)の設計の一部である元のコードを変更/上書きすることです。 –