मैं ऊपर जवाब करने की कोशिश की और विशेष रूप से सफल नहीं था (मैं Emacs 23 चल रहा हूँ): यदि आप चर ही स्थापित कर रहे थे, तो आप की तरह कुछ करने के लिए होगा।
;; Set the modeline to tell me the filename, hostname, etc..
(setq-default mode-line-format
(list " "
; */% indicators if the file has been modified
'mode-line-modified
"--"
; the name of the buffer (i.e. filename)
; note this gets automatically highlighted
'mode-line-buffer-identification
"--"
; major and minor modes in effect
'mode-line-modes
; if which-func-mode is in effect, display which
; function we are currently in.
'(which-func-mode ("" which-func-format "--"))
; line, column, file %
'mode-line-position
"--"
; if vc-mode is in effect, display version control
; info here
`(vc-mode vc-mode)
"--"
; hostname
'system-name
; dashes sufficient to fill rest of modeline.
"-%-"
)
)
मैं इस और अन्य चीजें मैं एक posting on my website में Emacs modeline के बारे में खोज की विस्तृत जानकारी दी है: ज्यादा जांच के बाद, मैं बस अपना mode-line-format
में system-name
डाल इस प्रकार समाप्त हो गया।
स्रोत
2011-05-12 07:09:16