Diff: EmacsModeLine

Differences between version 2 and previous revision of EmacsModeLine.

Other diffs: Previous Major Revision, Previous Author

Newer page: version 2 Last edited on May 11, 2011 5:28 pm by PhilHollenback Revert
Older page: version 1 Last edited on May 11, 2011 5:23 pm by PhilHollenback Revert
@@ -10,8 +10,10 @@
  'global-mode-string 
  'mode-line-modes 
  '(which-func-mode ("" which-func-format "--")) 
  'mode-line-position 
+ "--"  
+ `(vc-mode vc-mode)  
  "--" 
  'system-name 
  "-%-" 
 

version 2

modeline variables

;; Set the modeline to tell me the filename, hostname, etc..
(setq-default mode-line-format
      (list " "
            'mode-line-modified
            "--"
            'mode-line-buffer-identification
            "--"
            'global-mode-string
            'mode-line-modes
            '(which-func-mode ("" which-func-format "--"))
            'mode-line-position
            "--"
            `(vc-mode vc-mode)
            "--"
            'system-name
            "-%-"
            )
)
;; set the modeline to white on red
; you HAVE to set mode-line-inverse-video to t, otherwise the face
; gets ignored. Retarded.  That means you have to reverse the colors -
; setting foreground color actually sets background.
; see this gem: http://www.delorie.com/gnu/docs/emacs/emacs_89.html
(cond
 ((not window-system)
  (setq mode-line-inverse-video t)
  (set-face-foreground 'modeline "red")
  (set-face-background 'modeline "white")
))
 **--.emacs      --[(Emacs-Lisp)]--[prefix-region]--28% (201,23) --ourtownadd-lm----------------------




Our Founder
ToolboxClick to hide/show