all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: customizing minibuffer and the message bar, ie mode-line
Date: Tue, 21 Apr 2015 03:36:31 +0200	[thread overview]
Message-ID: <87y4lmcleo.fsf@debian.uxu> (raw)
In-Reply-To: 87iocqeazi.fsf@debian.uxu

Emanuel Berg <embe8573@student.uu.se> writes:

> With the most relevant (indispensible) code ...

Here is the version with the clock for
`Buffer-menu-mode' - same URL (soon):

    (setq-default mode-line-format
     `(
       (:eval (if (eq major-mode 'Buffer-menu-mode) (format-time-string " %H:%M")))
       " "
       (:eval (if (not (or buffer-read-only
                           (member major-mode '(erc-mode
                                                inferior-emacs-lisp-mode
                                                message-mode) )))
                  mode-line-modified) )
       " "
       (:eval
        (cond
         ((eq major-mode 'Buffer-menu-mode) "")
         ((eq major-mode 'w3m-mode)         w3m-current-title)
         (dired-directory                   dired-directory)
         ((eq major-mode 'message-mode)     (buffer-name))
         (buffer-file-name                  (abbreviate-file-name buffer-file-name))
         (t                                 mode-line-buffer-identification) ))
       " "
       (show-modes mode-line-modes)
       (line-number-mode "[%l] ")
       (column-number-mode "{%c} ")
       ))

-- 
underground experts united
http://user.it.uu.se/~embe8573


      reply	other threads:[~2015-04-21  1:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-19 23:10 customizing minibuffer and the message bar, ie mode-line gnuist006
2015-04-19 23:33 ` Emanuel Berg
2015-04-20  0:16 ` gnuist006
2015-04-20  0:54   ` Alexis
2015-04-20  2:17   ` Óscar Fuentes
2015-04-20  0:39 ` Alexis
     [not found] ` <mailman.1138.1429490386.904.help-gnu-emacs@gnu.org>
2015-04-20 13:31   ` Dan Espen
2015-04-20 15:47     ` Marcin Borkowski
     [not found]     ` <mailman.1188.1429544846.904.help-gnu-emacs@gnu.org>
2015-04-20 21:38       ` Emanuel Berg
2015-04-21  1:36         ` Emanuel Berg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y4lmcleo.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.