emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: easy mode-line manipulation


From: jay
Subject: Re: easy mode-line manipulation
Date: 24 Oct 2001 10:43:23 +0900
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.105

* Juanma Barranquero <address@hidden> at 2001-10-23 18:43+0200
| (setq my-mode-line
|       (mode-line-modify (copy-mode-line 'standard)
|                         :section 'position-info
|                         :help 'default
|                         "%l/%c"))
| 
| would replace the position-info section's contents (that presumibly
| would include the current "L%l" and "C%c" specifiers) with the string
| "%l/%c" propertized with the default help attribute.

how about this:

  (require 'cl)
  (setq default-mode-line-format
        (delete* 'line-number-mode default-mode-line-format
                 :test (lambda (x y) (and (listp y) (eq x (car y))))))
  (setq default-mode-line-format
        (delete* 'column-number-mode default-mode-line-format
                 :test (lambda (x y) (and (listp y) (eq x (car y))))))

  ;; add your customization here

-- 
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]